captest.clearsky.csky

captest.clearsky.csky(time_source, loc=None, sys=None, concat=True, output='both')

Calculate clear sky poa and ghi.

Parameters:
  • time_source (dataframe or DatetimeIndex) – If passing a dataframe the index of the dataframe will be used. If the index does not have a timezone the timezone will be set using the timezone in the passed loc dictionary. If passing a DatetimeIndex with a timezone it will be returned directly. If passing a DatetimeIndex without a timezone the timezone in the timezone dictionary will be used.

  • loc (dict) –

    Dictionary of values required to instantiate a pvlib Location object.

    loc = {‘latitude’: float,

    ’longitude’: float, ‘altitude’: float/int, ‘tz’: str, int, float, default ‘UTC’}

    See http://en.wikipedia.org/wiki/List_of_tz_database_time_zones for a list of valid time zones. ints and floats must be in hours from UTC.

  • sys (dict) –

    Dictionary of keywords required to create a pvlib SingleAxisTrackerMount or FixedMount.

    Example dictionaries:

    fixed_sys = {‘surface_tilt’: 20,

    ’surface_azimuth’: 180, ‘albedo’: 0.2}

    tracker_sys1 = {‘axis_tilt’: 0, ‘axis_azimuth’: 0,

    ’max_angle’: 90, ‘backtrack’: True, ‘gcr’: 0.2, ‘albedo’: 0.2}

    Refer to pvlib documentation for details.

  • concat (bool, default True) – If concat is True then returns columns as defined by return argument added to passed dataframe, otherwise returns just clear sky data.

  • output (str, default 'both') – both - returns only total poa and ghi poa_all - returns all components of poa ghi_all - returns all components of ghi all - returns all components of poa and ghi