Re: labelbar with log scale

From: eddycarl <eddycarl_at_nyahnyahspammersnyahnyah>
Date: Mon Feb 01 2010 - 11:17:03 MST

Thanks for your reply Arindam!
Yes, I finally use a similar way as that of your suggestion using res@cnLevelSelectionMode = "ExplicitLevels" and res@cnLevels = (/ 10e-2,10e-1,10e0,10e1/). It really works! Thanks again!

Have a nice day!
-Eddy

"Arindam Chakraborty" <arch@caos.iisc.ernet.in>:
hi Eddy,
 see if the following solves your problem:

...
 pows = ispan(-2,2,1)
 levs = 10^pows
 print(levs)
...
 res@cnLevels = levs
...

regards,

arindam

-- 
ARINDAM CHAKRABORTY 
---------- Original Message -----------
From: eddycarl <eddycarl@126.com> 
To: ncl-talk <ncl-talk@ucar.edu> 
Sent: Tue, 2 Feb 2010 00:16:48 +0800 (CST) 
Subject: [ncl-talk] labelbar with log scale 
> Hi there, 
> 
> I want to create a contour fill plot on a lat/lon plain with the label bar in log scale (ranging between 10^-2, 10^-1, 10^0, 10^1, 10^2). I know that this should not be difficult, but I just could not find a suitable example on the NCL website to get it through. Someone can help on this please? 
> 
> Thanks! 
> -Eddy 
> 
> 
> -- 
> This message has been scanned for viruses and 
> dangerous content by MailScanner, and is 
> believed to be clean. 
------- End of Original Message -------
-- 
This message has been scanned for viruses and 
dangerous content by MailScanner, and is 
believed to be clean. 

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Feb 1 11:18:24 2010

This archive was generated by hypermail 2.1.8 : Sun Feb 07 2010 - 15:37:25 MST