Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ramarty committed Jan 3, 2025
1 parent 42aff2e commit a9498ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ devtools::install_github("worldbank/blackmarbler")

Follow the below steps to obtain a bearer token:

1. Create a [NASA Earth Data account](https://ladsweb.modaps.eosdis.nasa.gov/) account. On the top right, click "Login" then "Earthdata Login". Then click "register" (blue button).
1. Create a [NASA Earth Data account](https://ladsweb.modaps.eosdis.nasa.gov/) account. On the top right of the [webpage](https://ladsweb.modaps.eosdis.nasa.gov/), click "Login" then "Earthdata Login". Then click "register" (blue button).
2. Enter the information in the registration page. You __must__ include the following information; this information is not required to create an account, but the bearer token will not work without this information:

- Study Area
Expand Down
2 changes: 1 addition & 1 deletion readme_figures/test_20250103.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bearer <- read.csv("~/Dropbox/bearer_bm.csv")$token
bearer <- "eyJ0eXAiOiJKV1QiLCJvcmlnaW4iOiJFYXJ0aGRhdGEgTG9naW4iLCJzaWciOiJlZGxqd3RwdWJrZXlfb3BzIiwiYWxnIjoiUlMyNTYifQ.eyJ0eXBlIjoiVXNlciIsInVpZCI6Im1haHJ1a2hraGFuIiwiZXhwIjoxNzM4NjIyNTYwLCJpYXQiOjE3MzM0Mzg1NjAsImlzcyI6Imh0dHBzOi8vdXJzLmVhcnRoZGF0YS5uYXNhLmdvdiIsImlkZW50aXR5X3Byb3ZpZGVyIjoiZWRsX29wcyIsImFzc3VyYW5jZV9sZXZlbCI6Mn0.0UkrgHv9knb0mqczuTFUUQoBm_CaWFwzO3b7WJhnNy0rPKbEVE3Z3zrqT0CvdRZoaanEt_h9fL1pZ_XEWebpmF7M6crRDVb34OLof8aUggokvlBZ8AmMMz3XfgTz21fjxtBY7BhON_dJaUkBbDFuTQoxQjWBDbWjpqksrRkP9fbyM2Qat1nBpDQELPmYlmUc2VHW3G9oJfe11LO1grslG8LnZcrg3ANYboCx3BIG6q9uwB8cqq-VWJ6h1ZwMQb-NFeWv8cwzQbAU1ZC64TcxKyVP2nKxx1PcrO0tMRgLFNzDLH4XoAWhcTedPz8S8QHt-Cg0tYUB-6U-_stpwUankA"

bearer <- get_nasa_token(username = "dakarbrtie1@gmail.com",
password = "Brodie777!!!")
password = "")

bearer <- "eyJ0eXAiOiJKV1QiLCJvcmlnaW4iOiJFYXJ0aGRhdGEgTG9naW4iLCJzaWciOiJlZGxqd3RwdWJrZXlfb3BzIiwiYWxnIjoiUlMyNTYifQ.eyJ0eXBlIjoiVXNlciIsInVpZCI6InJvYmVydGFuZHJld21hcnR5IiwiZXhwIjoxNzQxMTE2ODQ5LCJpYXQiOjE3MzU5MzI4NDksImlzcyI6Imh0dHBzOi8vdXJzLmVhcnRoZGF0YS5uYXNhLmdvdiIsImlkZW50aXR5X3Byb3ZpZGVyIjoiZWRsX29wcyIsImFjciI6ImVkbCIsImFzc3VyYW5jZV9sZXZlbCI6M30.GI9beb9eptfRqg7RdIhOnK1yWQmfqFTkTGCp41a0SI8POciUBAszA89NNTuInAq4ACmEYKlZqCSjCyZM9DuzmzG82sTQDLBilANkq2igEi-IAodDYHTlM8HBBw8oZ_jBBEeLXCTcPgcV-cMWvwxKselzCx982_wxs-1-IxxtbkjeO8-6FCQSmePptJH40LkOXwAbTXwjA40LA0GETgeFEvOo74RcvYFo96N3VQhW9L92ZeYptkdR5rWsPsR0e-oDpn99Vk-K7e0RhfQtgsN43lUDw8-GkF5pAuPW7_DjgUyIFRvvLgZrnqkNIlemn1Lquj_OF-bA0VsWUtQLSGNTUA"

Expand Down
2 changes: 2 additions & 0 deletions readme_figures/testing_using_package.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ library(terra)
# Using package ----------------------------------------------------------------
bearer <- read.csv("~/Dropbox/bearer_bm.csv")$token

ieconnectlagosproject2@gmail.com

roi_sf <- data.frame(lat = -1.943889, lon = 30.059444, id = 1) |>
st_as_sf(coords = c("lon", "lat"),
crs = 4326) |>
Expand Down

0 comments on commit a9498ec

Please sign in to comment.