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

FastHerbie xarray issue on sfc product #370

Open
danielabdi-noaa opened this issue Sep 8, 2024 · 0 comments
Open

FastHerbie xarray issue on sfc product #370

danielabdi-noaa opened this issue Sep 8, 2024 · 0 comments

Comments

@danielabdi-noaa
Copy link

danielabdi-noaa commented Sep 8, 2024

Trying to use FastHerbie like this

H = FastHerbie(
    timestamps,
    model="hrrr",
    product="sfc",
    save_dir="./.herbie-grib",
    fxx=self.fxx,
)

I get an error in fast.py due to a missing "step" coordinate I think.

2024-09-08 11:05:31,293 -INFO - 🧵 Working on 3 tasks with 3 threads.
2024-09-08 11:05:31,732 -INFO - Number of Herbie objects: 3
Traceback (most recent call last):
  File "/home/daniel/storage/hrrrdata/data/preprocess.py", line 43, in <module>
    preprocess_hrrr()
  File "/home/daniel/storage/hrrrdata/data/preprocess.py", line 30, in preprocess_hrrr
    ds = hds.open_dataset(start, end, freq)
  File "/home/daniel/storage/hrrrdata/data/get_data_hrrr.py", line 64, in open_dataset
    ds2 = H.xarray(
  File "/home/daniel/miniconda3/envs/hrrrcast/lib/python3.10/site-packages/herbie/fast.py", line 303, in xarray
    ds_list.sort(key=lambda x: x.step.data.max())
  File "/home/daniel/miniconda3/envs/hrrrcast/lib/python3.10/site-packages/herbie/fast.py", line 303, in <lambda>
    ds_list.sort(key=lambda x: x.step.data.max())
AttributeError: 'list' object has no attribute 'step'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant