Skip to content

Not a valid data file? #1080

Locked Answered by georgemccabe
benjamin-cash asked this question in File I/O
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@benjamin-cash
Comment options

@georgemccabe
Comment options

Answer selected by benjamin-cash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants