weatherbox / atmosphere

GPV Viewer
https://weatherbox.github.io/atmosphere/
2 stars 1 forks source link

question about data ? #2

Open shinnobi opened 5 years ago

shinnobi commented 5 years ago

as i know, the weather data of this project is .bin files but i don't familiar with this file format . Can you explain something about it ?. it can translate to .JSON format like grib files ?

I have own weather model data in .grib2 format could i use it as input of your project ? How to do it

Please help me thanks you

tattii commented 5 years ago

The file format .bin using in this project, is original format. It is converted from .grib2 file, and tiled for web mapping.

See https://github.com/weatherbox/grib2tiles project. (encoder and decoder)

shinnobi commented 5 years ago

i have already seen it. I think your workflow is

  1. download grib2 file from web
  2. convert it to .bin file and then upload it to amazon cloud
  3. download and visualize .bin file in map

i have just tried to use my own data ie GSM weather model with file name as your file my GSM file is https://drive.google.com/file/d/1SbXWiqKj3uW6dBRfaBOeJMmNBNb96FVX/view?usp=sharing ( this is surface level) i try to rename this file to Z__C_RJTD_20190221000000_MSM_GPV_Rjp_Lsurf_FH34-39_grib2.bin and change ni and nj parameter and run grib2tiles code but it's error. with 850 and 500 level it's can be covnerted to .bin format please help me to check thanks you screenshot_2019-02-22_14-25-41

tattii commented 5 years ago

To convert another type of grib2 file like GSM, you need to parse each format.

parser for MSM https://github.com/weatherbox/grib2tiles/blob/master/functions/msm/msm.py

or the grid of GSM surface data is 720×361 ?

shinnobi commented 5 years ago

i used code in folder msm to convert for GSM because i am not good at weather model i tried it for level 850 and 500 it's ok but not work with surface

grid of gsm surface is 331x191 i have already replace ni and nj by this value

i update some information of GSM gsm

shinnobi commented 5 years ago

@tattii this issue happen with this following data i downloaded Z__C_RJTD_20190226060000_GSM_GPV_Rjp_Lsurf_FD0315-0512_grib2.bin

which nj =151 and ni =121

can you help me to fix this