easysnowdata.snow.ucla_sr.load#
- easysnowdata.snow.ucla_sr.load(aoi: Any = None, time: Any = None, *, variable: str = 'SWE_Post', stats: str = 'mean', region: str = 'wus', source: str | None = None, granules: Any = None, virtualize: bool | str = 'auto', access: str = 'auto', chunks: Any = None, **kwargs: Any) DataArray[source]#
Load the reanalysis as a lazy
xarray.DataArray(time,y,x).- Parameters:
aoi – The usual spatial and temporal inputs.
time – The usual spatial and temporal inputs.
variable –
"SWE_Post"(default),"SCA_Post"or"SD_Post".stats – Ensemble statistic:
"mean","std","median","25pct"or"75pct".region –
"wus"(default) or"hma".virtualize –
"auto"(default) virtualizes pastVIRTUALIZE_THRESHOLDgranules, which is where the one-off HDF5 metadata scan pays for itself;True/Falseforce it.access –
"auto"(default) uses NASA’s in-region S3 credentials when this process runs inus-west-2and HTTPS everywhere else;"direct"/"indirect"force it.
- Returns:
xarray.DataArray– The chosen variable and statistic, clipped to the AOI.