spidru / JGribX

Java GRIB-1/GRIB-2 decoder
MIT License
34 stars 14 forks source link

NoValidGribException: No valid GRIB records found for RAP and NAM wind data #21

Open gaci0703 opened 2 years ago

gaci0703 commented 2 years ago

Hello. You have recently updated the jgribx.jar to handle the following data: https://tgftp.nws.noaa.gov/SL.us008001/ST.opnl/MT.gfs_CY.00/RD.20220705/PT.grid_DF.gr2/. Now I am having issues with NAM and RAP data:

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

For the RD.20220725 above- please update to the current date to see data for that day.

When I put this data into a GribFile, I get the NoValidGribException. I am using the current version of the JGribX.jar. After downloading one of these records from this url, I also checked using java -jar JGribX.jar -i grib2.grb and I get the same NoValidGribException. Can you please tell me what is wrong with this data?

Thank you so much for helping with decoding GFS - hopefully it will not be a big issue for RAP and NAM. Christine

spidru commented 2 years ago

Hi @gaci0703,

Thanks for opening a new issue on this. The links you've shared do not work for me. Can you share them some other way?

gaci0703 commented 2 years ago

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

Change the date after RD. to current day to see data.

spidru commented 2 years ago

Ok I've managed to access the files now. Taking this file as reference, I see that JGribX is skipping all records since they all use grid type 30 (Lambert Conformal), which is currently not supported. You can see this as well by adding -l 3 when calling JGribX to include warning messages.

I've already received a request to look into this in #10. I'll see if I can prioritize it.

gaci0703 commented 2 years ago

Thank you so much. I will keep checking.