[ncl-talk] bug in dim_acumrun_n

Ryan Pavlick ryan.pavlick at gmail.com
Fri May 8 00:36:59 MDT 2015


The documentation for dim_acumrun_n says that it returns a variable with
the same type as the input. However, it seems to return a float, regardless
of the input type.

Example

ncl 0> a = (/1,1,1,1,1,1,1/)

ncl 1> b = dim_acumrun_n(a,2,0,0)

ncl 2> printVarSummary(b)


Variable: b

Type: float

Total Size: 28 bytes

            7 values

Number of Dimensions: 1

Dimensions and sizes: [7]

Coordinates:

Number Of Attributes: 1

  _FillValue : 9.96921e+36

ncl 3> printVarSummary(a)


Variable: a

Type: integer

Total Size: 28 bytes

            7 values

Number of Dimensions: 1

Dimensions and sizes: [7]

Coordinates:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150508/bd4dd6ab/attachment.html 


More information about the ncl-talk mailing list