Re: ncl_filedump output

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 06 2010 - 15:05:44 MDT

http://en.wikipedia.org/wiki/Integer_%28computer_science%29
---------------------------------------------------------------
ncl 0> f = addfile
("MOD021KM.A2000055.0000.005.2010041143816.hdf.hdfeos", "r")
ncl 1> xs = f->EV_1KM_Emissive_MODIS_SWATH_Type_L1B
ncl 2> print("min(xs)="+min(xs)+" max(xs)="+max(xs))

ncl 3> xi = where(xs.lt.inttoshort(0), abs(xs)+32767, xs)
ncl 4> printVarSummary(xi)

On 04/06/2010 01:51 PM, Tong Qi wrote:
> Thank you for the script for reading Height. I notice it is signed so
> 5.1.1 can read it no problem.
> Is there any way to properly read EV_1KM_Emissive since it is unsigned?
> The latitude and longitude I use to read it are found in another file,
> but the main issue is that NCL reads the unsigned integer values
> incorrectly. Is there any way to convert the unsigned data into signed
> so NCL can use it?
>
> On Tue, Apr 6, 2010 at 2:37 PM, Dennis Shea <shea@ucar.edu
> <mailto:shea@ucar.edu>> wrote:
>
> The attached which uses 5.1.1 was able to read/plot the data .. no
> problem.
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 6 15:05:49 2010

This archive was generated by hypermail 2.1.8 : Wed Apr 14 2010 - 09:15:22 MDT