Comments (6)
Perhaps all I need is a os.close(local_file)
statement
from herbie.
I might have found a solution...use xr.load_dataset
instead. This loads the data into memory and closes the file.
https://docs.xarray.dev/en/stable/generated/xarray.load_dataset.html
from herbie.
Hmmm, the cfgrib.open_datasets
doesn't make it easy to close the file.
from herbie.
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?
from herbie.
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 entry is removed but the storage allocated to the file is not made available until the original file is no longer in use.
from herbie.
Oh wow. How did I miss this one...I simply forgot to close the file opened by pygrib. Well, 2785b61 seems to have fixed this one. I'll do a bit more testing, but I'm certain this is resolved.
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.