problem longitudes.

From: Maurice McHugh (mmchug4 AT XXXXXX)
Date: Tue Jul 13 2004 - 15:20:20 MDT


Hello eveyerone-

Another question from the silly category, but I am stumped on this one.

I have a file that has a range of longitudes from 60. to 417.
Individual time periods plot fine. However, I want to force the
longitudes to go from 0. to 360. to be consistent with all my other
files.

I attempt the following: ["pr1" is the original variable, and I have
already created "pr3" to store the new "reformatted" data]

        pr4 = pr1(:,:,{360.1:maxLon})
        pr5 = pr1(:,:,{59.9:360.})

        NLON4 = dim2(pr4) ; # of lons in pr4
        NLON5 = dim2(pr5) ; # of lons in pr5

        pr3(:,:,0:NLON5-1) = (/ pr5 /)
        pr3(:,:,NLON5:) = (/ pr4 /)

This appears to work, but after I attempt to force the lons to 0-360,
the plots are shifted by 60. I can adjust for this in the mapping
script, but I really do not want to do so.

Many thanks for any assistance!

Maurice

-- 
Maurice McHugh, Ph.D.

mmchug4 AT lsu.edu

Assistant Professor Ph: (225)578-0476 Department of Geography and Anthropology Fax: (225)578-4420 Louisiana State University

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



This archive was generated by hypermail 2b29 : Wed Jul 14 2004 - 08:35:25 MDT