Hi Madhura,
It sounds to me like fabs is not liking what you are passing it, which
is weird as fabs accepts all types of arrays. What happens if you were
to take the fabs call out of the if statement?
print(fabs(tvmax(i,ilat,ilon)))
(Note: According to the documentation fabs should be used in place of
abs due to the fact that fabs accepts arrays of all types.)
Finally, what version of NCL are you running? Please respond to ncl-talk
so others besides myself can assist.. Adam
On 03/11/2013 01:01 AM, madhura ranade wrote:
> Hello all,
> i am trying to test the significance of regression coefficient
>
> so this is what i did.
>
> if((fabs(tvmax(i,ilat,ilon))).ge.tcrit)then
> rcsig(i,ilat,ilon) = rc(i,ilat,ilon)
> end if
>
> initially i had used abs function instead of fabs. then i got an error
>
> "Argument type mismatch on argument (0) of (abs) can not coerce"
>
> Then i found from one of the ncl talks to use 'fabs' instead of 'abs'
>
> i did so, and yet i got the same error message.
>
> "Argument type mismatch on argument (0) of (fabs) can not coerce"
>
> I have defined both the variables, i.e. rc and rcsig as float.
>
> is there any way i check this?
>
> Thanks.
>
> Madhura
> --
> /*
> Give me freshening breeze,
> A white and swelling sail,
> A ship that cuts the dashing waves,
> And weathers every gale.
> */
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- ______________________________________________________________ Adam Phillips asphilli@ucar.edu NCAR/Climate and Global Dynamics Division (303) 497-1726 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 11 09:13:26 2013
This archive was generated by hypermail 2.1.8 : Wed Mar 13 2013 - 14:19:38 MDT