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

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@gmail.com]
Sent: Thursday, October 13, 2016 5:43 PM
To: radiance-general@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

Hello Sarith:
Thank you for your reply. Yes, you are right. It's the '|' missing rather
than dctimestep version. Thank you for leading me to the right path.

Zhe

···

On Fri, Oct 14, 2016 at 2:00 PM, < radiance-general-request@radiance-online.org> wrote:

Send Radiance-general mailing list submissions to
        radiance-general@radiance-online.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.radiance-online.org/mailman/listinfo/radiance-general
or, via email, send a message with subject or body 'help' to
        radiance-general-request@radiance-online.org

You can reach the person managing the list at
        radiance-general-owner@radiance-online.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Radiance-general digest..."

Today's Topics:

   1. Question about dctimestep (Zhe Kong)
   2. Re: Question about dctimestep (Sarith Subramaniam)

----------------------------------------------------------------------

Message: 1
Date: Thu, 13 Oct 2016 16:43:10 -0500
From: Zhe Kong <kongzhewode@gmail.com>
To: radiance-general@radiance-online.org
Subject: [Radiance-general] Question about dctimestep
Message-ID:
        <CAEV5Nyc8MvSCu7tMRdAr-13F2ijrMCbijbxZT42LqN7_VEnm9w@
mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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/8487cd21/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 13 Oct 2016 17:48:56 -0400
From: "Sarith Subramaniam" <sarith@psu.edu>
To: "'Radiance general discussion'"
        <radiance-general@radiance-online.org>
Subject: Re: [Radiance-general] Question about dctimestep
Message-ID: <081801d2259b$9a6f26e0$cf4d74a0$@psu.edu>
Content-Type: text/plain; charset="utf-8"

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@gmail.com]
Sent: Thursday, October 13, 2016 5:43 PM
To: radiance-general@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-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Radiance-general mailing list
Radiance-general@radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-general

------------------------------

End of Radiance-general Digest, Vol 152, Issue 9
************************************************

--
*Zhe Kong*
*PhD Student*
*University of Wisconsin - Milwaukee *
*School of Architecture and Urban Planning *
*2131 E. Hartford Ave, Milwaukee, WI 53211 *
*Office 327*