pvlib.location.Location

class pvlib.location.Location(latitude, longitude, tz='UTC', altitude=0, name=None, **kwargs)[source]

Location objects are convenient containers for latitude, longitude, timezone, and altitude data associated with a particular geographic location. You can also assign a name to a location object.

Location objects have two timezone attributes:

  • tz is a IANA timezone string.
  • pytz is a pytz timezone object.

Location objects support the print method.

Parameters:

latitude : float.

Positive is north of the equator. Use decimal degrees notation.

longitude : float.

Positive is east of the prime meridian. Use decimal degrees notation.

tz : str, int, float, or pytz.timezone.

See http://en.wikipedia.org/wiki/List_of_tz_database_time_zones for a list of valid time zones. pytz.timezone objects will be converted to strings. ints and floats must be in hours from UTC.

alitude : float.

Altitude from sea level in meters.

name : None or string.

Sets the name attribute of the Location object.

**kwargs

Arbitrary keyword arguments. Included for compatibility, but not used.

See also

pvsystem.PVSystem