Not a valid data file? #1080
-
I tried a simple test using plot_data_plane to look at netcdf output from the UFS on a gaussian grid and got back the following: plot_data_plane sfcf840.nc test.ps 'name="prateb_ave"; level="(,,*)";' -v 4 Is this a problem with how I have set up the plot_data_plane command, or is there something in the ufs gaussian grid that is causing an issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @benjamin-cash, It looks like it is trying to interpret the file as a NetCDF file that is generated by MET, which it is not. You could try running it like this: plot_data_plane sfcf840.nc test.ps 'name="prateb_ave"; level="(,)"; file_type=NETCDF_NCCF;' -v 4 This tells the app that it is a CF compliant NetCDF file. Navigate to https://met.readthedocs.io/en/latest/Users_Guide/config_options.html?highlight=NETCDF_NCCF#settings-common-to-multiple-tools and search for NETCDF_NCCF for more info. If that does not work, then the file may not be a CF compliant file. If that is the case, you can either modify the file to include the necessary information to be read by MET or you can write a Python Embedding script to read the data and set the appropriate attributes to pass the data into MET. If you continue to have issues, you can send the file in question and I can take a closer look. |
Beta Was this translation helpful? Give feedback.
Hi @benjamin-cash,
It looks like it is trying to interpret the file as a NetCDF file that is generated by MET, which it is not. You could try running it like this:
plot_data_plane sfcf840.nc test.ps 'name="prateb_ave"; level="(,)"; file_type=NETCDF_NCCF;' -v 4
This tells the app that it is a CF compliant NetCDF file. Navigate to https://met.readthedocs.io/en/latest/Users_Guide/config_options.html?highlight=NETCDF_NCCF#settings-common-to-multiple-tools and search for NETCDF_NCCF for more info.
If that does not work, then the file may not be a CF compliant file. If that is the case, you can either modify the file to include the necessary information to be read by MET or you can write a Pyth…