Welcome to WEAP's Website WEAP
WEAP is an initiative of the Stockholm Environment Institute.


About WEAP

Home
Why WEAP?
Features
What's New?
Sample Screens
Demonstration
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos (YouTube)

User Forum
Discussions
Members List
Edit Profile

Additional Support
Training
University Courses
Collaboration

About Us
SEI-US Water Resources Program
Please Contact Us

Environmental News
'Subterranean estuaries' crucial to sustainable fishing and aquacultur...
Pioneering research suggests 'subterranean estuaries' may be critical in managing sustainable fishing and aquaculture --...

Chemicals from human activities in transplanted oysters far from popul...
Wastewater treatment facilities clean the water that goes down our sinks and flushes our toilets, but they do not remove...

Antarctic Circumpolar Current flows more rapidly in warm phases
Our planet's strongest ocean current, which circulates around Antarctica, plays a major role in determining the transpor...
Source: Science Daily
LEAP
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

Link WEAP and LEAP for combined Water-Energy planning.
Watch a video demo!
   

User Forum

All Topics | Topic "Is it possible to automatically set the units with the ResultSetting function?"
Log in to post new messages or reply to existing messages.
 
Author Message
Eng. Miguel Ruiz

Subject: Is it possible to automatically set the units with the ResultSetting function?   
Posted: 4/18/2017 Viewed: 6935 times
Hi, I'm doing an automatization and I need to select the units of the Streamflow to m3/s, in order to export results into cvs.

Is it possible to select via COM, using the ResultSetting or other function the units?

Thanks a lot.

Mr. Jack Sieber

Subject: Re: Is it possible to automatically set the units with the ResultSetting function?   
Posted: 4/18/2017 Viewed: 6928 times
No, it is not possible to set the Results View unit via the API (COM).

Jack
Mr. Jack Johnson

Subject: Re: Is it possible to automatically set the units with the ResultSetting function?   
Posted: 5/18/2017 Viewed: 6537 times
Hi Jack,

Also a unit setting/automation related question.

I'm currently using the API through Python.

I have multiple Catchment nodes that I am trying to read data into. I have successfully read in data for several values but am struggling with the Area variable. It appears because there is no default unit for Area is given I cannot directly read in my data. If I manually set the units to Ha for example I can access the variable and set it as I wish.

So my question, is there a way I can set the units of the Area variable within a catchment node automatically? Either at a global or local scale. I'm happy to set it at a global scale manually if that is a possible solution.

Any advice would be appreciated!

Thanks,
Jack


Mr. Jack Sieber

Subject: Re: Is it possible to automatically set the units with the ResultSetting function?   
Posted: 5/18/2017 Viewed: 6531 times
At this time, it is not possible to set any units via the API. You will first need to set the unit manually in WEAP before you can use the API to set the expression for Area.

Jack
Topic "Is it possible to automatically set the units with the ResultSetting function?"