Skip to content

Commit

Permalink
Download limitation for all regions
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienWehrle authored Jun 10, 2021
1 parent 3d925cc commit e1d06f8
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions dhusget_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,22 @@ if [[ -z ${path_product_list:-} ]]; then

datestr0="${date}T00:00:00.0000Z"
datestr1="${date}T23:59:59.9999Z"

#limit the number of scenes when footprint set to a
#small high latitude region by searching around the local solar noon +-dt hours
if ! [[ ${footprint} == "Greenland" ]]; then

y=${footprint_poly:22:-2}
dt=1
output=`python <<END

if [ ${footprint} == "NovayaZemlya" ] || [ ${footprint} == "SevernayaZemlya" ] || [ ${footprint} == "SouthernArcticCanada" ]\
|| [ ${footprint} == "NorthernArcticCanada" ]; then
dt=2
fi;

if [ ${footprint} == "Iceland" ] || [ ${footprint} == "Svalbard" ] || [ ${footprint} == "FransJosefLand" ]; then
dt=1
fi;

y=${footprint_poly:22:-2}
output=`python <<END
import shapely.wkt
from math import modf
Expand Down

0 comments on commit e1d06f8

Please sign in to comment.