Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scorecards #82

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,003 changes: 1,003 additions & 0 deletions notebooks/H3_Generate_AWS_OLD.ipynb

Large diffs are not rendered by default.

1,700 changes: 258 additions & 1,442 deletions notebooks/IMPLEMENTATIONS/ZON_MNACE_Compile_NTL/Compile_Zonal_Results.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# import numpy as np


sys.path.append("../../src")
sys.path.append("../../../src")
import h3_helper

AWS_S3_BUCKET = "wbg-geography01"
Expand Down Expand Up @@ -40,6 +40,21 @@ def run_zonal(gdf, cur_raster_file, out_file, buffer0=False, verbose=False):
verbose = True
tPrint("Starting")
h3_level = 6
data_prefix = "VIIRS_Monthly_LEN"

# Get list of nighttime lights VIIRS data
ntl_files = ntl.aws_search_ntl()
good_months = ['01','04','07','10']
final_ntl_files = []
for ntl_file in ntl_files:
date = os.path.basename(ntl_file).split("_")[2].split("-")[0]
month = date[4:6]
if month in good_months:
final_ntl_files.append(ntl_file)
ntl_files = final_ntl_files
# ntl_folder = "/home/public/Data/GLOBAL/NighttimeLights/VIIRS_ANNUAL_EOG_V21"
# ntl_files = [os.path.join(ntl_folder, x) for x in os.listdir(ntl_folder) if x.endswith(".tif")]

data_prefix = "VIIRS_ANNUAL_EOG"

# Get list of nighttime lights VIIRS data
Expand Down
Loading
Loading