Comments (1)
Using smarter curl gives about 2x speed up for this subset
from herbie.archive import Herbie
H = Herbie('2022-01-01', model='hrrr')
H.download("(?:U|V)GRD:.*mb.*", overwrite=True, verbose=False)
With smarter curl ranges, the above example downloads these 14 fields with 6 cURL commands instead of 14 because many of the grib messages are adjacent to each other.
10 :UGRD:250 mb:anl
11 :VGRD:250 mb:anl
12 :UGRD:300 mb:anl
13 :VGRD:300 mb:anl
17 :UGRD:500 mb:anl
18 :VGRD:500 mb:anl
23 :UGRD:700 mb:anl
24 :VGRD:700 mb:anl
28 :UGRD:850 mb:anl
29 :VGRD:850 mb:anl
32 :UGRD:925 mb:anl
33 :VGRD:925 mb:anl
36 :UGRD:1000 mb:anl
37 :VGRD:1000 mb:anl
# of messages | Old method | with smart cURL ranges |
---|---|---|
14 | ~8 seconds | ~4 seconds |
2 | ~1.97 seconds | ~1.19 seconds |
from herbie.
Related Issues (20)
- cartopy as an optional dependency HOT 2
- Prefer `[-180,180]` longitude format HOT 2
- Can H.download() add a new parameter which can help users define the download file names? HOT 4
- Some docstrings don't render correctly.
- Include GFS data from NCEI and/or RDA HOT 7
- Why do the docs take so long to generate? HOT 1
- Provide some grib table data into docs
- Some SEO for the docs
- Waiting for Numpy 2.0 support: numpy.dtype size changed error HOT 2
- Consider using a modern package management tool HOT 2
- Add 13km GFS product HOT 2
- Replace Requests with httpx?
- Link to ECMWF open data wiki page broken in user guide
- with_wind accessor grid_mapping
- MAINTENANCE: DeprecationWarning: datetime.datetime.utcnow() is deprecated
- with_wind() accessor does not work with 100 m wind speed
- Downloading data s
- Can't download data on 18th October 2022 between fxx 282 to 360 HOT 3
- Connection reset by peer HOT 3
- Type Hints
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from herbie.