Getting MODE to work with self made data #2002
-
I would like to note this is a bit of a time crunch, but I essentially have a file that is almost the exact same as (hard press to find the difference at this point from the working data) as the original data which is working fine in MODE. I have tried numerous different methods to try and get this data to work with MODE and feel that I am super close and might be missing something super basic or a minuet difference in the config, netcdf file, etc. As I stated before, this is a bit of a time crunch but if it can get working that would be great! I will send my data through the ftp server in the corner_data directory. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 27 replies
-
Hi @jcorner1, the large files you uploaded to the FTP are being corrupted again, likely due to the same issues we saw in #1924. If you are generating your own files that are meant to match the format of files you have previously read into MET, I would recommend running We often recommend running plot_data_plane on a new file to see if it can be read by the other MET tools. You could run that with an increased verbosity to see if that gives you any other clues as to what is missing from the file. The command would look something like this:
You could also try increasing the verbosity of the MODE log output by setting Please note that many of our staff are still out of the office and others are preparing for a conference next week, so the support we can provided this week is limited, but we will do our best to help given the circumstances. |
Beta Was this translation helpful? Give feedback.
-
Thanks for sending these files. The file ending with _OG could be read into MET because it has a global attribute to note the CF conventions:
It looks like the file you created has this info as an attribute for the mrms_lcref field instead:
You can get around this by explicitly setting the file type with
You can set this in your METplus config file like this:
The above Plot-Data-Plane command ran successfully, but the log output showed that the timing information was not read properly.
This means that MET will not be able to properly match the data with other files at the correct times. The _OG file you sent also did not include any timing information. I found another MRMS file you had sent for #1924 named mrms_lcref2022-11-04T21_00_00.nc4 that does have timing information:
Adding this variable to your NetCDF file should fix this issue. It is possible to override the metadata from the input in MET (see this page of the documentation and search for "set_attr") to set the init or valid time, but I would recommend setting it properly in the file you are creating. |
Beta Was this translation helpful? Give feedback.
-
Hi @jcorner1, running your new file through plot_data_plane with verbosity set to 6 shows a number of log messages that identify missing information.
Instead of using an external tool to copy and modify the data, I would recommend writing a Python Embedding script to read the grib data and make any modifications needed in the script. You can use this script to pass the data into the MET tools. Here are some resources: Python Embedding for 2D Data from the MET User's Guide EDIT: If necessary you can also use Python Embedding to pass in the data from the NetCDF file you created and explicitly set the attributes needed to describe the data to MET. However, I think it would be better to read the GRIB2 data directly into the Python Embedding script, perform any modifications you need, and pass the data to MET. Also, this page contains many Python Embedding examples with sample data, scripts, and calls to plot_data_plane. We always recommend using plot_data_plane to generate an image to verify that MET is reading the data in the correct location on the grid. |
Beta Was this translation helpful? Give feedback.
Hi @jcorner1, running your new file through plot_data_plane with verbosity set to 6 shows a number of log messages that identify missing information.
/usr/local/met/bin/plot_data_plane hrrr_t20200602T0600z_wrfsfcf18.nc4 out.ps 'name="refc"; level="(*,*)";' -v 6