[Radiance-general] Falsecolor and script by csh
Lars O. Grobe
grobe at gmx.net
Thu Feb 10 03:47:58 PST 2011
Hi Roberto!
> When I use falsecolor I get a file with 1K size and the tiff comand
> gives me "bad picture:
>
> falsecolor pics/lum_gensky_sky_$months[$i].$days[$i].$hours[$i].pic -
> m 179 -s 10000 -l cd/m2 -n 10> pics/lum_gen_sky_$months[$i].$days
> [$i].$hours[$i].fc.pic
You can pass the image data to be used as value input by falsecolor using
"falsecolor -i filename.hdr > output.hdr"
or by sending to to stdin, e.g.
"cat filename.hdr | falsecolor > output.hdr"
So just add a "-i" in front of the input filename in your script.
Besides that, I would recommend not to use the outdated pic-extension,
but the officially registred hdr-extension. But that is a side-not.
> echo cloud cover for index $i is $cloud[$i]
Does this work up to here?
> Maybe the if function is not able to read the data values?
I have to admit that I do not like bash when working on strings and
arrays too much. I usually switch to perl whenever I need to process
strings, even if it is just splitting a record.
Cheers, Lars.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3740 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20110210/00b5a6cc/attachment.bin>
More information about the Radiance-general
mailing list