Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

gfs file format #14

Open
sgana1 opened this issue May 31, 2024 · 3 comments
Open

gfs file format #14

sgana1 opened this issue May 31, 2024 · 3 comments

Comments

@sgana1
Copy link

sgana1 commented May 31, 2024

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
Copy link
Owner

albertotb commented May 31, 2024

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
Copy link
Author

sgana1 commented Jun 1, 2024

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

@albertotb
Copy link
Owner

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants