[Radiance-general] Bash problems

Lars O. Grobe grobe at gmx.net
Wed Jul 22 10:47:16 PDT 2009


Hi Dan,

it is easier then that. You can use the special variable cond in rcalc
to decide whether any output is to be generated or not.

pextrem -o 9.pic | rcalc -e 'illummax=($3*0.265+$4*0.670+$5*0.065)*179'
-e 'cond=if(illummax-15000,1,-1)' -e '$1=illummax' | total -u > 9.dat

does the job (ok, you will get an empty file 9.dat if the illuminance
value is below 15000).

Cheers, Lars.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3740 bytes
Desc: S/MIME Cryptographic Signature
Url : http://radiance-online.org/pipermail/radiance-general/attachments/20090723/ae38e4e8/smime.bin


More information about the Radiance-general mailing list