[ncl-talk] Define and populate plev_bnds in NetCDF

Hertz, Judith A. (GSFC-606.0)[INTERNATIONAL TECHNOLOGY COALITION, INC] judith.a.hertz at nasa.gov
Tue Oct 20 12:44:05 MDT 2015


Greetings, NCL’ers

I’m new to NCL. I want to add a variable, plev_bnds, to NetCDF files so that:

double plev_bnds(plev, bnds) ;

data:

 plev_bnds =
  100000, 98750,
  98750, 96250,
  96250, 93750,
  93750, 91250,
  91250, 88750,…..

I’ve found addfile, which looks to be a good way to populate the data but the docs say the variable must already exist. Do you know what is the NCL way to create/define a new variable?

thanks,

judy


More information about the ncl-talk mailing list