Re: date conversion [message #64152] |
Wed, 03 December 2008 06:18 |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
oligie60@googlemail.com wrote:
> Could anyone help me out. I have about 70 different files with a line
> containing date(Month and year) in each file. I want to pick the date
> from each of the file and plot it against 5 columns in each of the 70
> files. I tried to use julday(month(i), day(i), year(i)) but anytime i
> tried to call it, it comes out with the following error message "There
> is no year zero in the civil calendar"
> I shall be most grateful to get an immediate assistance
> Thanks
> Isreal
well, start by printing month(i), day(i), year(i) to the screen... it
might tell you, that, hum, year(i) is zero.
In this case, you have a problem reading your file.
Also, you say that you have Month, Year in your file, and now you also
use a Day....
Jean
|
|
|
Re: date conversion [message #64154 is a reply to message #64152] |
Wed, 03 December 2008 06:02  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
oligie60@googlemail.com writes:
> Could anyone help me out. I have about 70 different files with a line
> containing date(Month and year) in each file. I want to pick the date
> from each of the file and plot it against 5 columns in each of the 70
> files. I tried to use julday(month(i), day(i), year(i)) but anytime i
> tried to call it, it comes out with the following error message "There
> is no year zero in the civil calendar"
> I shall be most grateful to get an immediate assistance
I would say put a breakpoint in your program and see if you
can find out why the assumptions you are making about your
data are all wrong. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|