Skip to content

Commit

Permalink
🧹 Update dataset URL to version 2.01.1 (#503)
Browse files Browse the repository at this point in the history
Associated to #493 and fixes the deployed dataset in s3 repo. The code changes update the dataset URL in the `gdp1h` function to version 2.01.1. This ensures that the latest version of the dataset is being used. The previous URL was "https://noaa-oar-hourly-gdp-pds.s3.amazonaws.com/latest/gdp-v2.01.zarr" and it has been updated to "https://noaa-oar-hourly-gdp-pds.s3.amazonaws.com/latest/gdp-v2.01.1.zarr".
  • Loading branch information
selipot authored Aug 1, 2024
1 parent 4d98425 commit bfdc533
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clouddrift/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ def gdp1h(decode_times: bool = True) -> xr.Dataset:
--------
:func:`gdp6h`
"""
url = "https://noaa-oar-hourly-gdp-pds.s3.amazonaws.com/latest/gdp-v2.01.zarr"
url = "https://noaa-oar-hourly-gdp-pds.s3.amazonaws.com/latest/gdp-v2.01.1.zarr"
ds = xr.open_dataset(url, engine="zarr", decode_times=decode_times)
ds = ds.rename_vars({"ID": "id"}).assign_coords({"id": ds.ID}).drop_vars(["ids"])
return ds


Expand Down

0 comments on commit bfdc533

Please sign in to comment.