cdasws 1.8.10__py3-none-any.whl → 1.8.12__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 +5 -2293
- cdasws/__main__.py +33 -10
- cdasws/cdasws.py +1833 -320
- cdasws/timeinterval.py +5 -5
- {cdasws-1.8.10.dist-info → cdasws-1.8.12.dist-info}/METADATA +40 -13
- cdasws-1.8.12.dist-info/RECORD +13 -0
- {cdasws-1.8.10.dist-info → cdasws-1.8.12.dist-info}/WHEEL +1 -1
- {cdasws-1.8.10.dist-info → cdasws-1.8.12.dist-info/licenses}/LICENSE +1 -1
- cdasws-1.8.10.dist-info/RECORD +0 -13
- {cdasws-1.8.10.dist-info → cdasws-1.8.12.dist-info}/top_level.txt +0 -0
cdasws/timeinterval.py
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
Package defining a class to represent the TimeInterval class from
|
|
36
36
|
<https://cdaweb.gsfc.nasa.gov/WebServices/REST/CDAS.xsd>.<br>
|
|
37
37
|
|
|
38
|
-
Copyright © 2018-
|
|
38
|
+
Copyright © 2018-2025 United States Government as represented by the
|
|
39
39
|
National Aeronautics and Space Administration. No copyright is claimed in
|
|
40
40
|
the United States under Title 17, U.S.Code. All Other Rights Reserved.
|
|
41
41
|
"""
|
|
@@ -252,13 +252,13 @@ class TimeInterval:
|
|
|
252
252
|
"""
|
|
253
253
|
try:
|
|
254
254
|
start_datetime = TimeInterval.get_datetime(start)
|
|
255
|
-
except ValueError:
|
|
256
|
-
raise ValueError('unrecognized start datetime value')
|
|
255
|
+
except ValueError as exc:
|
|
256
|
+
raise ValueError('unrecognized start datetime value') from exc
|
|
257
257
|
|
|
258
258
|
try:
|
|
259
259
|
end_datetime = TimeInterval.get_datetime(end)
|
|
260
|
-
except ValueError:
|
|
261
|
-
raise ValueError('unrecognized end datetime value')
|
|
260
|
+
except ValueError as exc:
|
|
261
|
+
raise ValueError('unrecognized end datetime value') from exc
|
|
262
262
|
|
|
263
263
|
return start_datetime, end_datetime
|
|
264
264
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: cdasws
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.12
|
|
4
4
|
Summary: NASA's Coordinated Data Analysis System Web Service Client Library
|
|
5
5
|
Home-page: https://cdaweb.gsfc.nasa.gov/WebServices/REST
|
|
6
6
|
Author: Bernie Harris
|
|
7
7
|
Author-email: NASA-SPDF-Support@nasa.onmicrosoft.com
|
|
8
8
|
License: NOSA
|
|
9
9
|
Keywords: heliophysics,coordinated data analysis,multi-mission,multi-instrument,space physics,spdf,cdaweb
|
|
10
|
-
Platform: UNKNOWN
|
|
11
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
11
|
Classifier: Environment :: Console
|
|
13
12
|
Classifier: Environment :: Web Environment
|
|
@@ -20,13 +19,28 @@ Classifier: Programming Language :: Python
|
|
|
20
19
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
21
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
21
|
Description-Content-Type: text/markdown
|
|
23
|
-
|
|
24
|
-
Requires-Dist:
|
|
25
|
-
Requires-Dist:
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: python-dateutil>=2.8.0
|
|
24
|
+
Requires-Dist: requests>=2.20
|
|
25
|
+
Requires-Dist: urllib3>=1.24.1
|
|
26
26
|
Provides-Extra: spdm
|
|
27
|
-
Requires-Dist: spacepy
|
|
27
|
+
Requires-Dist: spacepy>=0.5.0; extra == "spdm"
|
|
28
28
|
Provides-Extra: xarray
|
|
29
|
-
Requires-Dist: cdflib
|
|
29
|
+
Requires-Dist: cdflib>=0.4.4; extra == "xarray"
|
|
30
|
+
Provides-Extra: cache
|
|
31
|
+
Requires-Dist: requests-cache>=1.2.1; extra == "cache"
|
|
32
|
+
Dynamic: author
|
|
33
|
+
Dynamic: author-email
|
|
34
|
+
Dynamic: classifier
|
|
35
|
+
Dynamic: description
|
|
36
|
+
Dynamic: description-content-type
|
|
37
|
+
Dynamic: home-page
|
|
38
|
+
Dynamic: keywords
|
|
39
|
+
Dynamic: license
|
|
40
|
+
Dynamic: license-file
|
|
41
|
+
Dynamic: provides-extra
|
|
42
|
+
Dynamic: requires-dist
|
|
43
|
+
Dynamic: summary
|
|
30
44
|
|
|
31
45
|
|
|
32
46
|
## Synopsis
|
|
@@ -43,6 +57,8 @@ and can return data from any of
|
|
|
43
57
|
[pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html)
|
|
44
58
|
with all source and
|
|
45
59
|
[ISTP/SPDF](https://spdf.gsfc.nasa.gov/sp_use_of_cdf.html) metadata.
|
|
60
|
+
Note that this package is included in the [HelioCloud](https://heliocloud.org/)
|
|
61
|
+
base image, so there is no need to install it there.
|
|
46
62
|
Frequently asked questions concerning this library are at
|
|
47
63
|
[FAQ](https://cdaweb.gsfc.nasa.gov/WebServices/REST/py/FAQ.html).
|
|
48
64
|
For more general details about the CDAS web services, see
|
|
@@ -78,9 +94,13 @@ full ISTP/SPDF metadata).
|
|
|
78
94
|
|
|
79
95
|
## Dependencies
|
|
80
96
|
|
|
81
|
-
The only required dependencies are
|
|
82
|
-
|
|
83
|
-
|
|
97
|
+
The only required dependencies are the following:
|
|
98
|
+
|
|
99
|
+
1. [python-dateutil](https://pypi.org/project/python-dateutil/).
|
|
100
|
+
2. [requests](https://pypi.org/project/requests/).
|
|
101
|
+
|
|
102
|
+
If you call the get_data method then **one** of the following two sets
|
|
103
|
+
of additional dependencies are required:
|
|
84
104
|
|
|
85
105
|
1. To have get_data return the data in the SpacePy data model.
|
|
86
106
|
* [SpacePy](https://spacepy.github.io/). Refer to the SpacePy
|
|
@@ -89,6 +109,11 @@ dependencies are required:
|
|
|
89
109
|
* [cdflib](https://pypi.org/project/cdflib/).
|
|
90
110
|
* [xarray](https://pypi.org/project/xarray/).
|
|
91
111
|
|
|
112
|
+
If you want to take advantage of HTTP caching, then install the following:
|
|
113
|
+
|
|
114
|
+
1. [requests-cache](https://pypi.org/project/requests-cache/).
|
|
115
|
+
|
|
116
|
+
|
|
92
117
|
## Installation
|
|
93
118
|
|
|
94
119
|
As noted in the dependencies above, if you intend to call the get_data
|
|
@@ -107,6 +132,10 @@ Then, to install this package
|
|
|
107
132
|
|
|
108
133
|
$ pip install -U cdasws
|
|
109
134
|
|
|
135
|
+
or to include the optional cache package
|
|
136
|
+
|
|
137
|
+
$ pip install -U cdasws[cache]
|
|
138
|
+
|
|
110
139
|
|
|
111
140
|
## API Reference
|
|
112
141
|
|
|
@@ -133,5 +162,3 @@ Bernie Harris.
|
|
|
133
162
|
|
|
134
163
|
This code is licensed under the
|
|
135
164
|
[NASA Open Source Agreement](https://cdaweb.gsfc.nasa.gov/WebServices/NASA_Open_Source_Agreement_1.3.txt) (NOSA).
|
|
136
|
-
|
|
137
|
-
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
cdasws/__init__.py,sha256=_IYGnCuHvpHeTdiA4DLwqIm0HV6H2H_DK5l_1uA5hbQ,2588
|
|
2
|
+
cdasws/__main__.py,sha256=ABTe9FhZKTai2onoUTfN-0CBLSqzOEHw9N4yUKoqsaM,13473
|
|
3
|
+
cdasws/cdasws.py,sha256=wHyXD9CjLHUc8rc8zUASfLJkUCdVvc22zfzAJCZDIaU,91424
|
|
4
|
+
cdasws/datarepresentation.py,sha256=kKgAKCA4uzGoBQ8r8jbXstBg8SCg_EQtsoGhO8kIpco,2164
|
|
5
|
+
cdasws/datarequest.py,sha256=fQVroT8RXYhJLG7_y-HO3ABnJUQJjWGFPeLNrtwbWtk,29080
|
|
6
|
+
cdasws/timeinterval.py,sha256=UcKB-rFSk2eeaw0a29gOQQq7rNY0ab4Qwfz4iwJFelg,7839
|
|
7
|
+
cdasws-1.8.12.dist-info/licenses/LICENSE,sha256=9VDxMcDDn3_T-sDQTMPxmiPZBDkPIiTO4OzYK5olDmk,12589
|
|
8
|
+
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
tests/test_cdasws.py,sha256=DsKesU19_9zUIO1a7oyWWtywBGN7gjdQHFLMGUZ4X8c,24395
|
|
10
|
+
cdasws-1.8.12.dist-info/METADATA,sha256=NLFbgMvIG6lrB4ATvkbqCusN5SHdzDT66MA7AeubfH8,7059
|
|
11
|
+
cdasws-1.8.12.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
|
|
12
|
+
cdasws-1.8.12.dist-info/top_level.txt,sha256=GyIvHk5F6ysnTdDfnQsjZbTBt_EYrKyC0oeiIt9l-AE,7
|
|
13
|
+
cdasws-1.8.12.dist-info/RECORD,,
|
|
@@ -17,7 +17,7 @@ Government Agency Original Software Designation: GSC-14730-1
|
|
|
17
17
|
Government Agency Original Software Title: "Space Physics Data Facility Web Services"
|
|
18
18
|
User Registration Requested. Please Visit http://spdf.gsfc.nasa.gov/
|
|
19
19
|
Government Agency Point of Contact for Original Software:
|
|
20
|
-
|
|
20
|
+
NASA-SPDF-Support@nasa.onmicrosoft.com
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
1. DEFINITIONS
|
cdasws-1.8.10.dist-info/RECORD
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
cdasws/__init__.py,sha256=V059zR8IKv4_Nyj5fu0Oaq1x210mFMf70Ut8fx2zoZY,91734
|
|
2
|
-
cdasws/__main__.py,sha256=9-S-Zh4sRMtcJRg-YELX_HjN8Q74cZiekZ1MLF51bls,12553
|
|
3
|
-
cdasws/cdasws.py,sha256=755mLWlMFXknNP3f8g_W9An6niAmksqcb1NdgiAybj0,29552
|
|
4
|
-
cdasws/datarepresentation.py,sha256=kKgAKCA4uzGoBQ8r8jbXstBg8SCg_EQtsoGhO8kIpco,2164
|
|
5
|
-
cdasws/datarequest.py,sha256=fQVroT8RXYhJLG7_y-HO3ABnJUQJjWGFPeLNrtwbWtk,29080
|
|
6
|
-
cdasws/timeinterval.py,sha256=f9PnvdTsrG31AGvIKcwrTH8VDSoUMASJqoi4oY4Se5o,7807
|
|
7
|
-
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
tests/test_cdasws.py,sha256=DsKesU19_9zUIO1a7oyWWtywBGN7gjdQHFLMGUZ4X8c,24395
|
|
9
|
-
cdasws-1.8.10.dist-info/LICENSE,sha256=og42scUY42lPLGBg0wHt6JtrbeInVEr5xojyrguPqrQ,12583
|
|
10
|
-
cdasws-1.8.10.dist-info/METADATA,sha256=3HMbrWBbPvLh8BHbPBiDmeyzVoM9zTsVhuEyR9Pl9LQ,6288
|
|
11
|
-
cdasws-1.8.10.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
12
|
-
cdasws-1.8.10.dist-info/top_level.txt,sha256=GyIvHk5F6ysnTdDfnQsjZbTBt_EYrKyC0oeiIt9l-AE,7
|
|
13
|
-
cdasws-1.8.10.dist-info/RECORD,,
|
|
File without changes
|