Hi Keith,
I am wondering if
dim1=fin&name_of_dimension
ndim1=dimsizes(dim1)
would work.
saji
---- * Keith Lindsay <klindsay_at_ucar.edu> [2008-05-07 10:24:23 -0600]: > 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 -- Saji N. Hameed APEC Climate Center +82 51 668 7470 National Pension Corporation Busan Building 12F Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji_at_apcc21.net KOREA _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Wed May 07 2008 - 20:06:20 MDT
This archive was generated by hypermail 2.2.0 : Wed May 14 2008 - 14:24:59 MDT