Skip to content

Commit 8834a85

Browse files
committed
Fixed links in markdowns
Former-commit-id: ee79bafaaad816791f302415cd6d59930547119b
1 parent e355a0a commit 8834a85

File tree

5 files changed

+22
-15
lines changed

5 files changed

+22
-15
lines changed

readme.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,25 @@
22

33
Data4Land tool is developed to enrich various land-use/land-cover (LULC) spatial data with data from another sources to increase the consistency and reliability of LULC datasets for multiple purposes. This software currently includes four separate Jupyter Notebooks:
44

5-
1. **[Access to historical data from the World Database on Protected Areas (WDPA) and harmonization](1_pas.ipynb)**
5+
1. **[Access to historical data from the World Database on Protected Areas (WDPA) and harmonization](src/1_pas.ipynb)**
6+
67
Available only through the authorised credentials (token), as it uses the special API.
7-
2. **[Access and harmonisation of historical vector data on land-use/land-cover (LULC) - Open Street Map (OSM) data ](2_vector.ipynb)**
8+
9+
2. **[Access and harmonisation of historical vector data on land-use/land-cover (LULC) - Open Street Map (OSM) data ](src/2_vector.ipynb)**
10+
811
Available without authorised credentials, uses open-access API.
9-
3. **[Enrichment of land-use/land-cover (LULC) data](3_enrichment.ipynb)**
12+
13+
3. **[Enrichment of land-use/land-cover (LULC) data](src/3_enrichment.ipynb)**
14+
1015
Rectification of commonly produced land-use/land-cover (LULC) raster data with auxiliary data from 1st, 2nd Notebooks or user-defined data.
11-
4. **[Impedance calculation ('edge effect' of biodiversity stressors)](4_impedance.ipynb)**
16+
17+
4. **[Impedance calculation ('edge effect' of biodiversity stressors)](src/4_impedance.ipynb)**
18+
1219
Calculates 'landscape impedance' datasets based on user-defined biodiversity stressors. This block is useful for researchers to proceed with habitat connectivity studies.
1320

