Re: help~

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Sun, 17 Aug 2008 23:16:21 -0600 (MDT)

Hi Ribbon,

I believe you are correct. If you actually look at the code
for short2flt_hdf, it has:

  if (scale.eq.1.0 .and. offset.eq.0.) then
      xF = (/ xS /)
  else
      xF = scale*(xS - offset)
  end if

I believe just the documentation is incorrect. We'll fix this.

-Mary

On Mon, 18 Aug 2008, Libin Yan wrote:

> Dear teachers,
>
> the following page is the description of the function short2flt_hdf
> http://www.ncl.ucar.edu/Document/Functions/Contributed/short2flt_hdf.shtml
>
> it says
> x_float = x_short*(scale - offset)
>
> but after reading hdf-files headfile
> I think it should be
> x_float = scale *(x_short- offset)
>
> which is right?
> Waiting for your help~
>
> Best wishes!
>
> Yours sincerely Ribbon.
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Aug 17 2008 - 23:16:21 MDT

This archive was generated by hypermail 2.2.0 : Sun Aug 17 2008 - 23:24:33 MDT