Lat-lon Problem

From: Prince K. Xavier (xavier AT caos.iisc.ernet.in)
Date: Fri Nov 04 2005 - 06:58:27 MST


Hello,

I am reading a binary data with the following attributes:

Dimensions and sizes: [time | 12] x [lat | 21] x [lon | 33]

For that I used the following piece of script...

do n = 0, 11
data(n,:,:) = fbindirread("pcomp.grd",n,(/21,33/),"float")
end do

          data!0 = "time"
          data!1 = "lat"
          data!2 = "lon"
         data&lon = fspan(40, 120, 33)
         data&lat = fspan(-20, 30, 21)

But when I try to plot (plot = gsn_csm_contour_map_ce(wks,data(2,:,:),False))
It just stretches out my data field on to the global map. Also it gives a
warning message "check_for_y_lat_coord: Warning: Data either does not
contain a valid latitude coordinate array or doesn't contain one at all."

How do I avoid this and plot the data only in the specified domain?

Thanks in advance
Prince

-- 
Prince K XAVIER
Centre for Atmospheric and Oceanic Sciences 
Indian Institute of Science 
Bangalore - 560 012 
INDIA 
http://caos.iisc.ernet.in/hpg/students/prince.html
__________________________________________________ 
Phone No. 
+91 80 2293 2505 (Extn:201)
+91 98808 19172  (Mobile)
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Fri Nov 04 2005 - 09:35:52 MST