Skip to content
Alexandros Ali Khan edited this page Mar 11, 2020 · 15 revisions

This step is using download_rsmas.py script.

It will download data based on the parameters given in template as ssaraopt:

ssaraopt.platform                     = None         # platform name [SENTINEL-1A, ...]
ssaraopt.relativeOrbit                = None         # relative orbit number
ssaraopt.frame                        = None         # frame number
ssaraopt.startDate                    = None         # starting acquisition date [YYYYMMDD]
ssaraopt.endDate                      = None         # ending acquisition date [YYYYMMDD]

sometimes it cannot find the proper dataset based on frame number, then it will find based on bounding box of the desired area of processing, given as the option topsStack.boundingBox in template:

topsStack.boundingBox      = None   # [ '-1 0.15 -91.7 -90.9'] lat_south lat_north lon_west lon_east

Example:

download_rsmas.py $SAMPLESDIR/unittestGalapagosSenDT128.template

# submit as a job:
download_rsmas.py $SAMPLESDIR/unittestGalapagosSenDT128.template --submit

# Add a value of 0.1 to latitude from boundingBox field:       
download_rsmas.py $SAMPLESDIR/unittestGalapagosSenDT128.template --delta_lat 0.1  
 

download_data.py calls two scripts, download_ssara.py and download_asfserial.py . The first uses ssara_federated_query-cj.py and the second the ASF python download script. The scripts can be called individually:

download_ssara.py $SAMPLESDIR/GalapagosSenDT128.template --delta_lat 0.1
download_asf.py $SAMPLESDIR/GalapagosSenDT128.template --delta_lat 0.1

download_asf.py can download in parallel with the option ssaraopt.parallel, which corresponds to the number of threads to run in parallel, in the template file. ssaraopt.parallel = auto will use os.cpu_count() to get the number of threads in your system. ssaraopt.parallel can also be set to any positive integer. However, setting this number greater than the total number of threads, i.e os.cpu_count(), has no positive effect. On the contrary, it might be detrimental.