Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from datetime import datetime | |
### Config ### | |
# A mapping between the label id needed by the API and the human readable name | |
labelids = {'inactive': 'MDU6TGFiZWwyMjg1Mjc0MTc2', | |
'automatically_closed': 'MDU6TGFiZWwyMjg1Mjc2MjI3'} | |
# Headers necessary for authentication |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"stac_version": "0.9.0", | |
"id": "I01327002RDR", | |
"type": "Feature", | |
"stac_extensions": ["proj"], | |
"bbox": [75.22664324464296, 78.51530600869609, 14.643038735060996, 32.673300304733246], | |
"geometry": { | |
"type": "MultiPolygon", | |
"coordinates": [ | |
[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"productid": "I01327002RDR", | |
"serialnumber": "Odyssey/THEMIS_IR/702244417.102", | |
"label_isis": { | |
"IsisCube": { | |
"Core": { | |
"StartByte": 65537, | |
"Format": "Tile", | |
"TileSamples": 320, | |
"TileLines": 128, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csmapi | |
import requests | |
from requests.adapters import HTTPAdapter | |
from requests.packages.urllib3.util.retry import Retry | |
import os | |
import json | |
def requests_retry_session(retries=1, backoff_factor=0.3, status_forcelist=(500, 502, 504), session=None): | |
session = session or requests.Session() | |
retry = Retry(total=retries, read=retries, connect=retries, backoff_factor=backoff_factor, status_forcelist=status_forcelist) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder