[ncl-talk] Question about return attributes of regCoef

Rick Brownrigg brownrig at ucar.edu
Sat Dec 21 12:10:18 MST 2019


I don't know for certain, but I suspect its the multiplication by 10 that's
causing the attributes to get stripped off. Perhaps try doing the
assignment to rc_spring first and then do rc_spring = rc_spring*10.0

Rick



On Sat, Dec 21, 2019 at 11:53 AM Xueyan Zhang via ncl-talk <
ncl-talk at ucar.edu> wrote:

> Hello ncl-talk,
>
> I am using regCoef to compute the linear regression coefficient. But when
> I print the rc, there is no attribute of tval etc, which I want to
> calculate regression significance. I attached my script. Could you help me
> with this?
>
> Print rc:
> Variable: rc_spring
> Type: float
> Total Size: 179200 bytes
>             44800 values
> Number of Dimensions: 2
> Dimensions and sizes:   [224] x [200]
> Coordinates:
> Number Of Attributes: 1
>   _FillValue :  -999.9
>
> Variable: rc_spring
> Type: float
> Total Size: 179200 bytes
>             44800 values
> Number of Dimensions: 2
> Dimensions and sizes:   [lat | 224] x [lon | 200]
> Coordinates:
>             lat: [25.0625..52.9375]
>             lon: [-124.9375..-100.0625]
> Number Of Attributes: 1
>
> Thank you very much!
>
> Xueyan
> _______________________________________________
> 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/20191221/ce217f39/attachment.html>


More information about the ncl-talk mailing list