Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 2: DVC Init #50

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dvc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/config.local
/tmp
/cache
4 changes: 4 additions & 0 deletions .dvc/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[core]
remote = myremote
['remote "myremote"']
url = gdrive://1RP6EcjyBWWDixiy0vIG35ceB6JnCK6NM
3 changes: 3 additions & 0 deletions .dvcignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add patterns of files dvc should ignore, which could improve
# the performance. Learn more at
# https://dvc.org/doc/user-guide/dvcignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/IPCC_ClimateZoneMap_Vector.geojson
4 changes: 4 additions & 0 deletions IPCC_ClimateZoneMap_Vector.geojson.dvc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
outs:
- md5: 6f436ab4aa7ce7219a1603b4fa83687c
size: 13400448
path: IPCC_ClimateZoneMap_Vector.geojson
51 changes: 51 additions & 0 deletions IPCC_ClimateZoneMap_Vector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
IPCC Climate Zone Map

Description:
The Climatic Zone layer is defined based on the classification of IPCC (IPCC, 2006). The zones are defined by a set of rules based on:

- Annual mean daily temperature,
- Total annual precipitation,
- Total annual potential evapo-transpiration (PET) and elevation.
The classification presented as Figure 3A.5.1 Classification scheme for default climate regions” (IPCC, 2006) could not be accessed in electronic form and generated from an independently developed set of base data layers. Climatic information on temperature and precipitation was provided by the 5 arc min. dataset Version 1.4 from the WorldClim project (Hijmans et al., 2005). PET was computed according to the temperature-based formula investigated by Oudin et al. (2005) and used by Kay & Davis (2008). The computation of the extraterrestrial radiation was based on Duffie & Beckman (1991) and Allen et al. (1994). The formulas were supplemented by the information provided by the “Solar Radiation Basis” Web-page of the University of Oregon: http://solardat.uoregon.edu/SolarRadiationBasics.html.

FLINT
This dataset has been checked/pre-processed and is suitable for use in FLINT. Please adhere to individual dataset licence conditions and citations. Processed data can be accessed here: Land Sector Datasets https://datasets.mojaglobal.workers.dev/

Format
Extent: Global coverage
Resolution: Raster 0.05-degree resolution (this can be resampled to any resolution)
File type: geotiff (.tif) and geojson (.json)
Cordinate system: EPSG:4326 (WGS84)
Year: 2006
Size: 24MB

Original source:
Downloaded from: https://esdac.jrc.ec.europa.eu/projects/RenewableEnergy/ Accessed 20/12/2020.
Raster .rst 0.0833333333333333 degree pixels

Licence:
Creative Commons Attribution 4.0 International License

Citation:
Intergovernmental Panel on Climate Change, (IPCC), (2006)., 2006 IPCC Guidelines for National Greenhouse Gas Inventories Volume 4: Agriculture, Forestry and Other Land Use. Available at: https://www.ipcc-nggip.iges.or.jp/public/2006gl/vol4.html

Metadata:
More information: https://esdac.jrc.ec.europa.eu/projects/RenewableEnergy/ Value Class_name
1 Warm Temperate Moist
2 Warm Temperate Dry
3 Cool Temperate Moist
4 Cool Temperate Dry
5 Polar Moist
6 Polar Dry
7 Boreal Moist
8 Boreal Dry
9 Tropical Montane

Processing:
Dataset converted to tiff, projection WGS84, and converted to vector (note Value and Class_name table above to matach codes. Code is provided below.

# Convert from .rst to tif and apply WGS84 and resample to 0.005
gdalwarp -t_srs EPSG:4326 -dstnodata 255.0 -tr 0.05 0.05 -r near -te -180.0 -90.0 180.0 90.0 -te_srs EPSG:4326 -of GTiff "C:/Data/CLIMATE_ZONE.rst" "C:/Data/IPCC_ClimateZoneMap.tif"

# Convert to polygon
python3 -m gdal_polygonize C:/Data/tiff/IPCC_ClimateZoneMap.tif C:/Data/tiff/IPCC_ClimateZoneMap.geojson -b 1 -f "GeoJSON" IPCC_ClimateZoneMap CLASS_NAME
4 changes: 4 additions & 0 deletions IPCC_ClimateZoneMap_Vector.yaml.dvc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
outs:
- md5: 9f612a1e68d119851aea23dd56c78cab
size: 2918
path: IPCC_ClimateZoneMap_Vector.yaml