cdasws 1.8.11__py3-none-any.whl → 1.8.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cdasws/__init__.py +7 -2312
- cdasws/__main__.py +6 -5
- cdasws/cdasws.py +1835 -321
- cdasws/datarequest.py +2 -3
- cdasws/doi.py +127 -0
- {cdasws-1.8.11.dist-info → cdasws-1.8.13.dist-info}/METADATA +4 -1
- cdasws-1.8.13.dist-info/RECORD +14 -0
- {cdasws-1.8.11.dist-info → cdasws-1.8.13.dist-info}/licenses/LICENSE +1 -1
- cdasws-1.8.11.dist-info/RECORD +0 -13
- {cdasws-1.8.11.dist-info → cdasws-1.8.13.dist-info}/WHEEL +0 -0
- {cdasws-1.8.11.dist-info → cdasws-1.8.13.dist-info}/top_level.txt +0 -0
cdasws/__main__.py
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
#
|
|
25
25
|
# NOSA HEADER END
|
|
26
26
|
#
|
|
27
|
-
# Copyright (c) 2018-
|
|
27
|
+
# Copyright (c) 2018-2026 United States Government as represented by
|
|
28
28
|
# the National Aeronautics and Space Administration. No copyright is
|
|
29
29
|
# claimed in the United States under Title 17, U.S.Code. All Other
|
|
30
30
|
# Rights Reserved.
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
Example Coordinate Data Analysis System (CDAS) web service client.
|
|
35
35
|
Includes example calls to most of the web services.
|
|
36
36
|
|
|
37
|
-
Copyright © 2018-
|
|
37
|
+
Copyright © 2018-2026 United States Government as represented by the
|
|
38
38
|
National Aeronautics and Space Administration. No copyright is claimed in
|
|
39
39
|
the United States under Title 17, U.S.Code. All Other Rights Reserved.
|
|
40
40
|
"""
|
|
@@ -48,10 +48,11 @@ import logging.config
|
|
|
48
48
|
from typing import List
|
|
49
49
|
import urllib3
|
|
50
50
|
#import matplotlib.pyplot as plt
|
|
51
|
-
from cdasws import CdasWs
|
|
51
|
+
from cdasws.cdasws import CdasWs
|
|
52
52
|
from cdasws.timeinterval import TimeInterval
|
|
53
53
|
from cdasws.datarequest import GraphOptions, ImageFormat, Overplot, TextFormat
|
|
54
54
|
from cdasws.datarepresentation import DataRepresentation
|
|
55
|
+
from cdasws.doi import get_doi_landing_page_url
|
|
55
56
|
|
|
56
57
|
|
|
57
58
|
logging.basicConfig()
|
|
@@ -147,7 +148,7 @@ def example(
|
|
|
147
148
|
|
|
148
149
|
cdas = CdasWs(endpoint=endpoint, ca_certs=ca_certs,
|
|
149
150
|
disable_ssl_certificate_validation=
|
|
150
|
-
disable_ssl_certificate_validation,
|
|
151
|
+
disable_ssl_certificate_validation,
|
|
151
152
|
disable_cache = disable_cache, user_agent='Example')
|
|
152
153
|
|
|
153
154
|
print(cdas.get_observatory_groups(
|
|
@@ -166,7 +167,7 @@ def example(
|
|
|
166
167
|
#print(' ', json.dumps(dataset, indent=4))
|
|
167
168
|
|
|
168
169
|
print('DOI landing page:',
|
|
169
|
-
|
|
170
|
+
get_doi_landing_page_url('10.48322/e0dc-0h53'))
|
|
170
171
|
|
|
171
172
|
print('citation = ' + cdas.get_citation('10.48322/541v-1f57'))
|
|
172
173
|
|