mirror of
https://github.com/Skyai-io/landsat-util.git
synced 2026-03-10 09:01:18 +00:00
53 lines
1.1 KiB
Python
53 lines
1.1 KiB
Python
# USGS Landsat Imagery Util
|
|
#
|
|
#
|
|
# Author: developmentseed
|
|
# Contributer: scisco
|
|
#
|
|
# License: CC0 1.0 Universal
|
|
|
|
##
|
|
## Main Setting File
|
|
##
|
|
|
|
import os
|
|
|
|
# Google Storage Landsat Config
|
|
|
|
SOURCE_URL = 'gs://earthengine-public/landsat'
|
|
SCENE_FILE_URL = SOURCE_URL + '/scene_list.zip'
|
|
SATELLITE = 'L8'
|
|
L8_METADATA_URL = 'http://landsat.usgs.gov/metadata_service/bulk_metadata_files/LANDSAT_8.csv'
|
|
|
|
# Elastic Search Config
|
|
|
|
ES_URL = [{
|
|
'host': 'localhost',
|
|
'port': 9200,
|
|
'use_ssl': False
|
|
}]
|
|
ES_MAIN_INDEX = 'landsat'
|
|
ES_MAIN_TYPE = '8'
|
|
|
|
API_URL = 'http://api.developmentseed.com:8000/landsat'
|
|
|
|
# Local Forlders Config
|
|
|
|
# User's Home Directory
|
|
HOME_DIR = os.path.expanduser('~')
|
|
|
|
# Utility's base directory
|
|
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
DOWNLOAD_DIR = HOME_DIR + '/landsat'
|
|
ZIP_DIR = DOWNLOAD_DIR + '/zip'
|
|
UNZIP_DIR = DOWNLOAD_DIR + '/unzip'
|
|
PROCESSED_IMAGE = DOWNLOAD_DIR +'/processed'
|
|
SCENE_FILE = DOWNLOAD_DIR + '/scene_list'
|
|
|
|
ASSESTS_DIR = BASE_DIR + '/assests'
|
|
L8_METADATA_FILENAME = 'metadata.csv'
|
|
|
|
SHAPEFILE_INPUT = HOME_DIR + '/landsat/output/shapefiles/input'
|
|
SHAPEFILE_OUTPUT = HOME_DIR + '/landsat/output/shapefiles/output'
|