This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from blackmarble.extract import bm_extract | |
from blackmarble.raster import bm_raster | |
# Set NASA EarthData Token (envvar or alternative recommended) | |
bearer = "<NASA-EARTHDATA-TOKEN>" | |
# Retrieve GADM polygon of Lebanon | |
roi = geopandas.read_file( | |
"https://geodata.ucdavis.edu/gadm/gadm4.1/json/gadm41_GHA_1.json.zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(blackmarbler) | |
library(geodata) | |
library(sf) | |
# Set NASA EarthData Token | |
bearer <- "NASA-EARTHDATA-TOKEN" | |
# Retrieve GADM polygon of Lebanon | |
roi <- gadm(country = "LBN", | |
level=1, |
OlderNewer