Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
demo script modified
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-sikaria committed Mar 15, 2018
1 parent 9f66852 commit 23d15ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/india_landsat.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ result_order = espa_order(result$product_id, product = c("sr","sr_ndvi"),
order_id = result_order$order_details$orderid

# getting order status
durl = espa_status(order_id = order_id)
durl = espa_status(order_id = order_id, getSize = TRUE)
downurl = durl$order_details
paste0("Total Size of Order: ", round(sum(downurl$size)/(1000^3), 2), "GB")

# download; after the order is complete
landsat_download(download_url = downurl$product_dload_url, dest_file = getwd())

0 comments on commit 23d15ea

Please sign in to comment.