Re: clmMonTLL function getting error when i calculate arctic oscillation index

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Fri Jun 20 2014 - 10:36:34 MDT

Hi Davaa,
If you wish to use clmMonTLL with less than complete years you will need to
copy your array into a new array that has complete years:

; Untested! arr is original array dimensioned time x lat x lon
arr2 =
new((/(2014-1950+1)*12),dimsizes(arr&lat),dimsizes(arr&lon)/),typeof(arr))
arr2!0 = "time"
arr2&time = *yyyymm_time*(1950, 2014, "integer")
arr2!1 = "lat"
arr2&lat = arr&lat
arr2!2 = "lon"
arr2&lon = arr&lon
copy_VarAtts(arr,arr2)
arr2({:201404},:,:) = (/ arr /)
delete(arr)

Hope that helps. If you have any further questions please respond to the
ncl-talk email list only.
Adam



On Wed, Jun 18, 2014 at 7:33 PM, Davaadorj Amarsaikhan <davaa_1206@yahoo.com
> wrote:

> Dear NCL users,
>
>
> I would like calculate arctic oscillation index(ao).
>
> I'm using following script
> http://www.ncl.ucar.edu/Applications/Scripts/eof_4.ncl . I hope this
> script is similar to ao index.
>
> But i have a problem in clmMonTLL function.
>
> if i choose January 1950 to December 2013 *(a total of 768 months
> 768/12=64 years) *this script is running*.*
>
> When the change timestep, the climatology function isn't running January 1950
> - April 2014 *(a total of 772 months 772/12=64.3 years)*.
>
> Getting error (0) contributed.ncl: clmMonLLT: dimension must be a
> multiple of 12
>
> My question is "How can i calculate monthly climatology this timestep(January 1950
> - April 2014)? Using NCL 6.2.0? It is posibble or impossible?
>
> I hope another way to calculate ao index.
>
> Thank you for all
> With Best Regards
>
> Davaa
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


--
Adam Phillips
Associate Scientist, Climate and Global Dynamics Division, NCAR
www.cgd.ucar.edu/staff/asphilli/ 303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>

Received on Fri Jun 20 04:37:11 2014

This archive was generated by hypermail 2.1.8 : Wed Jul 23 2014 - 15:33:46 MDT