Scaling a Variable

From: Prince K. Xavier <xavier_at_nyahnyahspammersnyahnyah>
Date: Tue, 29 Nov 2005 19:07:21 +0530 (IST)

Hi all,

My requirement is very simple, but there's something fishy. I have a
variable of the following summary

==========================================================================
Variable: p_seas
Type: float
Total Size: 14400 bytes
             3600 values
Number of Dimensions: 3
Dimensions and sizes: [time | 6] x [latitude | 20] x [longitude | 30]
Coordinates:
             time: [ 0.. 151]
             latitude: [-20.93000030517578..32.09199905395508]
             longitude: [39.375..120.9375]
Number Of Attributes: 8
==========================================================================

I am trying to scale the variable by a factor (say multiply by 100). Can
I simply multiply it at the time of plotting?

plot = gsn_csm_contour_map_ce(wks,p_seas(0,:,:)*100,res)
------------------------------------------------^^^----

I tried this, but somehow, I feel the coordinates are also getting scaled
up. Is this normal? How can I get rid of this problem?

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_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Nov 29 2005 - 06:37:21 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 29 2005 - 07:37:38 MST