Re: day_of_year and 360

From: Arne Melsom <arne.melsom_at_nyahnyahspammersnyahnyah>
Date: Wed Apr 03 2013 - 03:39:29 MDT

Hi,
I had no problem, see details below. Which ncl version are you using? According to the documentation, you need v. 6.1.0.
Sincerely,
Arne M.

 Copyright (C) 1995-2012 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.1.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
ncl 0> year = 1972
ncl 1> year@calendar = "360"
ncl 2> month = 2
ncl 3> day = 30
ncl 4> ddd = day_of_year(year, month, day)
ncl 5> print(ddd)

Variable: ddd
Type: integer
Total Size: 4 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) 60

----- Original Message -----
> Hi,
> I have a daily array of 30 days per month I did :
> year@calendar = "360"
> ddd=day_of_year(year, month, day)
> but got this error for february
> ===========
> ncl 52> ddd = day_of_year(year, month, day)
> day_of_year: illegal arguments, year = 1971, month = 2, day = 29
> day_of_year: illegal arguments, year = 1971, month = 2, day = 30
> day_of_year: illegal arguments, year = 1972, month = 2, day = 30
> day_of_year: illegal arguments, year = 1973, month = 2, day = 29
> day_of_year: illegal arguments, year = 1973, month = 2, day = 30
> day_of_year: illegal arguments, year = 1974, month = 2, day = 29
> day_of_year: illegal arguments, year = 1974, month = 2, day = 30
> day_of_year: illegal arguments, year = 1975, month = 2, day = 29
>
>
> =========
> any help
>
>
> _______________________________________________
> 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 Apr 3 03:39:45 2013

This archive was generated by hypermail 2.1.8 : Thu Apr 04 2013 - 21:06:41 MDT