Skip to content

grasp.instrument.pandora

grasp.instrument.pandora.pandora_geoms

Pathlike module-attribute

Pathlike = Union[Path, str]

PandoraLevel

Bases: Enum

L1_SKY_RADIANCE class-attribute instance-attribute

L1_SKY_RADIANCE = 'L1_sky_radiance'

L1_DIRECT_SUN class-attribute instance-attribute

L1_DIRECT_SUN = 'L1_direct_sun'

L2 class-attribute instance-attribute

L2 = 'L2'

load_pandora_geoms

load_pandora_geoms(site_name: str, level: PandoraLevel, start_date: Optional[Union[str, date]] = None, end_date: Optional[Union[str, date]] = None, base_path: Optional[Pathlike] = None) -> xr.Dataset

Used to easily load pandora GEOMS files stored on the cloud server's archive without needing to know where to find it.

Parameters:

Name Type Description Default
site_name str

Full name of the site you are looking for.

required
level PandoraLevel

Level of the data, from the ones enumerated in PandoraLevel.

required
start_date Optional[Union[str, date]]

Measurement start date of the data you are looking for.

None
end_date Optional[Union[str, date]]

Measurement end date of the data you are looking for.

None
base_path Optional[Pathlike]

Default is the pandora geoms path on the cloud server, can be adjusted if needed.

None

Returns:

Type Description
Dataset

An xarray.Datset of the data in the loaded GEOMS file.

find_pandora_archive_dates

find_pandora_archive_dates(site_name: str, level: PandoraLevel, start_date: Optional[Union[str, date]] = None, end_date: Optional[Union[str, date]] = None, base_path: Optional[Pathlike] = None) -> List[datetime.date]