Re: lonFLIP

From: Paulo de Melo Gonçalves (pmelo AT fis.ua.pt)
Date: Tue Nov 02 2004 - 20:08:58 MST

  • Next message: Kara Sterling: "PopLatLonV()"

    Thanks D. Shea,

    it worked. I do have, indeed, a cyclic point since my data for longitudes
    0.01 and 359.99 is the same. However, I did not expect lonFlip to notice that
    because these longitudes are not mathematically equal to 0 and 360.

    Paulo

    On Tuesday 02 November 2004 05:32, Dennis Shea wrote:
    > Your longitudes are spaced 3.75 degress apart. The 0.01 and 359.99
    > look out of place. Assumin that the 0.01 and the 359.99
    > really refer to 0.0 and 360, then "yes", the longitudes
    > and, presumably, the data array do contain a cyclic pt.
    >
    > lonFlip assumes that the array does not explicitly contain
    > the cyclic values.
    >
    > Let x(....,nlat,mlon) where mlon contains the cyclic values
    >
    > xNew = lonFlip( x(...,nlat,mlon-1) )
    > printVarSummary( xNew )
    >
    > If you are using NCL plot functions like "gsn_csm_contour_map_ce"
    > then this is the way the functions expects the data.
    >
    > Good luck
    >
    > > the contributed ncl function "lonFlip" doesn't work with my data which
    > > longitude coordinate is the right most dimension and global. Why? Does it
    > > have a cyclic point?
    > > -----
    > > Variable: lon (coordinate)
    > > Type: float
    > > Total Size: 388 bytes
    > > 97 values
    > > Number of Dimensions: 1
    > > Dimensions and sizes: [lon | 97]
    > > Coordinates:
    > > Number Of Attributes: 2
    > > long_name : Longitude
    > > units : degrees_east
    > > (0) 0.01
    > > (1) 3.75
    > > (2) 7.5
    > > (3) 11.25
    > > ......
    > > (93) 348.75
    > > (94) 352.5
    > > (95) 356.25
    > > (96) 359.99
    > >
    > > _______________________________________________
    > > ncl-talk mailing list
    > > ncl-talk@ucar.edu
    > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
    >
    > _______________________________________________
    > ncl-talk mailing list
    > ncl-talk@ucar.edu
    > http://mailman.ucar.edu/mailman/listinfo/ncl-talk

    _______________________________________________
    ncl-talk mailing list
    ncl-talk@ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk



    This archive was generated by hypermail 2b29 : Wed Nov 03 2004 - 07:44:09 MST