Brian Blaylock

Results 120 comments of Brian Blaylock

This is interesting. I was not able to recreate the problem with the following: - Python version 3.9.5 - cfgrib 0.9.9.1 ```python from herbie.archive import Herbie date = '2022-02-09T00:00' fxx...

Ok, I was curious and had to see what was wrong. It does appear to be an issue with cfgrib. When I updated to 0.9.10.0, I got the same error....

Looks like this will be fixed in cfgrib 0.9.10.1 😄 https://github.com/ecmwf/cfgrib/issues/282

Fixed in https://github.com/ecmwf/cfgrib/tree/0.9.10.1. Waiting to see what happens with https://github.com/ecmwf/cfgrib/issues/293

Made some improvements with https://github.com/blaylockbk/Herbie/pull/35 to handle different index file suffix

Hmmm, the `cfgrib.open_datasets` doesn't make it easy to close the file.

It was also reported that the __init__.py is not creating the config file. So, is this a **Windows** issue or a **Python 3.9 on Windows** issue?

Perhaps all I need is a `os.close(local_file)` statement

Agh, still trying to figure this out. > https://docs.python.org/3/library/os.html#os.remove On Windows, attempting to remove a file that is in use causes an exception to be raised; on Unix, the directory...

Just jotting down some ideas to parse the CF grid_mapping from the variable attributes loaded with cfgrib... The CF grid_mapping parameters can be parsed for `lambert` and `regular_ll` grid types....