-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(data): copernicus layer * semver(data): v1.0.0 * doc(data): links to dataset * doc(data): use Copernicus example * doc(data): new layer * doc(data): typo * feat(data): copernicus lc forest type * doc: link Closes #327
- Loading branch information
Showing
9 changed files
with
108 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "SimpleSDMDatasets" | ||
uuid = "2c7d61d0-5c73-410d-85b2-d2e7fbbdcefa" | ||
authors = ["Timothée Poisot <[email protected]>"] | ||
version = "0.2.3" | ||
version = "1.0.0" | ||
|
||
[deps] | ||
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
provides(::Type{Copernicus}, ::Type{LandCover}) = true | ||
|
||
url(::Type{Copernicus}) = "https://land.copernicus.eu/en/products/global-dynamic-land-cover" | ||
blurb(::Type{Copernicus}) = md""" | ||
The Global Dynamic Land Cover product offers annual global land cover maps and | ||
cover fraction layers, providing a detailed view of land cover at three | ||
classification levels. It uses modern data analysis techniques to ensure | ||
temporal consistency and accuracy, with the latest version achieving 80% | ||
accuracy at class level 1 on each continent. The product also includes | ||
continuous field layers, or "fraction maps", that provide proportional estimates | ||
for vegetation and ground cover for the land cover types. These features make it | ||
a versatile tool for a wide range of applications, including forest monitoring, | ||
rangeland management, crop monitoring, biodiversity conservation, climate | ||
modelling, and urban planning. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
url(::RasterData{Copernicus, LandCover}) = "https://zenodo.org/records/3939050" | ||
|
||
blurb(::RasterData{Copernicus, LandCover}) = md""" | ||
Near real time epoch 2019 from the Collection 3 of annual, global 100m land | ||
cover maps. | ||
Produced by the global component of the Copernicus Land Service, derived from | ||
PROBA-V satellite observations and ancillary datasets. | ||
:::details Citation | ||
Marcel Buchhorn, Bruno Smets, Luc Bertels, Bert De Roo, Myroslava Lesiv, | ||
Nandin-Erdene Tsendbazar, Martin Herold, & Steffen Fritz. (2020). Copernicus | ||
Global Land Service: Land Cover 100m: collection 3: epoch 2019: Globe (V3.0.1) | ||
[Data set]. Zenodo. https://doi.org/10.5281/zenodo.3939050 | ||
::: | ||
""" | ||
|
||
# Update the layers | ||
layers(::RasterData{Copernicus, LandCover}) = [ | ||
"Bare", | ||
"Built-up", | ||
"Crops", | ||
"Grass", | ||
"Moss and lichen", | ||
"Permanent water", | ||
"Seasonal water", | ||
"Shrubs", | ||
"Snow", | ||
"Trees", | ||
"Classification", | ||
"Forest type" | ||
] | ||
|
||
function __copernify(str) | ||
varnames = Dict( | ||
"Bare" => "Bare-CoverFraction-layer", | ||
"Built-up" => "BuiltUp-CoverFraction-layer", | ||
"Crops" => "Crops-CoverFraction-layer", | ||
"Grass" => "Grass-CoverFraction-layer", | ||
"Moss and Lichen" => "MossLichen-CoverFraction-layer", | ||
"Permanent water" => "PermanentWater-CoverFraction-layer", | ||
"Seasonal water" => "SeasonalWater-CoverFraction-layer", | ||
"Shrubs" => "Shrub-CoverFraction-layer", | ||
"Snow" => "Snow-CoverFraction-layer", | ||
"Trees" => "Tree-CoverFraction-layer", | ||
"Classification" => "Discrete-Classification-map", | ||
"Forest type" => "Forest-Type-layer", | ||
) | ||
|
||
return varnames[str] | ||
end | ||
|
||
function source( | ||
data::RasterData{Copernicus, LandCover}; | ||
layer = "Classification", | ||
) | ||
var_code = __copernify(layer) | ||
dlurl = "https://zenodo.org/records/3939050/files/PROBAV_LC100_global_v3.0.1_2019-nrt_$(var_code)_EPSG-4326.tif?download=1" | ||
return ( | ||
url = dlurl, | ||
filename = lowercase("PROBAV_LC100_global_v3.0.1_2019-nrt_$(var_code)_EPSG-4326.tif"), | ||
outdir = destination(data), | ||
) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aceb728
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register() subdir=SimpleSDMDatasets
aceb728
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/120832
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: