Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gdp-update #282

Merged
merged 14 commits into from
Oct 4, 2023
2 changes: 1 addition & 1 deletion clouddrift/adapters/gdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import urllib.request
import warnings

GDP_VERSION = "2.00"
GDP_VERSION = "2.01"

GDP_COORDS = [
"ids",
Expand Down
4 changes: 2 additions & 2 deletions clouddrift/adapters/gdp1h.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import xarray as xr


GDP_DATA_URL = "https://www.aoml.noaa.gov/ftp/pub/phod/lumpkin/hourly/v2.00/netcdf/"
GDP_DATA_URL = "https://www.aoml.noaa.gov/ftp/pub/phod/lumpkin/hourly/v2.01/netcdf/"
GDP_DATA_URL_EXPERIMENTAL = (
"https://www.aoml.noaa.gov/ftp/pub/phod/lumpkin/hourly/experimental/"
)
Expand Down Expand Up @@ -547,7 +547,7 @@ def to_raggedarray(
--------

Invoke `to_raggedarray` without any arguments to download all drifter data
from the 2.00 GDP feed:
from the 2.01 GDP feed:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make the docstring include automatically the GDP_VERSION variable here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that's possible. The doc is also generated from the source code and it would have to be interpreted to get the value..


>>> from clouddrift.adapters.gdp1h import to_raggedarray
>>> ra = to_raggedarray()
Expand Down