-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.Rmd
78 lines (53 loc) · 2.81 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
72
73
74
75
76
---
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%"
)
```
# **cptcity for the Google Earth Engine JavaScript API (Code Editor)** <a href="#"><img src="man/figures/ee-cptcity.gif" width="100%"></a>
<!-- badges: start -->
<!-- badges: end -->
## 📋 **Table of contents**
1. What is Google Earth Engine ?
2. What is cptcity and why ?
3. Top of the cpt palettes
4. Calling module and use it!
### 🔴 **1. What is Google Earth Engine ?**
<a href="#"><img src="https://user-images.githubusercontent.com/23284899/152171996-54afdafa-4456-4d63-9c92-dca515b100a8.png" width="100%"></a>
Google Earth Engine is a cloud-based platform that helps access high-performance computing resources for processing and analyzing large geospatial datasets [(Noel Golerick et al.,2017).](https://www.sciencedirect.com/science/article/pii/S0034425717302900)
### 🔴 **2. What is cptcity and why ?**
Cptcity is a solium platform where you can find multiple colour palettes for various themes related to cartography, technical illustration and design. The archive supports various formats and is organised by author. Cptcity currently has colour palettes for the most popular desktop Geographic Information Systems such as **QGIS**, **GRASS** , **SAGA** , **ARCGIS** , and others. Currently, it has **7000 colour palettes**, however in this second version of ee-cptcity module more than **300** colour palettes were incorporated along with 2 popular palettes like **rocket** , **mako** and **turbe**.
### 🔴 **3. Top of the cpt palettes**
The 75 most popular cpt files with the number downloaded shown in parentheses. The arrows indicate the change in rank in the last month. This list is compiled from the files downloaded in the last year (a total of 21,647 files) and is updated irregularly, most recently on 04/03/2022.
<a href="http://soliton.vm.bytemark.co.uk/pub/cpt-city/views/totp-cpt.html">
<img src="man/figures/cptcitytop.png" width="100%">
</a>
### 🔴 **4. Calling module and use it!**
```{r, eval = FALSE}
var cpt = require('users/ambarja/ee-cptcity:cptcity');
```
```{r, eval = FALSE}
var srtm = ee.Image('NASA/NASADEM_HGT/001')
.select('elevation')
var viz = {
min: 400,
max: 4000,
palette: cpt.pal.grass_elevation
};
```
```{r, eval = FALSE}
Map.setZoom(1);
Map.addLayer(srtm,viz,'Elevation(m)');
```
<img src="man/figures/p0.png" width="100%"/>
<br>
## 📚 **References**
- _David Montero, 2021, ee-pokepalettes, https://github.com/davemlz/ee-pokepalettes_
- _Gennadii Donchyts, Fedor Baart & Justin Braaten ,2020,https://github.com/gee-community/ee-palettes_
- _Sergio Ibarra Espinosa, 2017, cptcity, https://github.com/ibarraespinosa/cptcity_