Reading netcdf file #2525
-
Hello, DEBUG 1: Start plot_data_plane by nhd(17054) at 2024-03-26 09:40:48Z cmd: /perm/nhd/MET/bin/plot_data_plane /perm/nhd/data_sample/MET_Norway_snow/daily-avhrr-sce-nhl_ease-50_201505011200_resampled.nc test.ps prob_nosnow_c -v 6 The file is attached. Not sure what is wrong with the file? This is a downsampled version of a bigger file, but I get the same error from both. Not sure what the error means? The file is attached. [ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
HI @carlos9917. Carlos, thanks for explaining the problem you're having and for sending along the sample data to illustrate. I am able to replicate the problem you describe by running the
Looking at the file you sent, I see that the following variable exists:
However, we were using "prob_nosnow_c" and not "prob_snow_c". While that is not the problem, it's still good to note and correct. The current problem lies in the inputs to plot_data_plane. The field string isn't specified correctly. Looking at an example in our documentation for plot_data_plane, I've reformatted the command to the following (using
That gets us farther, but we now have a new error:
Perhaps using the full file instead of the downsampled version, you will not receive this error. Please give it a try and let us know how it goes. If you receive the same error, please send the full file to our ftp server using these directions and let us know once you've put the file there so we can grab it. |
Beta Was this translation helpful? Give feedback.
@carlos9917 Just a follow up - I incorrectly specified the level. For NetCDF files, the level should be specified in the following way:
level="(0,*,*)";
. Modifying the command for the correct specification of the level and addingfile_type = NETCDF_NCCF;
as an input produces the following results. For more information on specifying the level and file_type, please see our documentation in this section.