Reading from netcdf files within NCL

From: Parish, Helen <hparish_at_nyahnyahspammersnyahnyah>
Date: Fri Aug 23 2013 - 02:53:22 MDT

I am trying to read data from 50 netcdf files. Within each of these netcdf files there are 10 model outputs (from the CAM model). I would like to read in the variables from only the first of the 10 outputs in each netcdf file. I am wondering if there is a way to do this kind of read within NCL ?. I have been using lines like these within my script to read variables from all the files :

    do nf = 0, nfili-1

  fi = addfile (diri+fili(nf), "r")

     PS = fi->PS
     U = fi->U
     lat = fi->lat

    end do

However, this reads in all of the 10 outputs within the file.

Does anyone know how to read in just one of the 10 outputs from each of the 50 files ?.

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Aug 23 02:53:35 2013

This archive was generated by hypermail 2.1.8 : Fri Aug 30 2013 - 14:04:57 MDT