Problems running Radiation Map(image) from the GUI

153 views
Skip to first unread message

Anne Iversen

unread,
Mar 15, 2012, 9:34:20 AM3/15/12
to DIVA for Rhino
Dear Diva-guys,
I have problems running the Radiation Map (Image) metric from the GUI
- hope you'll be able to locate the error.

When running the Radiation Map (Image) metric 3 files are generated in
the Temp folder:

1) Gund_111obj.bat runs
- no problems

2)
Gund_111gcsimg.bat runs
@REM =============
@REM GCSImage Batch
@REM =============
c:
cd C:\DIVA\temp\Gund_111
GenCumulativeSky +s1 -a 56 -o -13 -m -15 -r -E -time 0 24 -date 1 1 12
31 ./DNK_Copenhagen.061800_IWEC.epw > Gund_111.cal
- no problems
oconv -f Gund_111_gcsky.rad Gund_111material.rad Gund_111.rad >
Gund_111.oct
- no problems
rpict -t 15 -i -ab 2 -ad 1000 -as 20 -ar 300 -aa 0.1 -vf Gund_111.vf -
x 800 -y 600 Gund_111.oct > Gund_111_view_all_kwhm-2.pic
- rpict returns this error:
rpict: fatal - cannot find function file "Gund_111.cal"
falsecolor2 -i Gund_111_view_all_kwhm-2.pic -s auto -n 10 -l kWhm-2 -z
> Gund_111_view_all_fc.pic
- fails

Regarding the call to rpict:
The file Gund_111.cal has just been generated by the call to
GenCumulativeSky and is located in the Temp folder. If I open a new
command window, chdir to c:\diva\temp\gund_111 and run the
Gund_111gcsimg.bat file manually, the call to rpict works fine and the
file "Gund_111_view_all_kwhm-2.pic" is generated.
It can then be opened by wxfalsecolor.exe manually.

3)
Gund_111Gund_111_view_all_kwhm-2.bat
wxfalsecolor.exe -s auto -n 10 -l kWhm-2 -z "C:\Users\ai\Desktop
\Gund_111 - Results\Gund_111_view_all_kwhm-2.00-24 0101-1231.pic"
- the file is executed, but fails, as the file referenced probably is
erroneus.


My problems are listed in the following:

A)
The Gund_111.cal file isn't found by rpict when run from the GUI,
although it exists in the folder from which rpict seem to be called.
Why?

B)
The Gund_111.3dm file is placed on the desktop, and at some point
(probably between the calls to .bat file 2 and 3) a folder called
"Gund_111 - Results" is created on the desktop - and some files are
created herein. When I run the 3 bat files manually, the folder isn't
created and the files aren't copied. What is missing?


Hope you'll be able to explain what I might be missing.
Best,
Anne

Mostapha Sadeghipour

unread,
Mar 15, 2012, 7:08:53 PM3/15/12
to diva-fo...@googlegroups.com
Anne,

1. I'm not the best person to answer your first question. It sounds like a user permission problem to me. You might have an administrative permission running it from cmd however your account permission is limited somehow. Just thinking loudly I would say: make sure that when you are running the study using the GUI, GenCumulativeSky does not fail to generate the .cal file. You get the rpict error because the .cal file hasn't been generated correctly I assume. Can you check the size of the .cal file when you are running the study using the GUI versus running the batch file manually? You can open both files as a text file to compare. The same could happen for .oct file.

2. Back to the .\result folder, what is happening is normal. You will have the .\result folder under your working folder if only you use the interface since it is the DIVA script that rename and copy the results from the Temp folder to the .\result folder each time you run the study. So when you run the batch files yourself you only run the study and as you said you get the result (.pic file in your case) in the same folder.

3. The 3rd batch file tries to visualize the renamed and copied file from the .\result folder. As I already noted the file wouldn't be renamed and copied to the .\result folder unless you have the study ran by the interface. Simply the file you are trying to visualize is not there to be opened. That's why it fails.

Regards,
Mostapha


--
You received this message because you are subscribed to the Google Groups "DIVA for Rhino" group.
To post to this group, send email to diva-fo...@googlegroups.com.
To unsubscribe from this group, send email to diva-for-rhin...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/diva-for-rhino?hl=en.


Anne Iversen

unread,
Mar 16, 2012, 5:44:08 AM3/16/12
to DIVA for Rhino
Dear Mostapha,
Thanks for your reply.

Ad 1)
The size and content of the .cal files are equal. This is the case for
all the files generated manually or from the GUI.
I believe you are right that it a user permission problem. However, I
have full read, write and execute access to the folders on c:
DIVA, DAYSIM, Radiance and EnergyPlus. And also to my desktop, where
the Gund_111.3dm file is located.

Are there any other folders I would need access to??
.....would it be possible for you to point me to where there the
problem might occur?

Thanks,
Anne

J. Alstan Jakubiec

unread,
Mar 17, 2012, 3:47:24 PM3/17/12
to diva-fo...@googlegroups.com
Hi Anne,

I am posting this to the Google group as well. We've been noting this issue
a lot lately on shared computers, and have introduced some code into
DIVA-2.0 to combat it in the future.

What I believe to be the problem are your PATH and RAYPATH variables on
the shared computer. They need to be set so that they contain the
following at least,

.;C:\Radiance\lib\;C:\Radiance\bin\;C:\DAYSIM\lib\;C:\DAYSIM\bin_windows\

Note that this begins with "." which will make sure the current working
directory is searched from rpict. Without the dot in place, the
cumulativesky cal file will not be found.

Let me know if this doesn't help.

Best,
Alstan


On Fri, 16 Mar 2012 10:57:33 -0400, Anne Iversen <iverse...@gmail.com>
wrote:

> Hi again, yes - the permission is the case. I am running DIVA on a
> 'shared'
> computer, and won't have admin access.
> Therefore, I would like to be able to run DIVA from my account on this
> computer.
>
> As written earlier I have read, write and execute access to the folders
> on
> C: DIVA, DAYSIM, Radiance and EnergyPlus.
>
> Best,
> Anne
>
> On Fri, Mar 16, 2012 at 3:40 PM, Mostapha Sadeghipour
> <sadeg...@gmail.com
>> wrote:
>
>> Hi Anne,
>>
>> So the permission was the case. I don't know why you should be admin
>> even
>> if you already have read, write and execute access. I think Alstan
>> might be
>> the only one who can help you about that.
>>
>> Regards,
>> Mostapha
>>
>> On Fri, Mar 16, 2012 at 9:26 AM, Anne Iversen
>> <iverse...@gmail.com>wrote:
>>
>>> Hi again Mostapha,
>>> I am able to generate the radiation map image when I am admin, however
>>> when I am just me DIVA fails. And this eventhough that I have read,
>>> write
>>> and execute access to the folders on C: DIVA, DAYSIM, Radiance and
>>> EnergyPlus.
>>> Therefore it must somehow be a permission problem...
>>>
>>> If I try run the file from a local drive I have the same problem.
>>>
>>> Best,
>>> Anne
>>>
>>>
>>> On Fri, Mar 16, 2012 at 3:03 PM, Mostapha Sadeghipour <
>>> sadeg...@gmail.com> wrote:
>>>
>>>> Do you have the same problem when you are working on a local drive on
>>>> your computer? (e.g. D:\)
>>>> Mostapha
>>>>
>>>> On Fri, Mar 16, 2012 at 4:44 AM, Anne Iversen
>>>> <iverse...@gmail.com>wrote:
>>>>

Reply all
Reply to author
Forward
0 new messages