I want to pull the 5000 km resolution values for viewZenithMean for an entire relative orbit for a specific date range. What is the best way to build that request?
I started on a python script, but before I go further I figured I would check to see if I am on the right track:
bbox = BBox(bbox=[-95.83, 46.20, -89.74, 48.95], crs=CRS.WGS84)
VIEW_ZENITH_EVALSCRIPT = """
//VERSION=3
function setup() {
return {
input: [{bands: ["viewZenithMean"]}],
output: {id: "default", bands: 1, sampleType: "UINT16"}
};
}
function evaluatePixel(sample) {
return [sample.viewZenithMean];
}
"""
preview_request = SentinelHubRequest(
evalscript=VIEW_ZENITH_EVALSCRIPT,
data_folder='/tmp/mosaic_tests',
input_data=[
SentinelHubRequest.input_data(
data_collection=DataCollection.SENTINEL2_L2A,
time_interval=['2020-07-13', '2020-07-13']
)
],
responses=[
SentinelHubRequest.output_response('default', MimeType.TIFF)
],
bbox=bbox,
size=(512, get_image_dimension(bbox=bbox, width=512)), # would like to resample to 120m eventually
config=config
)