| Re: does the image size matters? [message #39778 is a reply to message #39769] |
Sun, 13 June 2004 19:09  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Adhara writes:
> Hello, excuse the inconvenience if my message disturbs you..
>
> I just have one question....
> I finally was able to transform the bitmap into images. As a trial, I
> did that at first with 50x50pixels and it worked just fine. However,
> for the real thing, I need it for 200x200 but it is not running...The
> error message is:
>
> %READ_ASCII:File " 0" not found.
> %Error occurred at:READ_ASCII 731 c:\rsi\idl55\lib\read_ascii.pro
> % $MAIN$ 13 c:\RSI\IDL60\lib\transform.PRO
> % Execution halted at: $MAIN$ 13
> c:\RSI\IDL60\lib\transform_bit_image.pro
>
>
> MY CODE IS AS FOLLOWS:
>
> files=Findfile('*.bit')
>
> for j=0,N_Elements(files)-1 DO BEGIN
> cadena2=string(files[j])
> archivo=READ_ASCII(cadena2)
> cadena='gv'+string([j])+'tif'
> WRITE_TIFF,cadena,archivo.FIELD01
> endfor
>
> end
>
> Thank you for your kind help,
Are you sure that your "bit" files are ASCII files
and not binary files? This is the kind of message
READ_ASCII would give if it appeared the file contained
binary data rather than ASCII data. Also, are you sure
the variable cadena2 is the name of one of your files?
Have you printed the variable files to be sure you
are finding the files you think you are finding?
(And no need to covert files to a string variable.
It *is* a string variable already.)
Cheers,
David
P.S. Did you create the "bit* files yourself? What
commands did you use to write the files?
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
|