ywangd / pybufrkit

Pure Python toolkit to work with WMO BUFR messages
http://pybufrkit.readthedocs.io/
MIT License
72 stars 28 forks source link

Exaples Json File #9

Closed llazcano closed 5 years ago

llazcano commented 5 years ago

Greetings I'm from the chile weather service. I am new in Python. We are testing your development. Do you have any JSON file of test to see the encoder? We are using template 307080 SYNOP. regards

ywangd commented 5 years ago

You can use the decoding output of a BUFR file as the example JSON file, e.g. pybufrkit decode -j 307080.bufr > 307080.json to generate a JSON output (note the flag -j means generate JSON output). The JSON output can be encoded back to BUFR with python encode -j 307080.json 307080.bufr

llazcano commented 5 years ago

gracias

llazcano commented 5 years ago

Do I need to indicate the length of the sections in the Json file? The encoder does not do it automatically?

ywangd commented 5 years ago

You can set to zero to let encoder calculate it automatically.

On Thu, 6 Dec 2018 at 1:16 pm, llazcano notifications@github.com wrote:

Do I need to indicate the length of the sections in the Json file? The encoder does not do it automatically?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/ywangd/pybufrkit/issues/9#issuecomment-444723752, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPFdL1FBP3sBT9f8n5AELaftqD7IxImks5u2H4MgaJpZM4Yx5wO .

--

Life is elsewhere

llazcano commented 5 years ago

Muchas gracias por tu ayuda.

El mié., 5 dic. 2018 a las 23:18, ywangd (notifications@github.com) escribió:

You can set to zero to let encoder calculate it automatically.

On Thu, 6 Dec 2018 at 1:16 pm, llazcano notifications@github.com wrote:

Do I need to indicate the length of the sections in the Json file? The encoder does not do it automatically?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/ywangd/pybufrkit/issues/9#issuecomment-444723752, or mute the thread < https://github.com/notifications/unsubscribe-auth/ACPFdL1FBP3sBT9f8n5AELaftqD7IxImks5u2H4MgaJpZM4Yx5wO

.

--

Life is elsewhere

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ywangd/pybufrkit/issues/9#issuecomment-444724060, or mute the thread https://github.com/notifications/unsubscribe-auth/ArO-wsefN_w9iBgmkytndC4LFCyazikrks5u2H5vgaJpZM4Yx5wO .

-- Atte. Luis Lazcano Guerrero Ing. Ejec. en Informática. Jefe Oficina Banco de Dato llazcano@dgac.gob.cl LLazcano@dgac.cl https://climatologia.meteochile.gob.cl

LLazcano@dgac.cl

dgnrao1 commented 1 year ago

Hello Sir, This is Nagarjuna from NCMRWF, India. I am totally new to bufr format. I would like to convert .h5 file into .bufr format (sample file as follows). SMAP_L4_SM_aup_20230219T030000_Vv7030_001.h5 Could you please help me how Do I do this? Is there any function with the PyBufrKit is a pure Python package to work with WMO BUFR (FM-94) messages? If so, Please kindly let me know once.

Thanks for your kind help