Re: hello! about coordinate variables reverse

From: Dennis Shea (shea AT cgd.ucar.edu)
Date: Wed Aug 31 2005 - 13:49:25 MDT

  • Next message: Chao Luo: "missing value problem"

    >I was wondering if I want to get a degree north -90 to
    >90 latitude from a degree north 90 to -90 latitude,
    >how can I get it?
    >If I do reverse u(:,:,lat|:,:)=u(:,:,::-1,:), do this
    >means that latitude was reversed , also the degree
    >north was changed to degree south?, If like this, how
    >can I get a get a degree north -90 to 90 latitude from
    >a degree south -90 to 90 latitude?

    If u(time,lev,lat,lon) and lat spans -90 to 90

    then
     
         printVarSummary(u) ; u before
         
         u = u(:,:,::-1,:) ; data and coordinate variable
                             ; will span 90 to -90
                             
         printVarSummary(u) ; u after
         
    look at the coordinates before and after
                             
    The units "degrees_north" is a standard convention.
    You do not want units of degrees_south.

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



    This archive was generated by hypermail 2b29 : Wed Aug 31 2005 - 14:35:15 MDT