Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ dependencies = [
"numcodecs==0.13.1",
"scipy==1.15.2",
"dataretrieval==1.0.11",
"stac-geoparquet==0.7.0"
"stac-geoparquet==0.7.0",
"hecdss==0.1.29"

]

Expand Down
3 changes: 2 additions & 1 deletion stormhub/met/zarr_to_dss.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def get_s3_zarr_data(
start_dt: datetime,
end_dt: datetime,
variables_of_interest: List[str],
interp_nan_vals: bool = True,
interp_nan_vals: bool = False,
) -> xr.Dataset:
"""
Read a multifile dataset from the specified S3 paths, filters it based on the area of interest (AOI) and the time range, extracts only the variables of interest and returns an xarray Dataset.
Expand All @@ -327,6 +327,7 @@ def get_s3_zarr_data(
start_dt: The start datetime to filter the data.
end_dt: The end datetime to filter the data.
variables_of_interest: A list of variables to select from the dataset. If empty, all variables will be read.
interp_nan_vals: A boolean indicating whether to interpolate missing values in the dataset. If True, linear interpolation will be performed along both latitude and longitude dimensions, and the results will be averaged. Defaults to False.
"""
s3 = s3fs.S3FileSystem(anon=True, config_kwargs={"max_pool_connections": 50})
fileset = [s3fs.S3Map(root=path, s3=s3, check=False) for path in s3_paths]
Expand Down
2 changes: 1 addition & 1 deletion stormhub/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""stormhub version."""

__version__ = "0.4.0"
__version__ = "0.5.0"
Loading