1421
Detailed documentation on each nested workflow is given at the beginnings of Jupyter Notebooks and includes descriptions of all input and output datasets.
15-
Sample input dataset is extracted from [ESA Sentinel-2](https://collections.sentinel-hub.com/impact-observatory-lulc-map/) remote sensing spatial datasets and located [here](data/input/).
16-
All configuration to execute Jupyter Notebooks is pre-defined for the sample dataset in the [configuration YAML file](src/config.yaml): paths, filenames, API parameters, user-defined numerical parameters.
22+
Sample input dataset is extracted from [ESA Sentinel-2](https://collections.sentinel-hub.com/impact-observatory-lulc-map/) remote sensing spatial datasets and located [here](src/data/input/).
23+
All configuration to execute Jupyter Notebooks is pre-defined for the sample dataset in the [configuration YAML file](src/config/config.yaml): paths, filenames, API parameters, user-defined numerical parameters.
1724
Data flow within the Data4Land tool can be also explored on the overarching diagram:![diagram](visualisation/workflow.png).
1825

1926
#### Further development
@@ -22,7 +29,7 @@ This tool is mostly completed, but a few improvements are planned to be done:
2229
- **Design GUI tool (command-line interface) as an addition to separate Notebooks/scripts.**
2330
- Test [ohsome API](https://docs.ohsome.org/ohsome-api/v1/) again to confirm that not all attributes of OSM features can be fetched and justify the usage of Overpass Turbo API instead of ohsome API or switch to ohsome API if it provides a quicker and more reliable access. See [issue](https://github.com/GIScience/ohsome-api/issues/332).
2431
- Extend the implementation of [VRT](https://gdal.org/en/latest/drivers/raster/vrt.html) file format to save resource.
25-
- Implement ingestion of other spatial features which may act opposed to biodiversity stressors, for example, [small woody features](https://land.copernicus.eu/en/products/high-resolution-layer-small-woody-features.)
32+
- Implement ingestion of other spatial features which may act opposed to biodiversity stressors, for example, [small woody features](https://land.copernicus.eu/en/products/high-resolution-layer-small-woody-features).
2633
- Implement iterations over multiple LULC files (by year and location) and multiple OSM requests (iterating over the combination of filename-yearname).
2734
- For use case studies: revisit Catalonian government data and decide on its usage, whether it can support OSM data or not.
2835

src/1_pas.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"source": [
3636
"#### 1. Fetching data through Protected Planet API\n",
3737
"\n",
38-
"Spatial data on protected areas in GeoJSON and GeoPackage formats for countries needed (on our case, Spain, France and Andorra) are obtained through WDPA API using a personal access token and [official docimentation](https://api.protectedplanet.net/documentation). Most meaningful attributes have been chosen (IDs, designation status, IUCN category, year of establishment etc.)"
38+
"Spatial data on protected areas in GeoJSON and GeoPackage formats for countries needed (on our case, Spain, France and Andorra) are obtained through Protected Planet API using a personal access token and [official docimentation](https://api.protectedplanet.net/documentation). Most meaningful attributes have been chosen (IDs, designation status, IUCN category, year of establishment etc.)"
3939
]
4040
},
4141
{
@@ -799,7 +799,7 @@
799799
"source": [
800800
"#### 3. Raster recalculation\n",
801801
"\n",
802-
"LULC [enriched](/raster_sum_loop.sh) through the raster calculator (currently, external shell script):\n",
802+
"LULC [enriched](raster_sum_loop.sh) through the raster calculator (currently, external shell script):\n",
803803
"1. Rearranging no data values as they must be considered as 0 to run raster calcualtions.\n",
804804
"2. To sum initial LULC raster and protected areas (according to the timestamp).\n",
805805
"3. Writing the new updated LULC map with the doubled amount of LULC codes for each timestamp (loop based on year matching in filenames).\n",
@@ -878,7 +878,7 @@
878878
"metadata": {},
879879
"source": [
880880
"#### 4. Updating landscape impedance\n",
881-
"Impedance is reclassified by [CSV table](/reclassification.csv) and compressed (through LZW compression, not Cloud Optimised Geotiff standard to avoid any further issues in processing). Landscape impedance is required by Miramon ICT and Graphab tools both.\n",
881+
"Impedance is reclassified by [CSV table](data/input/impedance/lulc_descr_esa.csv) and compressed (through LZW compression, not Cloud Optimised Geotiff standard to avoid any further issues in processing). Landscape impedance is required by Miramon ICT and Graphab tools both.\n",
882882
"\n",
883883
"Let's import another set of libraries needed and define the class to update the impedance."
884884
]

src/3_enrichment.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"The following types of input data are exploited:\n",
3030
"1. Raster land-use/land-cover (LULC) data, GeoTIFF format. Cloud Optimised GeoTiff (COG) is preferable (COG with LZW compression is used to optimise storaging data). ***MANDATORY***\n",
3131
"2. Vector data (GPKG) to enrich and refine LULC data (currently, roads, railways, water bodies and waterways are processed) derived either from OSM or user-specified data. ***MANDATORY***\n",
32-
"3. Tabular (CSV) data mapping LULC types to their specifications: (1) whether concrete LULC type should be refined by vector data or not (***MANDATORY***) and (2) whether negative \"edge effect\" of concrete LULC type should be considered, for instance, roads affect suitability of habitats alongside roads (***OPTIONAL***). This reclassification table is being used in the [first block](1_protected_areas/1_preprocessing_pas.ipynb) of the Data4Land tool."
32+
"3. Tabular (CSV) data mapping LULC types to their specifications: (1) whether concrete LULC type should be refined by vector data or not (***MANDATORY***) and (2) whether negative \"edge effect\" of concrete LULC type should be considered, for instance, roads affect suitability of habitats alongside roads (***OPTIONAL***). This reclassification table is being used in the [first block](1_pas.ipynb) of the Data4Land tool."
3333
]
3434
},
3535
{

src/4_impedance.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"- LULC raster dataset and its derivatives from the previous Notebook - stressors (GeoTIFF)\n",
2525
"- OSM raster datasets with rasterised spatial features (GeoTIFF)\n",
2626
"- configuration of edge effect from user: which LULC categories cause edge effect (0...\\*,) which OSM spatial features can cause edge effect (0...\\*), defined in [CSV](data/input/impedance/lulc_descr_esa.csv)\n",
27-
"- parameters of edge effect from stressors [(YAML configuration file)](config_impedance.yaml)\n",
27+
"- parameters of edge effect from stressors [(YAML configuration file)](config/config_impedance.yaml)\n",
2828
"\n",
2929
"**OUTPUT**\n",
3030
"- enriched impedance raster dataset with applied edge effect (GeoTIFF)\n",
@@ -423,7 +423,7 @@
423423
"metadata": {},
424424
"source": [
425425
"### Populating impedance configuration with stressors from OSM\n",
426-
"Another portion of stressors comes from another source - rasterised vector features (being produced in the [3rd Notebook](3_preprocessing.ipynb)), recommended to be fetched from Open Street Map. For the sample dataset, two types of stressors are being used - railways and roads. Moreover, it is implemented to define a different parameters for subtypes of vector features, in this case, for roads - it is justified by the fact that roads vary by width and traffic frequency."
426+
"Another portion of stressors comes from another source - rasterised vector features (being produced in the [3rd Notebook](3_enrichment.ipynb)), recommended to be fetched from Open Street Map. For the sample dataset, two types of stressors are being used - railways and roads. Moreover, it is implemented to define a different parameters for subtypes of vector features, in this case, for roads - it is justified by the fact that roads vary by width and traffic frequency."
427427
]
428428
},
429429
{
@@ -565,7 +565,7 @@
565565
"source": [
566566
"# Impedance Configuration Processor\n",
567567
"\n",
568-
"This is a wrapper class to populate the [config_impedance.yaml](config_impedance.yaml) file with the lulc and osm stressors. This configuration is a temporary file that will be used for impedance recalculation. "
568+
"This is a wrapper class to populate the [config_impedance.yaml](config/config_impedance.yaml) file with the lulc and osm stressors. This configuration is a temporary file that will be used for impedance recalculation. "
569569
]
570570
},
571571
{

src/config/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ output_dir: 'data/output'
3131

3232
## 1st NOTEBOOK
3333
# Protected Planet API
34-
token: "968cef6f0c37b925225fb60ac8deaca6" # replace with your token
34+
token: "your_token" # replace with your token
3535
marine: false # 'false' by default to bring marine protected areas or not. warning: being transformed into 'False' in URI, but recognised as a boolean value. Does not cause issues.
3636
api_countries: true # 'true' by default. Brings codes of countries intersecting with input raster dataset. Otherwise, user must specify list of countries as ISO3 codes.
3737
# Parameters to update the impedance datasets

0 commit comments

Comments
 (0)