Skip to content

Commit

Permalink
Merge pull request #340 from blaylockbk/330-waiting-for-numpy-20-supp…
Browse files Browse the repository at this point in the history
…ort-numpydtype-size-changed-error

Numpy 2.0 support is ready
  • Loading branch information
blaylockbk authored Jul 6, 2024
2 parents d62f86d + a31ca8a commit b8f9618
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/gallery/ecmwf_models/ecmwf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6679,7 +6679,7 @@
"source": [
"---\n",
"\n",
"**[Attribution](https://confluence.ecmwf.int/display/UDOC/ECMWF+Open+Data+-+Real+Time#ECMWFOpenDataRealTime-Attribution)**\n",
"**[Attribution](https://confluence.ecmwf.int/display/DAC/ECMWF+open+data:+real-time+forecasts+from+IFS+and+AIFS#ECMWFopendata:realtimeforecastsfromIFSandAIFS-DownloadASingleFieldWithWgetDownloadasinglefieldwithwget)**\n",
"\n",
"- Copyright statement: Copyright \"© 2022 European Centre for Medium-Range Weather Forecasts (ECMWF)\".\n",
"- Source www.ecmwf.int\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/user_guide/background/data_sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ For example, the following are the most popular data sources:

6. ECMWF Open Data
- Herbie source string, `"ecmwf"`
- Website: <https://confluence.ecmwf.int/display/UDOC/ECMWF+Open+Data+-+Real+Time>
- Website: <https://confluence.ecmwf.int/display/DAC/ECMWF+open+data%3A+real-time+forecasts+from+IFS+and+AIFS>
- ECMWF Open Data Program
2 changes: 1 addition & 1 deletion docs/user_guide/background/grib2.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ wgrib2 -s file.grib2 > file.grib2.idx

Generally speaking, index files share the same URL as the GRIB2 file except with `.idx` appended to the end of the file name. If the GRIB2 file `hrrr.t01z.wrfsfcf00.grib2` exists, then the index file would be `hrrr.t01z.wrfsfcf00.grib2.idx`.

> **Note:** This "partial-get/byte-range" method is similar to that used in Wesley Ebisuzaki's [Fast Downloading GRIB](https://www.cpc.ncep.noaa.gov/products/wesley/fast_downloading_grib.html) script. It is also described on ECMWF's example script [here](https://confluence.ecmwf.int/display/UDOC/ECMWF+Open+Data+-+Real+Time#ECMWFOpenDataRealTime-DownloadASingleFieldWithWgetDownloadasinglefieldwithwget).
> **Note:** This "partial-get/byte-range" method is similar to that used in Wesley Ebisuzaki's [Fast Downloading GRIB](https://www.cpc.ncep.noaa.gov/products/wesley/fast_downloading_grib.html) script. It is also described on ECMWF's example script [here](https://confluence.ecmwf.int/display/DAC/ECMWF+open+data:+real-time+forecasts+from+IFS+and+AIFS#ECMWFopendata:realtimeforecastsfromIFSandAIFS-DownloadASingleFieldWithWgetDownloadasinglefieldwithwget).
### What about regional subsetting?

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ keywords = [
]
dependencies = [
"cfgrib",
"numpy<2",
"numpy",
"pandas",
"pygrib",
"requests",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_latest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@


def test_HerbieWait():
run = pd.Timestamp("now", tz="utc").replace(tzinfo=None).floor('1h')
run = pd.Timestamp("now", tz="utc").replace(tzinfo=None).floor("1h")
with pytest.raises(TimeoutError):
H = HerbieWait(run, model="rap", product="awp130pgrb", wait_for="5s", check_interval="1s", fxx=0)
H = HerbieWait(run, model="hrrr", wait_for="5s", check_interval="1s", fxx=0)

0 comments on commit b8f9618

Please sign in to comment.