(no subject)

From: <>
Date: Tue Apr 06 2010 - 15:18:28 MDT

--===============1971037205==
Content-Type: multipart/alternative; boundary=Apple-Mail-30-223721180

--Apple-Mail-30-223721180
Content-Type: text/plain;
        charset=US-ASCII;
        format=flowed;
        delsp=yes
Content-Transfer-Encoding: 7bit

Hi Tong,

We had hoped to enhance our HDF reader to read unsigned variables
correctly. However, we currently use the NetCDF emulation interface
and it only recognizes signed variable types. We attempted to replace
the emulation interface with the HDF native interface prior to the
latest release, but ran into a few problems because of the difference
in the way dimensions are handled. Since we started late in the cycle,
we did not have enough time to get it all worked out with any
assurance of reliability before the release date. It will be simpler
to support unsigned types in HDFEOS, but it has not happened yet.

To compensate, we did add two new functions that are part of 5.2.0:
tounsigned and tosigned. These functions will do what you need. I
notice that Dennis also suggests a method that performs the conversion
using the where function and that will work with the current version
of NCL.
  -dave

On Apr 6, 2010, at 1: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> wrote:
> The attached which uses 5.1.1 was able to read/plot the data .. no
> problem.
>
> Good luck
>
>
>
>
> >The file is MOD021KM.A2000055.0000.005.2010041143816.hdf
> >I am still using NCL 5.1.1 so that is probably why the unsigned
> >integers are not supported.
> >Since I am not in a rush to plot this data, would you recommend I
> wait >for the full release of 5.2.0 or use the current beta? I
> notice on >your website it says you hope to release 5.2.0 by the end
> of this >month.
>
> >-Tong
>
>
> On 04/06/2010 09:36 AM, Tong Qi wrote:
> Hello NCL-Talk,
>
> I am trying to plot some HDFEOS2 data, but after noticing that the
> output values did not correspond to the data, I used ncl_filedump and
> found that it was producing the wrong values as well. For example, the
> data I am trying to plot is a 2-D array of 16-bit unsigned integers,
> but
> ncl_filedump produces negative values that differ from the data. I am
> using HDFView to view the data. Any help is appreciated.
>
> Thanks,
> -Tong
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
> --
> ======================================================
> Dennis J. Shea tel: 303-497-1361 |
> P.O. Box 3000 fax: 303-497-1333 |
> Climate Analysis Section |
> Climate & Global Dynamics Div. |
> National Center for Atmospheric Research |
> Boulder, CO 80307 |
> USA email: shea 'at' ucar.edu |
> ======================================================
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

--Apple-Mail-30-223721180
Content-Type: text/html;
        charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">Hi Tong,<div><br></div><div>We =
had hoped to enhance our HDF reader to read unsigned variables =
correctly. However, we currently use the NetCDF emulation interface and =
it only recognizes signed variable types. We attempted to replace the =
emulation interface with the HDF native interface prior to the latest =
release, but ran into a few problems because of the difference in the =
way dimensions are handled. Since we started late in the cycle, we did =
not have enough time to get it all worked out with any assurance of =
reliability before the release date. It will be simpler to support =
unsigned types in HDFEOS, but it has not happened =
yet.&nbsp;</div><div><br></div><div>To compensate, we did add two new =
functions that are part of 5.2.0: tounsigned and tosigned. These =
functions will do what you need. I notice that Dennis also suggests a =
method that performs the conversion using the where function and that =
will work with the current version of =
NCL.</div><div>&nbsp;-dave</div><div><br></div><div><div><div>On Apr 6, =
2010, at 1:51 PM, Tong Qi wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite">Thank you =
for the script for reading Height. I notice it is signed so 5.1.1 can =
read it no problem.<br>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?<br> <br><div class=3D"gmail_quote">On =
Tue, Apr 6, 2010 at 2:37 PM, Dennis Shea <span dir=3D"ltr">&lt;<a =
href=3D"mailto:shea@ucar.edu">shea@ucar.edu</a>&gt;</span> =
wrote:<br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px =
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: =
1ex;"> The attached which uses 5.1.1 was able to read/plot the data .. =
no problem.<br> <br> Good luck<div class=3D"im"><br> <br> <br> <br> =
&gt;The file is MOD021KM.A2000055.0000.005.2010041143816.hdf<br> &gt;I =
am still using NCL 5.1.1 so that is probably why the unsigned =
&gt;integers are not supported.<br> &gt;Since I am not in a rush to plot =
this data, would you recommend I wait &gt;for the full release of 5.2.0 =
or use the current beta? I notice on &gt;your website it says you hope =
to release 5.2.0 by the end of this &gt;month.<br> <br> &gt;-Tong<br> =
<br> <br></div><div class=3D"im"> On 04/06/2010 09:36 AM, Tong Qi =
wrote:<br> </div><blockquote class=3D"gmail_quote" style=3D"border-left: =
1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: =
1ex;"><div><div></div><div class=3D"h5"> Hello NCL-Talk,<br> <br> I am =
trying to plot some HDFEOS2 data, but after noticing that the<br> output =
values did not correspond to the data, I used ncl_filedump and<br> found =
that it was producing the wrong values as well. For example, the<br> =
data I am trying to plot is a 2-D array of 16-bit unsigned integers, =
but<br> ncl_filedump produces negative values that differ from the data. =
I am<br> using HDFView to view the data. Any help is appreciated.<br> =
<br> Thanks,<br> -Tong<br> <br> <br> <br></div></div> =
_______________________________________________<br> ncl-talk mailing =
list<br> List instructions, subscriber options, unsubscribe:<br> <a =
href=3D"http://mailman.ucar.edu/mailman/listinfo/ncl-talk" =
target=3D"_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br=
> </blockquote> <br> <br> <br> <br> -- <br> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D<br> Dennis J. Shea &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp;tel: 303-497-1361 &nbsp; &nbsp;|<br> P.O. Box =
3000 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fax: =
303-497-1333 &nbsp; &nbsp;|<br> Climate Analysis Section &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; |<br> Climate &amp; Global Dynamics Div. &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br> =
National Center for Atmospheric Research &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; |<br> Boulder, CO &nbsp;80307 &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; |<br> USA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;email: shea 'at' <a =
href=3D"http://ucar.edu" target=3D"_blank">ucar.edu</a> |<br> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D<br> <br>_______________________________________________<br> =
ncl-talk mailing list<br> List instructions, subscriber options, =
unsubscribe:<br> <a =
href=3D"http://mailman.ucar.edu/mailman/listinfo/ncl-talk" =
target=3D"_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br=
> <br></blockquote></div><br> =
_______________________________________________<br>ncl-talk mailing =
list<br>List instructions, subscriber options, unsubscribe:<br><a =
href=3D"http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.=
ucar.edu/mailman/listinfo/ncl-talk</a><br></blockquote></div><br></div></b=
ody></html>=

--Apple-Mail-30-223721180--

--===============1971037205==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

--===============1971037205==--
Received on Tue Apr 6 15:18:28 2010

This archive was generated by hypermail 2.1.8 : Wed Apr 07 2010 - 07:12:50 MDT