Re: warning and error when running dtrend_leftdim witb True option

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Jun 15 2011 - 06:51:49 MDT

Hi Ileana

dtrend_leftdim is a deprecated function. The documentation
should mention that.

Can you please try the following?

http://www.ncl.ucar.edu/Document/Functions/Built-in/dtrend_n.shtml

    trend = dtrend_n(dat,True,0)
    copy_VarMeta(dat, trend) ; there is no dtrend_n_Wrap (yet)
    trend@ncl_op = "dtrend"

THX
D

On 6/15/11 1:52 AM, Ileana Blade wrote:
> Hello
>
> When I use function dtrend_leftdim with option set to "True" (so I can
> keep the slope as an argument)
>
> printVarSummary(dat)
> trend = dtrend_leftdim(dat,True)
>
> I get the following warnings and error (although the code runs to the
> end and works fine - I have checked)
>
> -----------------
> Variable: dat
> Type: double
> Total Size: 24883200 bytes
> 3110400 values
> Number of Dimensions: 3
> Dimensions and sizes: [time | 240] x [lat | 90] x [lon | 144]
> Coordinates:
> time: [227.5..87462.5]
> lat: [-89.49438..89.49438]
> lon: [1.25..358.75]
> Number Of Attributes: 6
> long_name : Precipitation
> standard_name : precipitation_flux
> units : kg m-2 s-1
>
> --------------
>
> No warning/error if option is set to False.
> The variable trend does not exist prior to the dtrend_leftdim call (I
> can't delete it).
>
> From what I have read the warning occurs when trying to equal two
> variables with unequal dimensions, but I don't see which ones.
>
> Thanks
>
> Ileana
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jun 15 06:51:58 2011

This archive was generated by hypermail 2.1.8 : Mon Jun 20 2011 - 12:30:20 MDT