-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
71 lines (50 loc) · 2.31 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# eurosat 🛰️
The EuroSAT dataset is a comprehensive collection aimed at supporting the development and evaluation of machine learning models in land use and land cover classification tasks. Published in 2019 in the IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, it has become a crucial benchmark for researchers and practitioners in the field.
This R package simplifies the process of downloading and utilizing the EuroSAT dataset, offering an easy-to-use interface that allows users to focus on their analysis rather than data management tasks.
## Installation
You can install the development version of `eurosat` like so:
``` r
# install.packages("devtools")
devtools::install_github("M3nin0/eurosat")
```
## Using eurosat
To download the EuroSAT dataset and create a local index, simply use:
```{r, eval=FALSE}
library(eurosat)
# Download the EuroSAT dataset and create an index
eurosat::eurosat_download()
```
## Accessing the Data
After downloading, you can easily access the dataset through the provided index, which includes paths to the data files and their corresponding land use and land cover classes:
```{r, eval=FALSE}
# Load the index into a data.table
index <- eurosat::eurosat_index()
# View the first few rows of the index
head(index)
#> file class
#> <char> <char>
#> 1: path/to/AnnualCrop_1.tif AnnualCrop
#> 2: path/to/AnnualCrop_10.tif AnnualCrop
#> 3: path/to/AnnualCrop_100.tif AnnualCrop
#> 4: path/to/AnnualCrop_1000.tif AnnualCrop
#> 5: path/to/AnnualCrop_1001.tif AnnualCrop
```
## Extra configurations
Sometimes you might need to disable SSL validation to download the EuroSAT dataset. This can be done by setting the appropriate download file method and options:
```{r cars}
options(download.file.method="curl", download.file.extra="-k -L")
```
## References
[1] Eurosat: A novel dataset and deep learning benchmark for land use and land cover classification. Patrick Helber, Benjamin Bischke, Andreas Dengel, Damian Borth. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 2019.