Jump to content

WAsP scripting plugin is now available in QGIS


Recommended Posts

Creating good roughness and elevation maps is important for microscale flow modelling for wind resource and siting assessment. The WAsP scripting plugin can help with this and is now available for installation via the official QGIS plugin channel. You can just go the Plugins > Manage and install plugins and search for "WAsP scripting".

The plugin contains scripts for:

  • Downloading elevation data
  • Downloading landcover data
  • Convert landcover polygons to roughness or landcover lines as required by WAsP
  • Creating hand digitized landcover polygon maps
  • Saving the elevation, roughness or landcover lines as WAsP .map/.gml files

Video solutions for different work flows are available in this playlist

It contains a general introduction to QGIS for WAsP applications and some more specific video tutorials on the different workflows for which the scripts can be used and some pitfalls to be aware of when using these scripts.

Specific tutorials

Edited by Rogier
Link to comment
  • Rogier changed the title to WAsP scripting plugin is now available in QGIS

Hi Rogier, 

Thanks a lot for making this plugin available opensource. 

I encountered few issue when I tried to create roughness map files for an area in Tanzania with center coordinates ( -5.12238, 33.20613). 

After creating the bounding box and when downloading GWA landcover polygons. I saw below error in the box. 

https://drive.google.com/file/d/1y4eR_VEjIznPrXyGhDuB9K_MU40Hb6L3/view?usp=sharing

My main concern is not that. Main concern is that the final WAsP roughness lines .map file when loaded into Map Editor gave me below errors. 

https://drive.google.com/file/d/16hfQwQrHMdbsoJglKkuOfz5AteE1QZgJ/view?usp=sharing

https://drive.google.com/file/d/16r0AXqQUixh-1zSoUqkqyE-9kxe4-yJa/view?usp=sharing

https://drive.google.com/file/d/1wqEWg5hVdjyN1EqY4sccbIjxdM_rBUed/view?usp=sharing

When I view the roughness lines map it shows vertical lines as below. 

https://drive.google.com/file/d/1IXe5SxdiOy55u0R64-oO0_tPfjmFq1Xq/view?usp=sharing

Looking forward to get this issue sorted with your help. 

Best Regards

Shehan

 

 

 

 

 

 

Link to comment
Posted (edited)

I tried to make a map for the same coordinates as you and I get more or less the same output but without errors. The spatial index warning you can ignore, this only has an impact on the speed, which is fast anyway. Can you share the intermediate layer that you get in QGIS? I.e. the "ESA-CCI landcover polygons" and "roughness lines" (right click, "Export > Save features as" and then save as .gpkg. And maybe you can also share your QGIS version (see "Help > About") and the map editor version? I am using QGIS v3.34.2.

sadas.map

Edited by Rogier
Link to comment

Hi Shehan, I opened your files and couldn't see anything special about them. But I am on holiday and don't have the map editor on this computer. My only recommendation is to update your map editor versio, because there was numerous problems with that version of the map editor. I can look at it when I come back from holiday or otherwise write to the wasp support (see wasp.dk) if it is a urgent issue.

Link to comment
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...