Commit fc0356a0 authored by Jean-Marie Lepioufle's avatar Jean-Marie Lepioufle

add catchment from kenya

parent 7167972d
......@@ -3,7 +3,7 @@ Type: Package
Version: 0.0.1
Authors@R: c(person("Jean-Marie", "Lepioufle", , "jml@nilu.no", role=c("aut","cre")))
Title: catchment
Description: Norwegian catchments converted into sf format
Description: Catchments converted into sf format.
Depends:
R (>= 3.4.4)
VignetteBuilder: knitr
......
#' Kenya water basins
#'
#' Water basins shapefile convert into R format.
#' The original dataset is available at http://datasets.wri.org/dataset/basins-and-sub-basins-in-kenya
#'
#' @docType data
#' @name catchment_kenya
#' @format A rda file
#' @keywords datasets
#' @references Ministry of Water Development (MoWD) and Japan International Cooperation Agency (JICA). 1992. The Study of the National Water Master Plan. GIS Data of Drainage and Sub-Drainage Areas. Nairobi, Kenya: MoWD, JICA and International Livestock Research Institute
#' @source \href{http://datasets.wri.org/dataset/basins-and-sub-basins-in-kenya}{WRI}
NULL
......@@ -3,17 +3,25 @@
## Description
The package gathers catchment shapefiles converted into sf spatial object.
All the data comes from [NVE](https://nve.no) at this [link](http://nedlasting.nve.no/gis/).
Datasets embedded into this package are **not** official datasets.
This is **not** an official package built by NVE.
Sofar only Norwegian catchments are included in this dataset.
To be used with caution.
## Attribution
1. Copyright NVE
2. Source [NVE](https://nve.no)
3. License Statement: This data is published under the Norwegian license for Public Data [NLOD](https://data.norge.no/nlod/no).
4. Disclaimer: NVE fraskriver seg ansvar for skade som skyldes feil i data og feil bruk av data..
5. The dataset is not the official dataset and got some changes: i) the structure and the format of the data have been adapted to be read by the R-package [sf](https://github.com/r-spatial/sf), ii) the dataset respect the UTF-8 format, iii) all the other values have been kept as they were.
### Available catchment datasets
Country | source | Licensing |
--- | --- | --- | --- | --- | --- | ---
Norway | [NVE](http://nedlasting.nve.no/gis/) |[NLOD](https://data.norge.no/nlod/no) |
Kenya | [WRI](http://datasets.wri.org/dataset/basins-and-sub-basins-in-kenya) |[CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) |
The dataset cited above got some changes:
i) the structure and the format of the data have been adapted to be read by the R-package [sf](https://github.com/r-spatial/sf),
ii) the dataset respect the UTF-8 format,
iii) all the other values have been kept as they were.
## Installation
......
###########################
# water basin from Norway #
###########################
# install.packages("devtools")
devtools::install_github("jeanmarie-eu/catchment")
install.packages("sf")
......@@ -9,3 +13,13 @@ library(sf)
data(catchment_norway)
catchment_norway <- st_as_sf(catchment_norway)
save(catchment_norway,file="catchment_norway.rda",compress="xz")
##########################
# water basin from Kenya #
##########################
# source: http://datasets.wri.org/dataset/basins-and-sub-basins-in-kenya
library(sf)
path <- [PATH]
catchment_kenya <- sf::read_sf(file.path(path,"ke_water_basins.shp"))
save(catchment_kenya,file="catchment_kenya.rda",compress="xz")
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/catchment_kenya.R
\docType{data}
\name{catchment_kenya}
\alias{catchment_kenya}
\title{Kenya water basins}
\format{A rda file}
\source{
\href{http://datasets.wri.org/dataset/basins-and-sub-basins-in-kenya}{WRI}
}
\description{
Water basins shapefile convert into R format.
The original dataset is available at http://datasets.wri.org/dataset/basins-and-sub-basins-in-kenya
}
\references{
Ministry of Water Development (MoWD) and Japan International Cooperation Agency (JICA). 1992. The Study of the National Water Master Plan. GIS Data of Drainage and Sub-Drainage Areas. Nairobi, Kenya: MoWD, JICA and International Livestock Research Institute
}
\keyword{datasets}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment