Project

General

Profile

CCSM4 -- cdo remapbil: unsupported generic coordinates (Variable: tos)

Added by Maria Pyrina over 4 years ago

Hello all,

I have CCSM4 model output for SSTs written in generic grid. The header regarding the SST (tos for the ccsm4 model) includes the coordinates attribute and looks like this"

float tos(time, j, i) ;
tos:standard_name = "sea_surface_temperature" ;
tos:long_name = "Sea Surface Temperature" ;
tos:comment = "TEMP at topmost level, units from C to K\r, CMIP5_table_comment: \"this may differ from \"\"surface temperature\"\" in regions of sea ice.\"" ;
tos:units = "K" ;
tos:original_name = "TEMP" ;
tos:original_units = "degC" ;
tos:history = "2012-02-06T03:00:10Z altered by CMOR: Converted units from \'degC\' to \'K\'. 2012-02-06T03:00:10Z altered by CMOR: replaced missing value flag (9.96921e+36) with standard missing value (1e+20)." ;
tos:cell_methods = "time: mean (interval: 30 days)" ;
tos:cell_measures = "area: areacello" ;
tos:missing_value = 1.e+20f ;
tos:_FillValue = 1.e+20f ;
tos:associated_files = "baseURL: http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation gridspecFile: gridspec_ocean_fx_CCSM4_historical_r0i0p0.nc areacello: areacello_fx_CCSM4_historical_r0i0p0.nc" ;
tos:coordinates = "lat lon" ;

I want to remap the file in latlon grid but I get the famous error cdo remapbil (Abort): Unsupported generic coordinates (Variable: tos)!

Anyone can help?
I attach the file's full header and the target grid.

Thanks a lot,
Maria


Replies (5)

RE: CCSM4 -- cdo remapbil: unsupported generic coordinates (Variable: tos) - Added by Ralf Mueller over 4 years ago

hi Maria!

Please upload a single timestep for further investigation.

cheers
ralf

RE: CCSM4 -- cdo remapbil: unsupported generic coordinates (Variable: tos) - Added by Maria Pyrina over 4 years ago

Hello Ralf,

thanks for the answer. I have uploaded the file. Furthermore, I noticed that with each processing of the file (i.e. cdo selyear)
the coordinates attribute is lost. So, in the file that I uploaded I have added the coordinates attribute again (cdo setattribute,tos@coordinates="lat lon" infile outfile). Thanks again!

Best regards,
Maria

RE: CCSM4 -- cdo remapbil: unsupported generic coordinates (Variable: tos) - Added by Maria Pyrina over 4 years ago

I just realized that also the lat and lon variables are lost from the header...
Why does this happen?

RE: CCSM4 -- cdo remapbil: unsupported generic coordinates (Variable: tos) - Added by Ralf Mueller over 4 years ago

yes, lon and lat are not in the uploaded file. Hence no coordinates :-\

RE: CCSM4 -- cdo remapbil: unsupported generic coordinates (Variable: tos) - Added by Maria Pyrina over 4 years ago

I found what was causing the original problem. The cdo remapbil didn't work in the original file even though the coordinates="lat lon" attribute was included in tos, because the shells environment variable IGNORE_ATT_COORDINATES was set to 1. I set it to 0 and then remapbil worked fine (export IGNORE_ATT_COORDINATES=0).

    (1-5/5)