[Radiance-general] Question about dctimestep
Sarith Subramaniam
sarith at psu.edu
Thu Oct 13 14:48:56 PDT 2016
Hi Zhe,
If the command that you wrote in your email is the exact one that you used, then you should correct it by putting a | before rcalc as the output from dctimestep is being piped to rcalc through standard input.
This…..
$dctimestep results/photocells.vmx data/Clear.xml results/south.dmx skies/12_21_15.skv rcalc -e '$1=179*($1*0.265+$2*0.670+$3*0.065)' > results/illum_122115_clear.dat
should be ….
$dctimestep results/photocells.vmx data/Clear.xml results/south.dmx skies/12_21_15.skv | rcalc -e '$1=179*($1*0.265+$2*0.670+$3*0.065)' > results/illum_122115_clear.dat
Regards,
Sarith
From: Zhe Kong [mailto:kongzhewode at gmail.com]
Sent: Thursday, October 13, 2016 5:43 PM
To: radiance-general at radiance-online.org
Subject: [Radiance-general] Question about dctimestep
Dear Radiance Users:
I am struggling with 3-phase method and run into an issue about dctimestep.
At the last step of the tutorial (https://andymcneil.gitbooks.io/three-phase-method-tutorial/content/35_matrix_multiplication.html) to use dctimestep to calculate illuminance for three shading systems:
$dctimestep results/photocells.vmx data/Clear.xml results/south.dmx skies/12_21_15.skv rcalc -e '$1=179*($1*0.265+$2*0.670+$3*0.065)' > results/illum_122115_clear.dat
At first I received the feedback below:
Usage: dctimestep [-n nsteps][-o ospec][-i{f|d|h}][-o{f|d}] DCspec [skyf]
or: dctimestep [-n nsteps][-o ospec][-i{f|d|h}][-o{f|d}] Vspec Tbsdf Dmat.dat [skyf]
>From this post: http://radiance-online.org/pipermail/radiance-general/2013-October/009833.html I think my dctimestep is not the newest one, so I download it from http://www.radiance-online.org/cgi-bin/viewcvs.cgi/ray/src/util/dctimestep.c?annotate=2.37
My question is how to install it appropriate. I saved the file as dctimestep and use $chmod a=r+w+x dctimestep, I got the errors as below:
/Users/zhekong/Radiance/usr/local/radiance/bin/dctimestep: line 2: static: command not found
/Users/zhekong/Radiance/usr/local/radiance/bin/dctimestep: line 4: /Applications: is a directory
/Users/zhekong/Radiance/usr/local/radiance/bin/dctimestep: line 5: apply_overcast.bash: command not found
/Users/zhekong/Radiance/usr/local/radiance/bin/dctimestep: line 6: apply_overcast.bash: command not found
/Users/zhekong/Radiance/usr/local/radiance/bin/dctimestep: line 7: apply_overcast.bash: command not found
/Users/zhekong/Radiance/usr/local/radiance/bin/dctimestep: line 8: data/: is a directory
and so on. The list is a bit long to include all. I don't think I install it right. Could someone let me know how to replace dctimestep correctly, if this is the problem, or what is the solution to make this step work?
Thank you very much in advance.
Zhe Kong
Zhe Kong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20161013/1157e843/attachment.html>
More information about the Radiance-general
mailing list