Skip to content

module TopoPyScale.solar_geom

Function to compute Solar angles S. Filhol, Oct 2021


function get_solar_geom

get_solar_geom(
    df_position,
    start_date,
    end_date,
    tstep,
    sr_epsg='4326',
    num_threads=None,
    fname='ds_solar.nc',
    project_ouput=PosixPath('.'),
    method_solar='nrel_numpy'
)

Function to compute solar position for each location given in the dataframe azimuth is define with 0 towards South, negative in W-dir, and posiive towards E-dir

Args:

  • df_position (dataframe): point_name as index, latitude, longitude
  • start_date (str): start date "2014-05-10"
  • end_date (str: end date "2015-05-10"
  • tstep (str): time step, ex: '6H'
  • sr_epsg (str): source EPSG code for the input coordinate
  • num_threads (int): number of threads to parallelize computation on. default is number of core -2
  • fname (str): name of netcdf file to store solar geometry
  • project_ouput (str): path to project root directory

Returns:

  • dataset: solar angles in degrees

This file was automatically generated via lazydocs.