comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: date conversion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: date conversion [message #64152] Wed, 03 December 2008 06:18
Jean H. is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: areas with 'hatching' in plots?
Next Topic: Least squares fit of a model to a skeleton consisting out of 3D points.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:01:26 PDT 2025

Total time taken to generate the page: 0.00755 seconds