Theil-Sen estimated median change in rain normalised soil moisture 2001-2016, Indonesia

Map: Theil-Sen estimated median change in rain normalised soil moisture 2001-2016, Indonesia

Svenskt Vattenarkiv (SVAR)

Thomas Gumbricht bio photo By Thomas Gumbricht

Introduction

The Swedish Meterological and Hydrological Institute (SMHI) keeps an Open Source database, Svenskt vattenarkiv, SVAR. The database includes a search page. This post covers how to download and organise some of the SVAR datasets for Karttur’s GeoImagine Framework.

Prerequisites

The download can be done using any internet browser. If you want to use the prepared text files with URLs to the online resources to download and then organise the data you must have setup Karttur’s GeoImagine Framework.

Svenskt Vattenarkiv (SVAR)

You do not need all the SVAR data for mapping Swedish Wetlands; this post limits the download to data layers covering water surfaces and river basins.

Search and copy URLs

From the SVAR Search Open Data (Sök på öppna data) page you can either download the layers you want directly, or copy the URLs and paste them in a text file. Each registered layer is well documented, including links to different download formats. The list below (textfile: SMHI-SVAR-Svenskt_vattenarkiv.txt) links to the URLs of the shape file data for each of the listed layers.

https://www.smhi.se/polopoly_fs/1.126762!/Huvudavrinningsomraden_haro_y_2016_3.zip
https://www.smhi.se/polopoly_fs/1.126764!/avrinningsomraden_aro_y_2016_3.zip
https://www.smhi.se/polopoly_fs/1.126766!/Vattenytor_vy_y_2016_3.zip
https://www.smhi.se/polopoly_fs/1.126768!/flodeslinjer_vd_l_2016_3.zip
https://www.smhi.se/polopoly_fs/1.126770!/havsomraden_2016_3.zip
https://www.smhi.se/polopoly_fs/1.126775!/Sj%C3%B6punkter_2016_3.zip
https://www.smhi.se/polopoly_fs/1.134092!/RW_LW_VARO_2016_3c.zip
https://www.smhi.se/polopoly_fs/1.134094!/CW_VARO_2016_3c.zip
https://www.smhi.se/polopoly_fs/1.20772!/Menu/general/extGroup/attachmentColHold/mainCol1/file/ekoreg_2006.zip
https://www.smhi.se/polopoly_fs/1.20770!/Menu/general/extGroup/attachmentColHold/mainCol1/file/damm_p_1995.zip
https://www.smhi.se/polopoly_fs/1.102188!/hela_landet.zip

The SVAR data is available as zip files and organising the data into Karttur’s GeoImagine Framework requires three process steps:

Download SVAR

If you copied and pasted the url’s to a text file as described in the previous section, you can use the Framework to download all the layers.

Framework process: DownloadAncillary

Json command file: 0115-download-SMHI-SVAR.json

## Download SMHI SVAR data ##
0115-download-SMHI-SVAR.json

UnZip SVAR

As the layers are downloaded as .zip files, you can use the Framework process UnZipRawData for unzipping.

Framework process: UnZipRawData

Json command file: 0120_UnZipRawData_SMHI-SVAR.json

## UnZip SMHI SVAR data ##
0120_UnZipRawData_SMHI-SVAR.json

Organize SVAR

Framework process: OrganizeProjSysData

Json command file: 0160-organize-SMHI-SVAR.json

## Organize SMHI SVAR data ##
0160-organize-SMHI-SVAR.json