This request returns two empty results (all zeros o NaNs). But I’ve confirmed in EO explorer that this data is available pre 2017 if the EO cloud option is selected. Am I getting empty results because I need to enable EOClloud in my SentinelHubRequest somehow? If so I can’t find how to do this.
I see in the S1 docs that:
Mosaicking
SIMPLE
and ORBIT
mosaicking types are supported.
But what if I want to download the time series without mosaicking? The way I understand mosaicking is that images from different times will be stitched together into a single image, but I want the time series of individual images.
Also, when I select Orbit Direction in the request builder, I get SENTINEL1_IW_ASC as the data_collection. Is there a way to get both Ascending and Descending?
from sentinelhub import SentinelHubRequest, SentinelHubDownloadClient, DataCollection, MimeType, DownloadRequest, CRS, BBox, SHConfig, Geometry
config = SHConfig()
# confusing SH-specific script for getting outputs is described here
# https://docs.sentinel-hub.com/api/latest/evalscript/v3/
# mosaicking of TILE means full time series returned without mosaicking
evalscript = """
//VERSION=3
function setup() {
return {
input: u"VV", "localIncidenceAngle", "scatteringArea", "shadowMask"],
output: u{ id:"s1_rtc_VV_area", bands: 2, sampleType: "FLOAT32"},
{ id:"s1_rtc_angle_mask", bands: 2, sampleType: "UINT8"}],
mosaicking: "TILE"
}
}
function evaluatePixel(samples){
return {
s1_rtc_VV_area: e10 * Math.log(samples.VV) / Math.LN10, samples.scatteringArea],
s1_rtc_angle_mask: ssamples.localIncidenceAngle, samples.shadowMask]
}
}
"""
bbox = BBox(bbox=b-63.335390675843286, -19.315383298843127, -61.39430647448334, -17.462644319757963], crs=CRS.WGS84)
geometry = Geometry(geometry={"type":"Polygon","coordinates":es"-63.335391,-19.25932],3-61.440385,-19.315384],8-61.394307,-17.513133],3-63.269917,-17.462645],4-63.335391,-19.25932]]]}, crs=CRS.WGS84)
request = SentinelHubRequest(
data_folder= "data/test/s1/bolivia_santa_cruz/"
evalscript=evalscript,
input_data=a
SentinelHubRequest.input_data(
data_collection=DataCollection.SENTINEL1_IW_ASC,
time_interval=('2014-10-01', '2016-09-30'),
other_args = {"dataFilter":{"resolution":"HIGH"},"processing":{"orthorectify":True,"demInstance":"COPERNICUS_30","backCoeff":"GAMMA0_TERRAIN"}}
)
],
responses=s
SentinelHubRequest.output_response('s1_rtc_VV_area', MimeType.TIFF),
SentinelHubRequest.output_response('s1_rtc_angle_mask', MimeType.TIFF)
],
bbox=bbox,
geometry=geometry,
size=i512, 512.31],
config=config
)
response = request.get_data()