-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add support of recent versions of Windows #7
Comments
Hi! I just wanted to ask out of curiosity if this issue something that has high priority for you or if you have kind of a "time schedule" of implementation. Background: I am writing a Python model that should run on both Windows & Linux, and GRIB support via Python on Windows seems to be something that is not yet possible without major hacks. |
@jlandmann @alexamici Thanks for the hard work with all the meteo related tools you are working on. |
hi @kikocorreoso , Would you mind sharing what are you using in order to decode GRIB files on windows x64? Tks |
Thanks @kikocorreoso, and sorry for the late reply. That's a good hint! I've tried to read in COSMO predictions in GDAL, it is throwing an error though - but that seems to be file-related. |
Here is a basic example to read mslp from a GFS file: from osgeo import gdal
grib = gdal.Open("gfs.t00z.pgrb2.0p25.anl", gdal.GA_ReadOnly)
b = grib.GetRasterBand(1)
mslp = b.ReadAsArray() Some relevant info: |
@jlandmann @kikocorreoso and @vciulei I have no timeline at the moment and I'm not going to have details in the future as I don't plan to work on the issue myself. According to @StephanSiemen who had looked into this, the main problem is that ecCodes itself can be forced to compile on Windows but only with serious effort. ECMWF aims to provide full windows support in ecCodes, but I have no idea of when. On a brighter note. If anybody manages to build ecCodes on Windows they may just need to test what name to add to the list of library names here: https://github.com/ecmwf/cfgrib/blob/master/cfgrib/eccodes.py#L50 |
Thanks @alexamici for the clarification! |
@kikocorreoso @alexamici thank you both for the updates and the suggestions. |
📢📢📢 ecCodes can be installed on Windows with conda:
And cfgrib works almost out of the box! 🎊 I'll be tying up loose ends in the next few days and release a version with full (read-only) Windows support soon. |
Sorry that I didn't get back to you anymore! I accidentally overwrote the *.exes I produced and then it never worked anymore...:/ |
Thanks for the effort and the huge work!!! Working with compilers on windows (enterprise capped windows environment in my case) is a real pain 😞 |
@alexamici @StephanSiemen This is great news! Thank you for your effort! |
Well, ensuring full read-only Windows support in cfgrib amounted to adding a single line of code in an obscure error path, so kudos really need to go to ECMWF @StephanSiemen and @shahramn for pushing the ecCodes porting effort and to the @cffi developers for making writing portable bindings dead simple 😄 Write support as well would have been 100% functional out of the box if was not for a path portability bug in the current version of ecCodes. |
@alexamici cfgrib version installed on windows using the command
works fine and does almost everything for basic analytical part. I am unable to extract certain parameters with cfgrib. I think pynio engine works fine for most part but it is not supported for windows versions. |
At the moment cfgrib supports only Linux and MacOS.
For Windows we need:
.idx
lockingThe text was updated successfully, but these errors were encountered: