Project

General

Profile

How to access hybrid-levels variables of CMIP5 data

Added by jyoti lodha over 6 years ago

Hi ,
I want to find vctsize of my data. Following commands I need to execute to calculate vctsize:

1)ncdump -v p0 hus.temp1.nc | grep "p0 =" ( As I am not getting p0 variable in my data. ).

2)cdo outputf,%10.3f,2 -mulc,p0(value of p0) -selname,lon_bnds temp1.nc.
3) cdo outputf,%10.3f,2 -selname,lat_bnds temp1.nc .

How I can process above 2 command and make vctsize for my data and run following command:

cdo setzaxis,myzaxisinvert.dat hus.temp1.nc temp2.nc.

Is my zaxis.dat is correct which I have made?

cdo zaxisdes hus.temp1.nc
Warning (scan_hybrid_formula) : NetCDF: Variable not found - ap
Warning (scan_hybrid_formula) : NetCDF: Variable not found - b
Warning (varDefZaxis) : VCT missing #
  1. zaxisID 1 #
    zaxistype = surface
    size = 1
    name = sfc
    longname = surface
    levels = 0 #
  2. zaxisID 2 #
    zaxistype = hybrid
    size = 24
    name = lev
    longname = hybrid sigma pressure coordinate
    units = 1
    levels = 0.996108393 0.987369306 0.976503336 0.963111301 0.946793479 0.927149561
    0.903778279 0.876277192 0.844242367 0.807267727 0.764944402 0.716859287
    0.662593166 0.601717232 0.533786396 0.458325138 0.37808657 0.298944382
    0.224749227 0.157381019 0.0991299239 0.0523401932 0.0190883974 0.00365029282
    vctsize = 0
    cdo zaxisdes: Processed 5 variables ( 0.00s )