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

Unavailability of Landsat on-demand products due to U.S. government shutdown #15

Open
Matiasedguzman opened this Issue Jan 4, 2019 · 7 comments

Comments

Projects
None yet
2 participants
@Matiasedguzman
Copy link

Matiasedguzman commented Jan 4, 2019

Hi,

I have a problem when I run getLandsat_query in R. I get the next lines after run it:

Searching USGS EarthExplorer for available products...
Reading meta data of search results from USGS EarthExplorer...
Recieving available product levels from USGS-EROS ESPA...
Error in gSD.get(url = paste0(getOption("gSD.api")$espa, "available-products/", :
Moved Permanently (HTTP 301). Failed to connect to server.._

I saw that USGS-EROS ESPA server is on maintenance, is that the answer of this error?

Greetings and thank you!

@16EAGLE

This comment has been minimized.

Copy link
Owner

16EAGLE commented Jan 7, 2019

Thanks for reporting and sorry for the delayed reply. Unfortunately, ESPA is currently unavailable due to the temporary shutdown of the United States federal government. This is the reason for both the query failure and the maintenance status. See https://espa.cr.usgs.gov/

I just updated getSpatialData so that getLandsat_query is not failing, if ESPA is unavailable. Instead, the record field levels_available is set to NA. Please install the newest version and let me know, if the issue could be solved.

@Matiasedguzman

This comment has been minimized.

Copy link

Matiasedguzman commented Jan 7, 2019

Thank you very much for your answer! Do you know if ESPA's server will return to be available soon? or it's the first time that this happened?

@16EAGLE

This comment has been minimized.

Copy link
Owner

16EAGLE commented Jan 7, 2019

I am afraid, ESPA will not return until a political solution is found that ends the U.S. government shutdown or the shutdown of some U.S. government branches.

@Matiasedguzman

This comment has been minimized.

Copy link

Matiasedguzman commented Jan 7, 2019

In this case, it's possible to change the server for obtain Landsat 8 data with getLandsat_query?

@Matiasedguzman

This comment has been minimized.

Copy link

Matiasedguzman commented Jan 7, 2019

do you know another way to get Landsat 8 data in R?

@16EAGLE

This comment has been minimized.

Copy link
Owner

16EAGLE commented Jan 7, 2019

Yes, you can still download Landsat 8 Level 1 data via AWS using getLandsat_data. Since ESPA is not available, on-demand processing of higher-level products such as surface reflectances is not possible. This is something that has not to do with getSpatialData and will apply for all ESPA clients in R.

I added another change that makes it possible to still download Landsat level 1 data if ESPA is offline. Please reinstall getSpatialData.

You can download Landsat 8 data as shown in this example (to be run after setting your AOI, login, archive directory etc.):

records <- getLandsat_query(time_range = c("2018-08-01", "2018-08-31"), name = "LANDSAT_8_C1")
getLandsat_data(records[1,], level = "l1") #to download the first dataset from AWS

@16EAGLE 16EAGLE changed the title getLandsat_query error! Unavailability of Landsat on-demand products due to U.S. government shutdown Jan 8, 2019

@16EAGLE 16EAGLE added the user info label Jan 9, 2019

@Matiasedguzman

This comment has been minimized.

Copy link

Matiasedguzman commented Jan 9, 2019

Wonderful! Now I can download Landsat 8 data again! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment