NetCDF: Invalid dimension ID or name

91 views
Skip to first unread message

Céline Barrier

unread,
May 4, 2020, 4:49:10 AM5/4/20
to connectivity-modeling-system-club
Dear all,

I have looked at other topics talking about similar questions but I have not found what I am looking for. In addition, I am completely new to CMS, so I am not familiar with these questions (especially netcdf files).
So, I got the following error :

 fill_value and velocity_conversion_factor on read   1.26765060E+30   1.00000000    
 Opening file for reading: expt_example/nests/raw/nest_1_20150100000000.nc
 Error in the netCDF file: expt_example/nests/raw/nest_1_20150100000000.nc
 NetCDF: Invalid dimension ID or name


I understand that my nest_1.nml file and my  netcdf files do not correspond correctly in dimensions and variables but I do not know where I should make the modifications in my nest_1.nml.

I specify that it is oceanographic data stored on a local server and that I encounter this error when I want to use getdata (because i want to format these files correctly before launching CMS).


Can you help me ? I have attached the information on one of my netcdf files files and my nest_1.nml.

Thank you very much in advance !

Céline

Céline Barrier

unread,
May 4, 2020, 4:50:17 AM5/4/20
to connectivity-modeling-system-club
here are the attached files
infos_nest_1_20150100000000.txt
nest_1.txt

Nicolas Le Corre

unread,
May 8, 2020, 8:43:45 AM5/8/20
to connectivity-modeling-system-club
Hey Celine,
The information to complete the nest files are well described in the userguide. Perhaps you could have another look at it, as you get more familiar with the different parts you will understand more details. 
You have to put your dimension names in the first 4 rows. In your case:
xaxis= "ni"

 yaxis= "nj"

 zaxis= "level"

 taxis= "time"
 
Moreover, I think your nest files are overcomplicated, with too many dimensions (some for u, some for v,etc.). You should try to make nest files with all the variables in the same A-grid to end up with only 4 dimensions. You should ask the people who provided the oceanographic files to prepare them in a A-grid, which would simplify your setup.

Then there is the starting and ending coordinates of your nest.

For the variables, I am not sure which one you need (depending on the experiment you run), but your files seems to contain many variables. You should identify the one you need. Anyway, you will definitely need to put uvel_name (short UZ in your case) and vvel_name (short VZ).

Good luck.
Reply all
Reply to author
Forward
0 new messages