Skip to content

epymorph.adrio.prism

ADRIOs that access PRISM files for climate data.

https://prism.oregonstate.edu/

TemperatureType module-attribute

TemperatureType = Literal['Minimum', 'Mean', 'Maximum']

A daily temperature measurement provided in the PRISM data.

VPDType module-attribute

VPDType = Literal['Minimum', 'Maximum']

A daily vapor pressure deficit measurement provided in the PRISM data.

PrismFile

Bases: NamedTuple

All necessary info for a single day's PRISM file.

attribute instance-attribute

attribute: str

The PRISM attribute the file pertains to.

url instance-attribute

url: str

The URL to request the file (a zip file).

bil_name instance-attribute

bil_name: str

The name of the bil data file inside the zip.

cache_path instance-attribute

cache_path: Path

The path at which to cache the zip.

for_date staticmethod

for_date(file_date: date, attr: str) -> PrismFile

Precipitation

Bases: _PrismADRIOMixin, ADRIO[float64, float64]

Loads daily precipitation data (in millimeters) from PRISM data files.

PRISM ADRIOs require you to provide centroids as a data attribute, which is where we'll sample a value from the source file for each node. If the PRISM model is not defined for a particular centroid, you'll get an "undefined" data issue in the result. This is common for locations outside of the US, as PRISM only covers the contiguous 48 United States; but it also happens for centroids located on bodies of water. In this case, you may need to adjust centroids to get values.

DewPoint

Bases: _PrismADRIOMixin, ADRIO[float64, float64]

Loads daily dew point data (in degrees Celsius) from PRISM data files.

PRISM ADRIOs require you to provide centroids as a data attribute, which is where we'll sample a value from the source file for each node. If the PRISM model is not defined for a particular centroid, you'll get an "undefined" data issue in the result. This is common for locations outside of the US, as PRISM only covers the contiguous 48 United States; but it also happens for centroids located on bodies of water. In this case, you may need to adjust centroids to get values.

Temperature

Temperature(temp_var: TemperatureType)

Bases: _PrismADRIOMixin, ADRIO[float64, float64]

Loads daily temperature data (in degrees Celsius) from PRISM data files. You can select either the minimum, maximum, or mean daily temperature.

PRISM ADRIOs require you to provide centroids as a data attribute, which is where we'll sample a value from the source file for each node. If the PRISM model is not defined for a particular centroid, you'll get an "undefined" data issue in the result. This is common for locations outside of the US, as PRISM only covers the contiguous 48 United States; but it also happens for centroids located on bodies of water. In this case, you may need to adjust centroids to get values.

Parameters:

  • temp_var (TemperatureType) –

    Which daily temperature measure to select (min, max, mean).

VaporPressureDeficit

VaporPressureDeficit(vpd_var: VPDType)

Bases: _PrismADRIOMixin, ADRIO[float64, float64]

Loads daily vapor pressure deficit data (in hectopascals) from PRISM data files. You can select either the minimum or maximum daily vapor pressure deficit.

PRISM ADRIOs require you to provide centroids as a data attribute, which is where we'll sample a value from the source file for each node. If the PRISM model is not defined for a particular centroid, you'll get an "undefined" data issue in the result. This is common for locations outside of the US, as PRISM only covers the contiguous 48 United States; but it also happens for centroids located on bodies of water. In this case, you may need to adjust centroids to get values.

Parameters:

  • vpd_var (VPDType) –

    Which daily vapor pressure deficit measure to select (min, max).