Re: Use of "short2flt_hdf" function

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue May 22 2012 - 05:42:19 MDT

You must provide much more information than this.

Where is a sample file?
Did you look at the variable 'vnam' on the file?
     ncl_filedump FOO.hdf
Is it type short?

We are willing to help BUT our time is valuable and we
need information.

if you are new to NCL, please read the Mini-Language manual

http://www.ncl.ucar.edu/Document/Manuals/

On 5/21/12 12:10 AM, Abhik Santra wrote:
> Hi,
>
> I am using "short2flt_hdf" function in NCL v5.2.1 to extract a variable from .HDF files. But it is showing some error: "fatal:Argument type mismatch on argument (0) of (short2flt_hdf) can not coerce". I am new to handle .HDF files. So, can anyone help to solve this problem? The part of the code where the error occurs are as follows:
>
> f = addfile(diri+fili(nf), "r")
> ; read data
> x = short2flt_hdf( f->$vNam$ )
> lat2d = short2flt_hdf( f->geolocation(:,:,0) )
> lon2d = short2flt_hdf( f->geolocation(:,:,1) )
> nx = product(dimsizes(x))
>
> Thank you in advance.
>
>
> With regards,
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue May 22 05:42:31 2012

This archive was generated by hypermail 2.1.8 : Fri May 25 2012 - 08:35:50 MDT