Giter Site home page Giter Site logo

Comments (9)

spidru avatar spidru commented on June 18, 2024

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.

gaci0703 avatar gaci0703 commented on June 18, 2024

Thank you so much for your quick response.
I will keep checking for your updates!!

from jgribx.

spidru avatar spidru commented on June 18, 2024

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.

gaci0703 avatar gaci0703 commented on June 18, 2024

Thank you. I am hoping that url that contains the grib2 files is helping you with the updates.

from jgribx.

spidru avatar spidru commented on June 18, 2024

Hi @gaci0703,

I finally have a new version for you to test. Could you try it out? It requires JRE 8 or higher.

https://output.circle-artifacts.com/output/job/70d21686-98f4-40d3-89e5-7f8ad42aaf77/artifacts/0/build/libs/JGribX.jar

from jgribx.

gaci0703 avatar gaci0703 commented on June 18, 2024

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.

spidru avatar spidru commented on June 18, 2024

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.

gaci0703 avatar gaci0703 commented on June 18, 2024

I opened a new issue - Thank you!!!

from jgribx.

spidru avatar spidru commented on June 18, 2024

Merged to master with b99d8a5.

from jgribx.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.