Hello,
I’m trying to access the DEM SRTM 30 dataset.
I have read your documentation about datasets here and I;m not sure if you provide SRTM dataset or only layer that is based on SRTM layer.
My question is if it is possible to access this specific layer and if yes how.
I have tried to do it like this but that gave me 400 error for bad request:
evalscript = """
//VERSION=3
function setup() {
return {
input: :"SRTM30"],
output: { bands: 1,sampleType:"FLOAT32"}
};
}
function evaluatePixel(samples) {
return n"SRTM30"];
}
"""
# Set coords in WGS84
coords = =17.77777822222222,-18.999999777777777,17.833333777777778,-18.94444422222222]
# Set resolution
resolution = 10
# Make bbox and size
bbox = BBox(bbox=coords, crs=CRS.WGS84)
size = bbox_to_dimensions(bbox, resolution=resolution)
date=('2020-01-01','2020-01-31')
request = SentinelHubRequest(
evalscript=evalscript,
input_data=a
SentinelHubRequest.input_data(
data_collection=DataCollection.DEM,
time_interval=date,
),
],
responses=s
SentinelHubRequest.output_response('default', MimeType.TIFF)
],
bbox=bbox,
size=size,
config=config
)
response = request.get_data()
print(f"Shape of returned images for {date} = {responses0].shapep0:2]}")
print(f"Number of bands = {responses0].shapep-1]}")
img=responses0]
plt.imshow(imgm:,:,0],cmap="Greys")
plt.show()
400 Client Error: Bad Request for url: https://services.sentinel-hub.com/api/v1/process
Server response: “{“error”:{“status”:400,“reason”:“Bad Request”,“message”:“DEM has no band SRTM30”,“code”:“RENDERER_EXCEPTION”}}”
so my specific questions are:
- can I access SRTM30 using sentinel hub platform?
- Is there any meaning for the time range when requesting elevation layer?
- Are there any plans to put as default the slope layer? I saw that Maxim has shared is own module for this here, but would like to ask if something changed since then and if it is in your plan/already available as layer.
Thanks