[esp-r] Re: esp-r Digest, Vol 32, Issue 7
Marco Manzan
manzan at units.it
Mon Mar 16 09:16:54 GMT 2009
esp-r-request at lists.strath.ac.uk wrote:
> Send esp-r mailing list submissions to
> esp-r at lists.strath.ac.uk
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.strath.ac.uk/mailman/listinfo/esp-r
> or, via email, send a message with subject or body 'help' to
> esp-r-request at lists.strath.ac.uk
>
> You can reach the person managing the list at
> esp-r-owner at lists.strath.ac.uk
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of esp-r digest..."
>
>
> Today's Topics:
>
> 1. running ish for select months from command line (Liam O'Brien)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 14 Mar 2009 23:52:08 -0400
> From: Liam O'Brien <obrien_liam at hotmail.com>
> Subject: [esp-r] running ish for select months from command line
> To: <esp-r at lists.strath.ac.uk>
> Message-ID: <BAY122-W11B510033E77D5F8C39D76849A0 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hello all,
>
> Does anyone know how to specify the months that ish is performed at the command line?
>
> For instance, I would like to do shading calculations for January only in the following form:
>
> "ish -mode text -file c:/house/cfg/house.cfg -zone main -act recalculate"
>
> By default, it will calculate January through December.
>
> Thank you.
>
> Liam O'Brien
>
> _________________________________________________________________
> Share photos with friends on Windows Live Messenger
> http://go.microsoft.com/?linkid=9650734
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.strath.ac.uk/archives/esp-r/attachments/20090314/5b57f1f7/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> esp-r mailing list
> esp-r at lists.strath.ac.uk
> http://lists.strath.ac.uk/mailman/listinfo/esp-r
>
> End of esp-r Digest, Vol 32, Issue 7
> ************************************
>
dear Liam
I insert here a script that I use for running ish automatically. Call it
"runish.sh" for example and you will be able to run it
as ./runish.sh with the full control of calculations. I wrote two
version the first is what you asked for, the second performs shading and
isolation calculations as well.
I hope this helps
Bye
version for shading calculation only
#!/bin/bash
CFG="put here the name of your ".cfg" file"
ZONE="put here the name of your zone name"
ish -file $CFG -zone $ZONE << EOF
g # calculate
b #recreate the db
a # apply to all surfaces
1 # beginning month
1 # ending month
- # exit
n # do not erase temporary files
EOF
complete version to perform shading and insolation
#!/bin/bash
CFG="put here the name of your ".cfg" file"
ZONE="put here the name of your zone name"
ish -file $CFG -zone $ZONE << EOF
g # calculate
b #recreate the db
a # apply to all surfaces
1 # beginning month
12 # ending month
j #start insolation
a # update
b # select source
g # my window
-
1 # start
12 # end
- # exit
n # do not erase temporary files
EOF
--
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|Marco Manzan Email: manzan at units.it |
|Tel: (+39) 040 5583506 Fax : (+39) 040 572033 |
|Dipartimento di Ingegneria Navale, del Mare e per l'Ambiente |
|Universita' degli Studi di Trieste |
|piazzale Europa 1, 34127 TRIESTE |
|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|
More information about the esp-r
mailing list