[go: up one dir, main page]

File: __init__.py

package info (click to toggle)
usgs 0.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,320 kB
  • sloc: python: 769; makefile: 153
file content (37 lines) | stat: -rw-r--r-- 642 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
__version__ = "0.3.6"

# The USGS API endpoint
USGS_API_DEPRECATED = "https://earthexplorer.usgs.gov/inventory/json/v/1.4.0"
USGS_API = "https://m2m.cr.usgs.gov/api/api/json/stable"

#
# Two catalogs are available for querying
#

CATALOG_NODES = ["EE", "HDDS"]

# http://earthexplorer.usgs.gov/
EARTH_EXPLORER_CATALOG_NODE = "EE"

# http://hddsexplorer.usgs.gov/
HDDS_EXPLORER_CATALOG_NODE = "HDDS"


class USGSError(Exception):
    pass


class USGSApiKeyRequiredError(Exception):
    pass


class USGSAmbiguousNode(Exception):
    pass


class USGSDependencyRequired(ImportError):
    pass


class USGSAuthExpiredError(Exception):
    pass