Re: [netcdf-java] Updating bufr tables to version 32 (current version)

Hi,

updating the bufr-tables to the latest version was easy.

You can either use "BufrTables.addLookupFile" to read them from a local file or 
you simply change the files in bufr-5.0.0.jar (or toolsUI-5.0.0-patch.jar).

Using "BufrTables.addLookupFile":
- Download BUFRCREX_32_0_0.zip from 
https://www.wmo.int/pages/prog/www/WMOCodes/WMO306_vI2/LatestVERSION/LatestVERSION.html
- Extract the archive to a folder
- Create a new file "tablelookup.csv" with this content:
WMO.any, 0,     0,       -1,    0,    -1,   
/path/to/BUFRCREX_32_0_0_TableB_en.xml, wmo_xml, 
/path/to/BUFR_32_0_0_TableD_en.xml, wmo_xml
- Add the new file with this line
BufrTables.addLookupFile("/path/to/tablelookup.csv");
- Read your BUFR-Files

Since ToolsUI and NCdumpW can't be fixed with the above solution, I simply 
updated their jar-files bufr-5.0.0.jar (or toolsUI-5.0.0-patch.jar):
- Download BUFRCREX_32_0_0.zip from 
https://www.wmo.int/pages/prog/www/WMOCodes/WMO306_vI2/LatestVERSION/LatestVERSION.html
- Extract the archive to a folder
- Open the desired jar-archive with 7Zip
- Extract the resources\bufrTables\local\tablelookup.csv
- Replace the WMO.any-line with this one
WMO.any, 0,     0,       -1,    0,    -1,   
resource:/resources/bufrTables/wmo/BUFRCREX_32_0_0_TableB_en.xml, wmo_xml, 
resource:/resources/bufrTables/wmo/BUFR_32_0_0_TableD_en.xml, wmo_xml

- Put the file
tablelookup.csv
to
resources\bufrTables\local\
in the jar-archive.

- Put these files
BUFR_32_0_0_TableD_en.xml
BUFR_32_0_0_TableD_en.xsd
BUFRCREX_32_0_0_TableB_en.xml
BUFRCREX_32_0_0_TableB_en.xsd
to
resources\bufrTables\wmo\
in the jar-archive.

ToolsUI and NCdumpW can now read my new bufr-files.

It would be great, if the latest bufr-tables would be added to netcdf-java. I 
could also provide a sample bufr-file.

While patching your jar-files I wondered, if all files in 
"resources\bufrTables\wmo" are still required. It looked a little bit messy to 
me in this folder.

Kind regards

Netty

> Gesendet: Mittwoch, 04. September 2019 um 14:19 Uhr
> Von: netty.jawn@xxxxxx
> An: netcdf-java@xxxxxxxxxxxxxxxx
> Betreff: [netcdf-java] Updating bufr tables to version 32 (current version)
>
> Hi,
>
> thanks to John, I was able to completely read many of my bufr-files. All 
> successful read files contained a so called "sequence 309052". According to 
> "/resources/bufrTables/readme.txt" version 5.0.0 of netcdf-java contains the 
> bufr tables version 22. Details can be found here:
> https://confluence.ecmwf.int/display/ECC/WMO%3D22+sequence+table
>
> Newer bufr-files, which I have to read contains the "sequence 309057". This 
> sequence is not available in version 22, but is available in the latest 
> version (32) of the bufr tables. Details here:
> https://confluence.ecmwf.int/display/ECC/WMO%3D32+sequence+table
>
> Reading such new bufr-files give me the error "BUFR file has incomplete 
> tables", while using ToolsUI 5.0.0 as well as with my own reader.
>
> https://docs.unidata.ucar.edu/netcdf-java/5.0/userguide/bufr_tables.html
> says, that you can use "BufrTables.addLookupFile("filename.csv");" to read 
> other bufr-tables. But the given documentation for the required csv-files 
> doesn't help me. For example the mode "cypher" shown in the examples is not 
> explained.
>
> Can you help me updating the included bufr-tables to version 32?
>
> Kind regards
>
> Netty
>
> _______________________________________________
> NOTE: All exchanges posted to Unidata maintained email lists are
> recorded in the Unidata inquiry tracking system and made publicly
> available through the web.  Users who post to any of the lists we
> maintain are reminded to remove any personal information that they
> do not want to be made public.
>
>
> netcdf-java mailing list
> netcdf-java@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit: 
> https://www.unidata.ucar.edu/mailing_lists/
>


  • 2019 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: