[ncl-talk] Human Discomfort index
Dennis Shea
shea at ucar.edu
Thu Sep 13 07:31:35 MDT 2018
That is a documentation error.
function heat_discoi_stull (
t : numeric,
twb_stull : numeric,
rh : numeric,
iounit [2] : integer,
opt : *integer* <==should be *logical*
)
*opt*
Currently not used. Set to *False*. <===
=======================
Change:
Index=heat_discoi_stull(t,twb,rh,(/0,0/),it)
To:
Index=heat_discoi_stull(t,twb,rh,(/0,0/),False)
On Thu, Sep 13, 2018 at 2:39 AM, Muhammad Omer Mughal <
m.mughal1 at graduate.curtin.edu.au> wrote:
> Hi
>
>
> I am trying to obtain the discomfort index using the following
>
>
> a=addfile("../wrfout_d05_2016-04-01_00:00:00","r")
>
> times=wrf_user_getvar(a,"times",-1)
> ntimes=dimsizes(times)
>
> do it =0,ntimes-1,1
> t= wrf_user_getvar(a,"T2",it)
> twb=wrf_user_getvar(a,"twb",it)
> rh=wrf_user_getvar(a,"rh",it)
> Index=heat_discoi_stull(t,twb,rh,(/0,0/),it)
> print(Index)
> end do
>
> but I am getting the following warning and error
>
>
> warning:Argument 4 of the current function or procedure was coerced to the
> appropriate type and thus will not change if the function or procedure
> modifies its value
>
> fatal:Lt: Number of dimensions do not match, can't continue
>
> My question is this error from the function heat_discoi_stull
>
>
>
> Regards
>
> Muhammad Omer Mughal
> MSc BSc Mechanical Engineering
> PhD Research Scholar
> Remote Sensing and Satellite Research Group
> Department of Imaging and Applied Physics
> Curtin University
>
> Curtin University
> Tel | +61 8 9266 7962
> Fax | +61 8 9266 2377
> Mobile | 0470 237 525
>
> Email | m.mughal1 at postgrad.curtin.edu.au <m.lynch at curtin.edu.au>
> Web | http://curtin.edu.au
>
> Curtin University is a trademark of Curtin University of Technology.
> CRICOS Provider Code 00301J (WA), 02637B (NSW)
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180913/63a2b376/attachment.html>
More information about the ncl-talk
mailing list