usage of absolute (abs) function

From: madhura ranade <madhuraran_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 11 2013 - 01:01:44 MDT

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
Received on Sun Mar 10 23:02:01 2013

This archive was generated by hypermail 2.1.8 : Wed Mar 13 2013 - 14:19:38 MDT