Re: Odd error from day_of_year

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Oct 26 2011 - 08:30:38 MDT

Bridget,

Your assumption was correct, that this error would mean that you've
inputted a month of -8 for the 2nd argument of day_of_year.

One possibility is that you are not passing integers to this function.

Also, as Dave Allured asked, are you getting any other errors or
warnings from your script?

--Mary

On Oct 25, 2011, at 4:35 PM, Bridget Thrasher wrote:

> I'm receiving an odd error that I've never seen before:
> "day_of_year: illegal month, -8"
>
> My command is: doyobs = day_of_year(datesobs(:,0),datesobs(:,
> 1),datesobs(:,2)) - 1
>
> I thought it meant that the function was finding a value of -8 in
> the month slot, but using the commands below to look at both the
> inputs and the outputs show nothing unusual:
> print(datesobs(:,0)+" "+datesobs(:,1)+" "+datesobs(:,2))
> print(doyobs)
>
> Another weird thing is that I'm fairly certain it's only showing
> this when reading from leap years (I'm reading in 56 years of daily
> times, and I get the error 14 times), and it only happens with my
> original data files, not with the files containing regridded data
> that I made with linint2_Wrap.
>
> Any insight? Should I just ignore it and carry on?
> bridget$ ncl -V
> 5.2.0
>
> -Bridget
>
> --
> Bridget Thrasher, PhD
> Independent Contractor, Research Scientist
>
>
> _______________________________________________
> 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 Oct 26 08:30:44 2011

This archive was generated by hypermail 2.1.8 : Fri Oct 28 2011 - 10:52:03 MDT