Project

General

Profile

ml2pl (Abort) issue

Added by Debasish Pal about 11 years ago

Hi,

I have encountered another problem with cdo. I was trying to use cdo to couple CMIP5 and wrf, following this online link :

http://www.meteo.unican.es/wiki/cordexwrf/SoftwareTools/CmorPreprocessor

I followed all the steps described in the link to create temp1, temp2 and temp3.nc files. However, whenever I was trying to interpolate to the pressure level, I am getting error :

cdo ml2pl,100000,97500,95000,92500,90000,87500,85000,82500,80000,77500,75000,70000,65000,60000,55000,50000,45000,40000,35000,30000,25000,22500,20000,17500,15000,12500,10000,7000,5000,3000 temp3.nc ta_Plev.nc
cdo ml2pl: Extrapolation of missing values enabled!

cdo ml2pl (Abort): Surface pressure not found!

Any help is welcome.

Thanks.
Deba

Replies (5)

RE: ml2pl (Abort) issue - Added by Jaison-Thomas Ambadan about 11 years ago

Hi,

From the docs: "The input file should contain the log. surface pressure or the surface pressure. To interpolate the temperature, the orography (surface geopotential) is also needed. The pressure, temperature, and orography are identified by their code numbers. Supported parameter tables are: WMO standard table number 2 and ECMWF local table number 128."

Hope this helps!
J

RE: ml2pl (Abort) issue - Added by Jaison-Thomas Ambadan about 11 years ago

If the GRIB parameter table number is different from the defaut(s) that CDO support, then you can use "setpartab" operator; for example, see the last post here: https://code.zmaw.de/boards/1/topics/1753#message-1759

RE: ml2pl (Abort) issue - Added by Jaison-Thomas Ambadan about 11 years ago

Hi again,

I just noticed that your input files are NetCDF. so I guess the variable names/attributes must follow the CDO/CF convention - otherwise CDO won't recognize the variables. OR you could convert to GRIB (using "-f grb") and then interpolate ...

RE: ml2pl (Abort) issue - Added by Luke Davis over 6 years ago

Hi folks,

I was also getting the "Surface pressure not found" error, but the solution turned out to be very, very simple! CDO just checks for a "standard_name" attribute matching the CF convention "surface_air_pressure". So, all you have to do is add this attribute to your surface pressure variable.

With NCO's "ncatted" tool, and with sea level pressure denoted by the variable "slp", this is done as follows:

ncatted -O -a standard_name,slp,c,c,"surface_air_pressure" <file>

Hope that helps!

RE: ml2pl (Abort) issue - Added by Karin Meier-Fleischer over 6 years ago

You can change the variable attributes with CDO, too. Use the CDO setattribute operator:

cdo setattribute,slp@standard_name=surface_air_pressure infile outfile

-Karin

    (1-5/5)