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

Home » Public Forums » archive » Re: how to convert the date into julian date
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to convert the date into julian date [message #80997 is a reply to message #80901] Wed, 25 July 2012 12:10 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Wednesday, July 25, 2012 5:43:36 PM UTC+2, Bandrush Barda wrote:
> First of all, thank you so much, Ben.
> I hope, your suggestion will help me a lot.
>
> When I test the file according to your suggestion, definitely, something wrong with my file. Can you check the text?
>
> 1. using the first approach, it goes like this:
>
> IDL> ok=file_test('D:/temperature')
> IDL> print, ok
> 0
>
> 2. using second approach, there is something like this:
> IDL> info=file_info('D:/temperature')
> IDL> help, info,/str
> ** Structure FILE_INFO, 21 tags, length=64, data length=63:
> NAME STRING 'D:\temperature'
> EXISTS BYTE 0
> READ BYTE 0
> WRITE BYTE 0
> EXECUTE BYTE 0
> REGULAR BYTE 0
> DIRECTORY BYTE 0
> BLOCK_SPECIAL BYTE 0
> CHARACTER_SPECIAL
> BYTE 0
> NAMED_PIPE BYTE 0
> SETUID BYTE 0
> SETGID BYTE 0
> SOCKET BYTE 0
> STICKY_BIT BYTE 0
> SYMLINK BYTE 0
> DANGLING_SYMLINK
> BYTE 0
> MODE LONG 0
> ATIME LONG64 0
> CTIME LONG64 0
> MTIME LONG64 0
> SIZE LONG64
>
> Thanks a lot.
> Bandrush

Dear Bandrush,
I think your file does not exist as you wrote it... You need to specify also the extension. For example you should try:
IDL> print, file_test('D:/temperature.dat')
or
IDL> print, file_test('D:/temperature.txt')
or whatever extension you have.

Then if IDL writes a 1, it means that IDL found the file and it does exist. If you get a 0 it means that the file does not exist. You probably misspelled the file name or directory.

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Issues with read_png and/or profiler
Next Topic: Efficiently perform histogram reverse indices like procedure on a string array?

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

Current Time: Sun Nov 30 09:14:06 PST 2025

Total time taken to generate the page: 2.96476 seconds