Comments (9)
Hi @gaci0703,
Thanks for using JGribX!
It seems that the link you provided is a directory. For convenience, I'll use this particular file for testing this issue.
It appears that you're encountering a currently unsupported feature within a GDS. It seems that the number of points along a parallel (Ni) is being read as -1. This indicates that the GDS is a quasi-regular grid, with each row having a variable number of points along the parallel.
Interestingly, I also checked with zyGrib and it also fails with a similar error:
DBG Grib2Record.cpp: 103: Grib2Record(): Record 1: Ni=-1 Nj=73
terminate called after throwing an instance of 'std::bad_array_new_length'
what(): std::bad_array_new_length
I guess they also do not support this :)
I'll need some time to add support for quasi-regular grids, will keep you posted!
from jgribx.
Thank you so much for your quick response.
I will keep checking for your updates!!
from jgribx.
Hi @gaci0703,
The quasi-regular grid implementation is almost complete, but sadly I see that there is another feature which is currently not supported (JPEG2000 packing in DRS). Once again, I need some more time to implement this.
from jgribx.
Thank you. I am hoping that url that contains the grib2 files is helping you with the updates.
from jgribx.
Hi @gaci0703,
I finally have a new version for you to test. Could you try it out? It requires JRE 8 or higher.
from jgribx.
Hello @spidru,
It works perfectly on the gfs wind data from this directory - https://tgftp.nws.noaa.gov/SL.us008001/ST.opnl/MT.gfs_CY.00/RD.20220705/PT.grid_DF.gr2/. When I try the new update on RAP or NAM wind data, I get the NoValidGribException. I would assume GFS, RAP, and NAM are all in the same format.
https://tgftp.nws.noaa.gov/SL.us008001/ST.opnl/MT.rap_CY.06/RD.20220725/PT.grid_DF.gr2/ - for RAP and https://tgftp.nws.noaa.gov/SL.us008001/ST.opnl/MT.nam_AR.ak_CY.06/RD.20220725/PT.grid_DF.gr2/ for NAM
from jgribx.
Hi @gaci0703,
Thanks for confirming that at least the original issue (i.e. unsupported quasi-regular grids and JPEG 2000 encoded data) has been resolved. I would therefore like to close this issue and kindly ask you to open a new one.
But to already give some feedback, I noticed that all 3 gr2 files you linked in your last message do not work for me. Could you resend them (in a new issue) as attachments? Thanks!
from jgribx.
I opened a new issue - Thank you!!!
from jgribx.
Merged to master with b99d8a5.
from jgribx.
Related Issues (15)
- Does not read all records HOT 7
- Support NOMADS, NOAA, NWS Grid Template Lambert Conformal (Can be Secant, Tangent, Conical, or Bipolar) HOT 5
- Support other data representation templates HOT 2
- Update the JAR HOT 3
- Build's tests failed and code does not work, both due to NoValidGribException on valid GRIB2 files HOT 16
- How to use this library in my Android App HOT 7
- Cant Read this type grib1 files HOT 5
- NoValidGribException: No valid GRIB records found for RAP and NAM wind data HOT 4
- getRecord does not work with level without level value HOT 4
- Move directory structure to the gradle standard HOT 4
- Use getForecastTime() instead of getReferenceTime() in getRecord() HOT 1
- NPE on getValue when record is constant HOT 8
- Submit the jar to mavenrepository or jcenter HOT 3
- Getting NullPointer while loading GFS grib2 file HOT 4
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 jgribx.