Closed BenjiDa closed 2 years ago
Hi Ben, I'm updating the container and lsdviztools to make sure this works but it might take a day or two.
I have now updated lsdviztools as well as the lsdtt_pytools_docker container. Warning: the new container required a different base image so you will have to pull an entirely new container. You may wish to do this overnight! The updated version uses a file rather than entering the API key directly. Here is an example:
# YOU NEED TO PUT YOUR API KEY IN A FILE
your_OT_api_key_file = "my_OT_api_key.txt"
with open(your_OT_api_key_file, 'r') as file:
print("I am reading you OT API key from the file "+your_OT_api_key_file)
api_key = file.read().rstrip()
print("Your api key starts with: "+api_key[0:4])
Dataset_prefix = "Xian"
source_name = "COP30"
Xian_DEM = bmt.ot_scraper(source = source_name,
lower_left_coordinates = [33.672715066202954, 107.54480443333152],
upper_right_coordinates = [34.16323953210814, 109.4363649228437],
prefix = Dataset_prefix,
api_key_file = your_OT_api_key_file)
If you do not want to pull the new image you can still access the updated OT scraper by updating lsdviztools
to version 0.4.8.
Description
using the ot scraper to download SRTM data from open topography is broken, I have included my API key but it still throws a 401 error.
What I Did