How to quickly put the nc file created by myself into MET for forecast evaluation #1088
-
Dear wonderful MET help team, My name is Zhibo Gao, a PhD student from Beijing Normal University and also a MET user. I am very glad to write to you. First of all, thank you for developing such a great tool! When I use this tool, I encounter some confusion, I would appreciate if you could help me. I currently get a forecasted two-dimensional precipitation field named rain_forecast ([lat | 87] x [lat | 123]), correspondingly, I have an observed precipitation variable named rain_obs ([lat | 87] x [lon | 123]), both of these variables come from the nc file generated by myself, which may not meet the file standard of MET. I want to know if there is an easy way to make MET evalutate these two variables ( For example, using spatial verification methods). By the way, if these two variables are rain_forecast ([lat | 87] x [time| 123]) and rain_obs ([lat | 87] x [time | 123]), is there a simple way to make MET evalutate these two variables ( For example, also using spatial verification methods). Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Sorry, for the first question, the variable information is rain_forecast ([lat | 87] x [lon | 123]) and rain_obs ([lat | 87] x [lon | 123]). |
Beta Was this translation helpful? Give feedback.
-
Hello @ZhiboGao, I see you have question about how to format gridded NetCDF data to be read into the MET tools. MET does read a few different flavors of NetCDF files, but I always recommend that users format their gridded data following the NetCDF climate-forecast (CF) convention: https://cfconventions.org/ Listed on that page are some websites that check how closely your data file follows the CF-convention. And it's our goal that MET be able to read any gridded dataset following that convention. I would say that users typically do NOT store both their forecast and observation data in the same file. I suppose you could, but I think you'll find it easier to have them in separate files. By way of example, I've listed below a sample NetCDF header for a file on a lat/lon grid that follows the CF-convention. Some details to note are:
Whenever getting going with new datasets in MET, I always recommend starting by running them through plot_data_plane. For this example data file, you'd plot it by running:
Then look at the resulting plot to make sure the data is oriented correctly and at the right spot on the earth. Note that you could choose to write up a python script and pass the data to MET using python embedding. But that may (or may not) be more difficult to get up and running. Hope that helps get you going. |
Beta Was this translation helpful? Give feedback.
Hello @ZhiboGao, I see you have question about how to format gridded NetCDF data to be read into the MET tools. MET does read a few different flavors of NetCDF files, but I always recommend that users format their gridded data following the NetCDF climate-forecast (CF) convention: https://cfconventions.org/
Listed on that page are some websites that check how closely your data file follows the CF-convention. And it's our goal that MET be able to read any gridded dataset following that convention.
I would say that users typically do NOT store both their forecast and observation data in the same file. I suppose you could, but I think you'll find it easier to have them in separate files. By …