giacfalk / blackmaRble

blackmaRble: retrieve, wrangle and plot VIIRS Black Marble nighttimelight data in R
Creative Commons Zero v1.0 Universal
16 stars 0 forks source link

Trouble getting data #3

Open CrunchyLettuce opened 1 year ago

CrunchyLettuce commented 1 year ago

Hi,

Thanks very much for this package. Not sure if this is a problem on the server end, but I'm having trouble running bm_get_data. Here's my code:

library(blackmaRble)
bm_initialize("[my earthdata username]", "[my earthdata password]")
output <- bm_get_data(date_start="2019-09-15",
                      date_end='2019-09-16', 
                      delta='days', 
                      data_product='VNP46A2', 
                      variable_name="Gap_Filled_DNB_BRDF_Corrected_NTL", 
                      custom_shape=NULL)

And the response:

Checking credentials...
Error in curl::curl_fetch_memory(url, handle = handle) : 
  Failed to connect to opendap.cr.usgs.gov port 443: Connection refused

Do you have any idea what the issue might be? My username and password is definitely correct.

giacfalk commented 1 year ago

Hi, thanks for opening the issue. I am sure this is a server-end issue, perhaps some path has been changed, as the code used to work without problems. Hopefully over the Xmas period I will find sometime to spot a possible solution. I will keep you posted. Apologies.