From bfdc53336e83711223162fb84fd822308f73fff5 Mon Sep 17 00:00:00 2001 From: Shane Elipot Date: Thu, 1 Aug 2024 12:17:53 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Update=20dataset=20URL=20to=20ve?= =?UTF-8?q?rsion=202.01.1=20(#503)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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". --- clouddrift/datasets.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clouddrift/datasets.py b/clouddrift/datasets.py index d26ed912..530a2b71 100644 --- a/clouddrift/datasets.py +++ b/clouddrift/datasets.py @@ -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