Comments (3)
awesome, thanks so much Brian! I'm a heavy user of this and find it super useful. You've done great work!
from herbie.
You're right that it is caused by reading the data into xarray. I don't know why cfgrib reads this into two separate DataFrames. That would be a good question for the cfgrib repo.
On the Herbie side, it may be possible to work around this; it would require doing something like xarray.concat(ds, dim='step')
for the objects returned by hrrr subh.
from herbie.
In that last commit, Herbie will try xr.concat(xx, dim='step')
on the list of Datasets returned by cfgrib. This works for the HRRR subh fields because the hypercubes have the same variable and level.
from herbie import fast_Herbie_xarray
import pandas as pd
dates = pd.date_range(
'2022-01-01 1:00',
'2022-01-01 3:00',
freq='1H'
)
fxx = [0,1,2,3]
ds = fast_Herbie_xarray(
DATES=dates,
fxx=fxx,
model='hrrr',
product='subh',
searchString=':PRES:surface'
)
## ^ Took ~20 seconds to load
ds.isel(time=0, x=500, y=500).sp.plot(x='valid_time', marker='.')
ds.isel(time=1, x=500, y=500).sp.plot(x='valid_time', marker='.')
ds.isel(time=2, x=500, y=500).sp.plot(x='valid_time', marker='.')
@isodrosotherm Thanks for reporting this. These comments always help me improve Herbie.
from herbie.
Related Issues (20)
- 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
- Herbie can't find old GFS data older than 2021-1-1? HOT 12
- File Not Downloaded but No Error Raised by Herbie HOT 2
- Missing variables from table on HRRR site HOT 2
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.