Skip to content

Commit e1d06f8

Browse files
authored
Download limitation for all regions
1 parent 3d925cc commit e1d06f8

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

dhusget_wrapper.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,22 @@ if [[ -z ${path_product_list:-} ]]; then
142142

143143
datestr0="${date}T00:00:00.0000Z"
144144
datestr1="${date}T23:59:59.9999Z"
145-
145+
146146
#limit the number of scenes when footprint set to a
147147
#small high latitude region by searching around the local solar noon +-dt hours
148148
if ! [[ ${footprint} == "Greenland" ]]; then
149-
150-
y=${footprint_poly:22:-2}
151-
dt=1
152-
output=`python <<END
149+
150+
if [ ${footprint} == "NovayaZemlya" ] || [ ${footprint} == "SevernayaZemlya" ] || [ ${footprint} == "SouthernArcticCanada" ]\
151+
|| [ ${footprint} == "NorthernArcticCanada" ]; then
152+
dt=2
153+
fi;
154+
155+
if [ ${footprint} == "Iceland" ] || [ ${footprint} == "Svalbard" ] || [ ${footprint} == "FransJosefLand" ]; then
156+
dt=1
157+
fi;
158+
159+
y=${footprint_poly:22:-2}
160+
output=`python <<END
153161
154162
import shapely.wkt
155163
from math import modf

0 commit comments

Comments
 (0)