Skip to content

Commit

Permalink
nasa laads image
Browse files Browse the repository at this point in the history
  • Loading branch information
ramarty committed Dec 4, 2023
1 parent e0353be commit c0b30f0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ The function requires using a **Bearer Token**; to obtain a token, follow the be
3. Click "See wget Download Command" (bottom near top, in the middle)
4. After clicking, you will see text that can be used to download data. The "Bearer" token will be a long string in red.

After logging in, the below will show the bearer token in red instead of `INSERT_DOWNLOAD_TOKEN_HERE`. Sometimes, after logging in, the NASA website will redirect to another part of the website. To obtain the bearer token, just navigate to the [NASA LAADS Archive](https://ladsweb.modaps.eosdis.nasa.gov/archive/allData/5000/VNP46A3/) after logging in.

<p align="center">
<img src="man/figures/nasa_laads_login.png" alt="NASA LAADS Bearer Token" width="800"/>
</p>

## Usage <a name="usage">

### Setup <a name="setup">
Expand Down
Binary file added man/figures/nasa_laads_login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 24 additions & 2 deletions readme_figures/make_hex.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if(T){
library(sp)
library(sf)

bearer <- read_csv("~/Desktop/nasa_bm_bearer.csv") %>%
bearer <- read_csv("~/Desktop/bearer_bm.csv") %>%
pull(token)

# Make ROI -------------------------------------------------------------------
Expand Down Expand Up @@ -80,7 +80,29 @@ if(T){
l_x = 0.93,
l_width = 3,
l_height = 3,
filename="~/Documents/Github/download_blackmarble/man/figures/hex.png")
filename="~/Documents/Github/blackmarbler/man/figures/hex.png")

sticker(p,
package="blackmarblepy",
spotlight = F,
#l_alpha = 1, #0.15,
p_size=20, #7
p_y = 1.40,
p_family = "sans",
p_fontface = "italic",
s_x=1,
s_y=0.9,
s_width=2.5,
s_height=2.5,
p_color = "white",
h_fill = "black",
h_color = "black",
white_around_sticker = T,
l_y = 1.4,
l_x = 0.93,
l_width = 3,
l_height = 3,
filename="~/Documents/Github/blackmarblepy/docs/images/logo.png")


}

0 comments on commit c0b30f0

Please sign in to comment.