VNP46A4 Data
Posted: Sat Apr 13, 2024 7:42 pm America/New_York
Hi
I have to get the following data please VNP46A4 - VIIRS/NPP Lunar BRDF-Adjusted Nighttime Lights
I have the R code
for(year_month_i in months){
OUT_FILE <- file.path(ntl_bm_dir, "FinalData", "monthly_rasters",
paste0("bm_vnp46A3_",
year_month_i %>% str_replace_all("-", "_"),
".tif"))
if(!file.exists(OUT_FILE)){
print(year_month_i)
r <- bm_mk_raster(loc_sf = survey_buff_sf,
product_id = "VNP46A3",
time = year_month_i,
bearer = BEARER,
mask = F)
writeRaster(r, OUT_FILE)
}
}
which is not working please due to some issue
can any guide me how I can download the data being downloaded in R code manually please
I have to get the following data please VNP46A4 - VIIRS/NPP Lunar BRDF-Adjusted Nighttime Lights
I have the R code
for(year_month_i in months){
OUT_FILE <- file.path(ntl_bm_dir, "FinalData", "monthly_rasters",
paste0("bm_vnp46A3_",
year_month_i %>% str_replace_all("-", "_"),
".tif"))
if(!file.exists(OUT_FILE)){
print(year_month_i)
r <- bm_mk_raster(loc_sf = survey_buff_sf,
product_id = "VNP46A3",
time = year_month_i,
bearer = BEARER,
mask = F)
writeRaster(r, OUT_FILE)
}
}
which is not working please due to some issue
can any guide me how I can download the data being downloaded in R code manually please