[Radiance-general] Falsecolor and script by csh
caria.roberto at tiscali.it
caria.roberto at tiscali.it
Thu Feb 10 02:07:19 PST 2011
Hi all,
I created a pic file with this comand:
rpict -w- view.vf -x 1600 -y 1600 -ab 5 -ad 4096 -as 4096 -ar 256 -
aa 0.2-t 60 oct/gensky_sky_$months[$i].$days[$i].$hours[$i].oct >
pics/lum_gensky_sky_$months[$i].$days[$i].$hours[$i].pic
and everything is fine (I can see the pic and the value are correct)
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
#ra_tiff -z pics/lum_gen_sky_$months[$i].$days[$i].$hours[$i].fc.pic
tiffs/lum_gensky_sky_$months[$i].$days[$i].$hours[$i].fc.tiff
Another question is about a script and the "if" function; the script
is showen below:
foreach cloud (5 10 3 4 8 9 7 1 0 6 5)
if ($cloud <= 3) then
set sky = "+s"
else if ($cloud <= 7 && $cloud >= 4) then
set sky = "+i"
else if ($cloud <= 10 && $cloud >= 8) then
set sky = "-c"
endif
echo $sky
end
It works fine, but if I use a data values, by a text file (data
values put by one column), I get sintax error:
set cloud = `cat data_sky/cloud.dat`
set i = 1
while ($i < 10)
echo cloud cover for index $i is $cloud[$i]
set value = `echo $cloud[$1] | cut -d '.' -f 1`
if ($value <= 3) then
set sky = "+s"
else if ($value <= 7 && $value >= 4) then
set sky = "+i"
else if ($value <= 10 && $value >= 8) then
set sky = "-c"
endif
echo $sky
@ i++
end
Maybe the if function is not able to read the data values?
Thanks a lot
Roberto
Supera i limiti: raddoppia la velocità da 10 a 20 Mega! Risparmia con Tutto Incluso: telefono + adsl 20 mega a soli 29,95 € al mese per due anni!SCONTO DI 240 EURO!http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso/?WT.mc_id=01fw
More information about the Radiance-general
mailing list