Loading a 2D netcdf CF dataset in 2.4.0.RC0

11 posts / 0 new
Last post
bguillaume
Loading a 2D netcdf CF dataset in 2.4.0.RC0

I am trying to load a 2D netcdf CF dataset, containing rainfall amounts (mm/hr), in VAPOR 2.4.0.RC0.
My problem is that it loads, but with following user coord extents (X,Y,Z) and grid extents (X,Y,Z) (seen in the 2D section of VAPOR):
user coord extents (X,Y,Z):
Min: 0 0
Max : 1 0.608696

grid extents (X,Y,Z):
0 0 0
344 209 0

These are not the geographical LAT-LON coordinates (X,Y,Z) that are in the CF file, and also not the proper grid extent 345x210.

Can anybody help me ? I can provide the netcdf CF file if needed.
Here its header:
ncdump -h test.nc
netcdf test {
dimensions:
west_east = 345 ;
south_north = 210 ;
time = UNLIMITED ; // (73 currently)
variables:
double lon(west_east) ;
lon:standard_name = "longitude" ;
lon:long_name = "longitude" ;
lon:units = "degrees_east" ;
lon:axis = "X" ;
double lat(south_north) ;
lat:standard_name = "latitude" ;
lat:long_name = "latitude" ;
lat:units = "degrees_north" ;
lat:axis = "Y" ;
double time(time) ;
time:standard_name = "time" ;
time:units = "hours since 1998-09-12 00:00:00" ;
time:calendar = "standard" ;
float RAIN(time, south_north, west_east) ;
RAIN:units = "mm hr-1" ;
RAIN:_FillValue = -9.e+33f ;
RAIN:coordinates = "lon lat" ;

...

clyne

Which conversion tool are you using on your data? Have you tried using 'momvdfcreate' and 'mom2vdf'. The MOM model produces CF compliant data and may be similare enough to your own for these tools to work.

bguillaume

Thanks Clyne for your prompt answer. I just tested with momvdfcreate. I get the following error message: "Failed to initialized udunits2 library : Error parsing unit specification. No valid variables." Any clue?

clyne

Can you make a copy of one of you NetCDF files available for download?

bguillaume

Dear clyne, did you receive my email ? I am not sure

bguillaume

Dear clyne, I tried to email you (email button of the forum). Did you receive my email ?

clyne

How are you converting your NetCDF data to the vapor VDC format? If you are using the ncdfcreate and ncdf2vdf commands they will not give the desired result because they do not understand the CF conventions. You may be able to use momvdfcreate and mom2vdf. These utilities support the MOM ocean model, which is CF compliant. They may work for your data. If not, let us know and perhaps you can provide a sample of your data.

clyne

I have not received any direct email.

bguillaume

Ah ok. Let me try again to send you email with the sample file.

bguillaume

New attempt with the email functionnality of the forum. Did you get the message?

clyne

I did not receive anything. You can simply mail vapor@ucar.edu.