NOTE: Major revisions for OpenSARlab upgrade on June 10, 2021
OpenSARlab was upgraded with much better support for conda environments, which significantly simplifies setting up development environments. These instructions have changed accordingly.
import boto3 | |
import cachetools.func | |
import requests | |
# Set TTL to number of seconds to cache. | |
# For instance, 50 minutes so that credentials are refreshed at least 10 minutes | |
# before they're set to expire. | |
@cachetools.func.ttl_cache(ttl=60 * 50) | |
def get_s3_client(bearer_token): |
Reference, Reference URL, Reference Perpendicular Baseline (meters),Secondary, Secondary URL, Secondary Perpendicular Baseline (meters),Pair Temporal Baseline (days) | |
S1A_IW_SLC__1SDV_20180102T043026_20180102T043054_019971_02203A_7C48,https://datapool.asf.alaska.edu/SLC/SA/S1A_IW_SLC__1SDV_20180102T043026_20180102T043054_019971_02203A_7C48.zip,73,S1B_IW_SLC__1SDV_20180108T042944_20180108T043012_009075_01038E_4D08,https://datapool.asf.alaska.edu/SLC/SB/S1B_IW_SLC__1SDV_20180108T042944_20180108T043012_009075_01038E_4D08.zip,-86,5 | |
S1A_IW_SLC__1SDV_20180102T043026_20180102T043054_019971_02203A_7C48,https://datapool.asf.alaska.edu/SLC/SA/S1A_IW_SLC__1SDV_20180102T043026_20180102T043054_019971_02203A_7C48.zip,73,S1A_IW_SLC__1SDV_20180114T043026_20180114T043053_020146_0225C3_4FD5,https://datapool.asf.alaska.edu/SLC/SA/S1A_IW_SLC__1SDV_20180114T043026_20180114T043053_020146_0225C3_4FD5.zip,-1,12 | |
S1B_IW_SLC__1SDV_20180108T042944_20180108T043012_009075_01038E_4D08,https://datapool.asf.alaska.edu/SLC/SB/S1B_IW_SLC__1SDV_ |
#!/usr/bin/env python3 | |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
#Yang Lei, Jet Propulsion Laboratory | |
#November 2017 | |
import argparse | |
import isce | |
import isceobj | |
import numpy as np | |
import shelve |
def get_user(username): | |
db = get_db_conn() | |
cur = db.cursor() | |
cur.execute("select * from users") | |
results = cur.fetchall() | |
cur.close() | |
for rec in results: | |
if rec[1] == username: |
OpenSARlab was upgraded with much better support for conda environments, which significantly simplifies setting up development environments. These instructions have changed accordingly.