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
Applications
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos
Resources

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
LEAP
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

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
Miguel Ruiz

Subject: Is it possible to automatically set the units with the ResultSetting function?   
Posted: 4/18/2017 Viewed: 703 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.

Jack Sieber

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

Jack
Jack Johnson

Subject: Re: Is it possible to automatically set the units with the ResultSetting function?   
Posted: 5/18/2017 Viewed: 312 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


Jack Sieber

Subject: Re: Is it possible to automatically set the units with the ResultSetting function?   
Posted: 5/18/2017 Viewed: 309 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?"