albertotb / get-gfs

Downloading meteorological information from GFS
MIT License
51 stars 26 forks source link

gfs file format #14

Open sgana1 opened 1 month ago

sgana1 commented 1 month ago

Dear @albertotb , Dear All

I have installed the get-gfs and I lauched the commande line: /get_gfs.py -s 1 -r 0.25 -t 0 48 -x 9 11 -y 35 37 -p 0 2 -c example_conf.json 20240530 00

I got a file "20240530_00"

What is the format of this file? How we can obtain a netcdf or grib format file?

Thank you.

albertotb commented 1 month ago

Your best bet is to use this notebook: https://github.com/albertotb/get-gfs/blob/master/notebook/get_gfs.ipynb

It saves a NetCDF file, it does not have the full functionality of get_gfs.py but it will be quite close.

sgana1 commented 1 month ago

Thank you. It works. However, how can we convert the output file obtained by get_gfs.py to netcdf? Thanks for your time.

albertotb commented 1 month ago

It is not easy, since it outputs a CSV file that loses a lot of metadata. You would need to modify the script. I've just realized that you have get_gfs_xarray.py, which is similar to get_gfs.py, that may be enough. If it does not work or it's not enough, I can help trying to modify that script to cover your usecase.