maurice, i suspect you are shifted b/c you only adjusted the data and did
not also adjust the longitude coordinate variable associated with the
data. the gsn_csm interfaces look at the coordinate variable to place the
data on the map.
sm
On Tue, 13 Jul 2004, Maurice McHugh wrote:
> 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@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@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
******************************************************
Sylvia Murphy EML: murphys@ucar.edu
NCAR CGD/CSEG PHN: 303-497-1720
1850 Table Mesa Drive FAX: 303-497-1333
Boulder CO 80305
WEB: http://www.cgd.ucar.edu/csm/support/
http://www.cgd.ucar.edu/csm/support/CSM_Graphics/
******************************************************
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Wed Jul 14 2004 - 08:35:26 MDT