getting dimension length from a file

From: Keith Lindsay <klindsay_at_nyahnyahspammersnyahnyah>
Date: Wed, 7 May 2008 10:24:23 -0600 (MDT)

Hi,

I have a NetCDF file that has some named dimensions in it whose size I
would like to get inside an NCL script I'm writing.

The catch is that the file doesn't have any variables that contain these
dimensions. Because of this I don't see how I can use getfilevardimsizes
to get the dimension sizes. There are no variables to call it with.

A potentially promising NCL function is getfiledimsizes, which returns
the sizes of all named dimensions in a file. But I don't see how to
connect the dimension sizes returned from getfiledimsizes with
particular dimension names. I don't see a corresponding getfiledimnames
function.

If I were doing this in Fortran, I would use NF_INQ_DIMID and
NF_INQ_DIMLEN, but I don't see how to translate that into NCL.

Anyone see how I get size of a dimension out of a file that doesn't have
a corresponding variable?

Thanks, Keith

-- 
******************************************************************
Keith Lindsay                http://www.cgd.ucar.edu/oce/klindsay/
email: klindsay_at_ucar.edu   phone: 303-497-1722   fax: 303-497-1700
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 07 2008 - 10:24:23 MDT

This archive was generated by hypermail 2.2.0 : Wed May 14 2008 - 14:24:59 MDT