Dear All,
I have my own oceanographic data from CROCO (ROMS-AGRIF). Such as Christina i couldnt match my variable names into my
data.nc with the nest_1.nml when I runned ./cms my_data. I runned the example downloaded by getdata getting results, but if I change the dimension or variable names between " " in the input_example/nest_1.nml, anyway cms run.
Then i changed in my own data the variable and dimension names to the same which produced getdata, "Longitude", "Latitude", "Depth" ,"Time", transforming my C-grid to an A-grid and from sigma to z-level (Sorry, but the last two processes i did before change the dimension and variable names, for the first test). Also I'm using Time as the record dimension (UNLIMITED). Then from a "
NETCDF variable not found" I passed to a "Error in the netCDF file: expt_mpa/nests/
nest_1_20101201000000.nc / NetCDF: Start+count exceeds dimension bound". What i figure out is that the first trouble was due to the wrong dimension names (now solved) and the second one perhaps depend of the dimension order in each variable, where I changed variable("Time","Depth","Latitude","Longitude" ) by variable("Longitude", "Latitude", "Depth" ,"Time"). This last step also didn't work and i got the same last error
Thank you
DATA FROM MATLAB SHOW DIMENSIONS AND SIZES WITH 31 SNAPSHOT
Format:
classic
Dimensions:
Longitude = 155
Latitude = 172
Depth = 40
Time = 31 (UNLIMITED)
Variables:
Longitude
Size: 155x1
Dimensions: Longitude
Datatype: double
Attributes:
long_name = 'Longitude'
units = 'degrees_east'
valid_range = [-82.9167 -70.0833]
Latitude
Size: 172x1
Dimensions: Latitude
Datatype: double
Attributes:
long_name = 'Latitude'
units = 'degrees_north'
valid_range = [-38.9352 -27.026]
Time
Size: 31x1
Dimensions: Time
Datatype: double
Attributes:
long_name = 'Time'
units = 'seconds since 2002-1-17'
Depth
Size: 40x1
Dimensions: Depth
Datatype: double
Attributes:
long_name = 'Depth'
units = 'meter'
valid_range = [0 2000]
zu
Size: 155x172x40x31
Dimensions: Longitude,Latitude,Depth,Time
Datatype: double
Attributes:
long_name = 'zu'
units = 'm/s'
_FillValue = 1.2676506e+30
valid_range = [-0.51724 0.38312]
zv
Size: 155x172x40x31
Dimensions: Longitude,Latitude,Depth,Time
Datatype: double
Attributes:
long_name = 'zv'
units = 'm/s'
_FillValue = 1.2676506e+30
valid_range = [-0.31513 0.64925]
zw
Size: 155x172x40x31
Dimensions: Longitude,Latitude,Depth,Time
Datatype: double
Attributes:
long_name = 'zw'
units = 'm/s'
_FillValue = 1.2676506e+30
valid_range = [-0.00054219 0.00072905]
##########################################################################################
NCDUMP -H SHOWING THE DIMENSION POSITION INSIDE THE VARIABLE WITH 1 SNAPSHOT
dimensions:
Depth = 40 ;
Latitude = 172 ;
Longitude = 155 ;
Time = UNLIMITED ; // (1 currently)
variables:
double Depth(Depth) ;
Depth:long_name = "Depth" ;
Depth:units = "meter" ;
Depth:valid_range = 0., 2000. ;
double Latitude(Latitude) ;
Latitude:long_name = "Latitude" ;
Latitude:units = "degrees_north" ;
Latitude:valid_range = -38.9352378845215, -27.0260391235352 ;
double Longitude(Longitude) ;
Longitude:long_name = "Longitude" ;
Longitude:units = "degrees_east" ;
Longitude:valid_range = -82.9166641235352, -70.0833358764648 ;
double Time(Time) ;
Time:long_name = "Time" ;
Time:units = "seconds since 2002-1-17" ;
double zu(Time, Depth, Latitude, Longitude) ;
zu:long_name = "zu" ;
zu:units = "m/s" ;
zu:_FillValue = 1.2676506e+30 ;
zu:valid_range = -0.517239212989807, 0.383117631077766 ;
double zv(Time, Depth, Latitude, Longitude) ;
zv:long_name = "zv" ;
zv:units = "m/s" ;
zv:_FillValue = 1.2676506e+30 ;
zv:valid_range = -0.315126286007926, 0.64925342798233 ;
double zw(Time, Depth, Latitude, Longitude) ;
zw:long_name = "zw" ;
zw:units = "m/s" ;
zw:_FillValue = 1.2676506e+30 ;
zw:valid_range = -0.000542192161233348, 0.000729051047234748 ;
// global attributes:
:NCO = "4.6.8" ;
#################################################################
TEST WITH GETDATA JUST TO READ
FILE.NC./getdata mpa 1
fill_value and velocity_conversion_factor on read 1.26765060E+30 1.00000000
Succesfully read data: Longitude
Succesfully read data: Latitude
Succesfully read data: Depth
Starting X Axis index: 1
Ending X Axis index : 155
Starting Y Axis index: 172
Ending Y Axis index : 1
Starting Z Axis index: 1
Ending Z Axis index : 40
Reading data files: 2010-12-1 00:00:00
NetCDF: Start+count exceeds dimension bound
root@DESKTOP-8RKHT2D:/mnt/c/Users/juanf/Documents/cms/cms-master/expt# ./cms mpa 1
NetCDF: Start+count exceeds dimension bound