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
Ocean microplastics: First global view shows seasonal changes and sour...
An estimated 8 million tons of plastic trash enters the ocean each year, and most of it is battered by sun and waves int...

Cause, scope determined for deadly winter debris flow in Uttarakhand,...
The Uttarakhand region of India experienced a humanitarian tragedy on Feb. 7, 2021, when a wall of debris and water barr...

World-first discovery could fuel the new green ammonia economy
Scientists have developed a new technique using phosphonium salts that can help drive the future production of green amm...
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 "Unit of the area on Cachment with API"
Log in to post new messages or reply to existing messages.
 
Author Message
Mr. Ignacio Aguirre

Subject: Unit of the area on Cachment with API   
Posted: 8/27/2020 Viewed: 1038 times
Hello

I have been using the API to create catchment-type nodes, however, I have not been able to insert the unit of the area [km2] through it, but I had to do it manually one by one, how can you insert the unit of the area in the catchments through the API?
Currently, I use it through Python and VB.

Regards
Mr. Jack Sieber

Subject: Re: Unit of the area on Cachment with API   
Posted: 8/29/2020 Viewed: 1035 times
Yes, you can change the unit via the API, using the ScaleUnit property of the WEAPVariable class. Here's an example:

WEAP.Branch("\Demand Sites and Catchments\Big Farm").Variables("Area").ScaleUnit = "km^2"

Jack

Topic "Unit of the area on Cachment with API"