cdasws 1.8.6__tar.gz → 1.8.8__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdasws
3
- Version: 1.8.6
3
+ Version: 1.8.8
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
@@ -14,11 +14,12 @@ Description:
14
14
  NASA's [Coordinated Data Analysis System](https://cdaweb.gsfc.nasa.gov/)
15
15
  (CDAS). This library implements the client side of the
16
16
  [CDAS RESTful web services](https://cdaweb.gsfc.nasa.gov/WebServices/REST/)
17
- and can return data in the
18
- [SpacePy data model](https://spacepy.github.io/datamodel.html) or an
19
- [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html)
20
- with all the original
21
- [ISTP/SPDF metadata](https://spdf.gsfc.nasa.gov/sp_use_of_cdf.html).
17
+ and can return data in a
18
+ [SpacePy datamodel](https://spacepy.github.io/datamodel.html),
19
+ [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html), or
20
+ [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html)
21
+ with all source and
22
+ [ISTP/SPDF](https://spdf.gsfc.nasa.gov/sp_use_of_cdf.html) metadata.
22
23
  Frequently asked questions concerning this library are at
23
24
  [FAQ](https://cdaweb.gsfc.nasa.gov/WebServices/REST/py/FAQ.html).
24
25
  For more general details about the CDAS web services, see
@@ -35,9 +36,9 @@ Description:
35
36
  Also, the following [Jupyter notebooks](https://jupyter.org/) demonstrate
36
37
  different features of the library:
37
38
 
38
- 1. [Basic Example](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExample.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExample.ipynb)) demonstrating use of library with results returned in [SpacePy data model](https://spacepy.github.io/datamodel.html). [Launch on Binder](https://mybinder.org/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsExample.ipynb).
39
- 2. [Basic Example](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExampleXarray.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExampleXarray.ipynb)) demonstrating use of library with results returned in an [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html). [Launch on Binder](https://mybinder.org/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsExampleXarray.ipynb).
40
- 3. [Magnetic Field Line Conjunction Example](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.html) ([ipynb file](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.ipynb)) with related data retrieval/plotting using [cdasws](https://pypi.org/project/cdasws/). [Launch on Binder](https://mybinder.org/v2/gh/berniegsfc/sscws-notebooks/main?labpath=SscWsConjunctionExample.ipynb).
39
+ 1. [Data Retrieval](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsDataRetrieval.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsDataRetrieval.ipynb)) demonstrating use of library with results returned in [SpacePy data model](https://spacepy.github.io/datamodel.html), [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html), and [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html). [Launch on Binder](https://binder.opensci.2i2c.cloud/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsDataRetrieval.ipynb).
40
+ 2. [CDAWeb Binning Example](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsBinningExample.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsBinningExample.ipynb)) demonstrating use [CDAWeb binning](https://cdaweb.gsfc.nasa.gov/CDAWeb_Binning_readme.html). [Launch on Binder](https://binder.opensci.2i2c.cloud/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsBinningExample.ipynb).
41
+ 3. [Magnetic Field Line Conjunction Example](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.html) ([ipynb file](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.ipynb)) with related data retrieval/plotting using [cdasws](https://pypi.org/project/cdasws/). [Launch on Binder](https://binder.opensci.2i2c.cloud/v2/gh/berniegsfc/sscws-notebooks/main?labpath=SscWsConjunctionExample.ipynb).
41
42
  ---
42
43
 
43
44
  And at the bottom of each
@@ -61,7 +62,7 @@ Description:
61
62
  1. To have get_data return the data in the SpacePy data model.
62
63
  * [SpacePy](https://spacepy.github.io/). Refer to the SpacePy
63
64
  documentation for the details of SpacePy's dependencies.
64
- 2. To have get_data return the data in an xarray dataset.
65
+ 2. To have get_data return the data in an [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html) or [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html).
65
66
  * [cdflib](https://pypi.org/project/cdflib/).
66
67
  * [xarray](https://pypi.org/project/xarray/).
67
68
 
@@ -6,11 +6,12 @@ and services of
6
6
  NASA's [Coordinated Data Analysis System](https://cdaweb.gsfc.nasa.gov/)
7
7
  (CDAS). This library implements the client side of the
8
8
  [CDAS RESTful web services](https://cdaweb.gsfc.nasa.gov/WebServices/REST/)
9
- and can return data in the
10
- [SpacePy data model](https://spacepy.github.io/datamodel.html) or an
11
- [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html)
12
- with all the original
13
- [ISTP/SPDF metadata](https://spdf.gsfc.nasa.gov/sp_use_of_cdf.html).
9
+ and can return data in a
10
+ [SpacePy datamodel](https://spacepy.github.io/datamodel.html),
11
+ [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html), or
12
+ [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html)
13
+ with all source and
14
+ [ISTP/SPDF](https://spdf.gsfc.nasa.gov/sp_use_of_cdf.html) metadata.
14
15
  Frequently asked questions concerning this library are at
15
16
  [FAQ](https://cdaweb.gsfc.nasa.gov/WebServices/REST/py/FAQ.html).
16
17
  For more general details about the CDAS web services, see
@@ -27,9 +28,9 @@ To run the included example, do the following
27
28
  Also, the following [Jupyter notebooks](https://jupyter.org/) demonstrate
28
29
  different features of the library:
29
30
 
30
- 1. [Basic Example](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExample.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExample.ipynb)) demonstrating use of library with results returned in [SpacePy data model](https://spacepy.github.io/datamodel.html). [Launch on Binder](https://mybinder.org/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsExample.ipynb).
31
- 2. [Basic Example](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExampleXarray.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExampleXarray.ipynb)) demonstrating use of library with results returned in an [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html). [Launch on Binder](https://mybinder.org/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsExampleXarray.ipynb).
32
- 3. [Magnetic Field Line Conjunction Example](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.html) ([ipynb file](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.ipynb)) with related data retrieval/plotting using [cdasws](https://pypi.org/project/cdasws/). [Launch on Binder](https://mybinder.org/v2/gh/berniegsfc/sscws-notebooks/main?labpath=SscWsConjunctionExample.ipynb).
31
+ 1. [Data Retrieval](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsDataRetrieval.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsDataRetrieval.ipynb)) demonstrating use of library with results returned in [SpacePy data model](https://spacepy.github.io/datamodel.html), [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html), and [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html). [Launch on Binder](https://binder.opensci.2i2c.cloud/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsDataRetrieval.ipynb).
32
+ 2. [CDAWeb Binning Example](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsBinningExample.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsBinningExample.ipynb)) demonstrating use [CDAWeb binning](https://cdaweb.gsfc.nasa.gov/CDAWeb_Binning_readme.html). [Launch on Binder](https://binder.opensci.2i2c.cloud/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsBinningExample.ipynb).
33
+ 3. [Magnetic Field Line Conjunction Example](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.html) ([ipynb file](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.ipynb)) with related data retrieval/plotting using [cdasws](https://pypi.org/project/cdasws/). [Launch on Binder](https://binder.opensci.2i2c.cloud/v2/gh/berniegsfc/sscws-notebooks/main?labpath=SscWsConjunctionExample.ipynb).
33
34
  ---
34
35
 
35
36
  And at the bottom of each
@@ -53,7 +54,7 @@ dependencies are required:
53
54
  1. To have get_data return the data in the SpacePy data model.
54
55
  * [SpacePy](https://spacepy.github.io/). Refer to the SpacePy
55
56
  documentation for the details of SpacePy's dependencies.
56
- 2. To have get_data return the data in an xarray dataset.
57
+ 2. To have get_data return the data in an [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html) or [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html).
57
58
  * [cdflib](https://pypi.org/project/cdflib/).
58
59
  * [xarray](https://pypi.org/project/xarray/).
59
60
 
@@ -137,7 +137,7 @@ except ImportError:
137
137
  CDF_XARRAY_AVAILABLE = False
138
138
 
139
139
 
140
- __version__ = "1.8.6"
140
+ __version__ = "1.8.8"
141
141
 
142
142
 
143
143
  #
@@ -1333,7 +1333,8 @@ class CdasWs:
1333
1333
  CdasWs.get_data
1334
1334
  """
1335
1335
 
1336
- self.logger.debug('data_request = %s', data_request.json())
1336
+ #self.logger.debug('data_request = %s', data_request.json())
1337
+ self.logger.debug('data_request = %s', data_request.xml_str())
1337
1338
 
1338
1339
  url = self._endpoint + 'datasets'
1339
1340
 
@@ -202,7 +202,7 @@ def example(
202
202
  # 'interpolateMissingValues': True,
203
203
  # 'sigmaMultiplier': 4,
204
204
  # 'overrideDefaultBinning': True
205
- #}
205
+ #},
206
206
  dataRepresentation=DataRepresentation.SPACEPY
207
207
  )
208
208
  # cdas.get_data('10.21978/P8PG8V', ['BT'],
@@ -310,7 +310,7 @@ class DataRequest(metaclass=ABCMeta): # pylint: disable=too-few-public-methods
310
310
  builder.end('ImageFormat')
311
311
  if 'BinData' in data_request:
312
312
  bin_data = data_request['BinData']
313
- builder.start('BinData')
313
+ builder.start('BinData', {})
314
314
  if 'Interval' in bin_data:
315
315
  builder.start('Interval', {})
316
316
  builder.data(str(bin_data['Interval']))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdasws
3
- Version: 1.8.6
3
+ Version: 1.8.8
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
@@ -14,11 +14,12 @@ Description:
14
14
  NASA's [Coordinated Data Analysis System](https://cdaweb.gsfc.nasa.gov/)
15
15
  (CDAS). This library implements the client side of the
16
16
  [CDAS RESTful web services](https://cdaweb.gsfc.nasa.gov/WebServices/REST/)
17
- and can return data in the
18
- [SpacePy data model](https://spacepy.github.io/datamodel.html) or an
19
- [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html)
20
- with all the original
21
- [ISTP/SPDF metadata](https://spdf.gsfc.nasa.gov/sp_use_of_cdf.html).
17
+ and can return data in a
18
+ [SpacePy datamodel](https://spacepy.github.io/datamodel.html),
19
+ [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html), or
20
+ [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html)
21
+ with all source and
22
+ [ISTP/SPDF](https://spdf.gsfc.nasa.gov/sp_use_of_cdf.html) metadata.
22
23
  Frequently asked questions concerning this library are at
23
24
  [FAQ](https://cdaweb.gsfc.nasa.gov/WebServices/REST/py/FAQ.html).
24
25
  For more general details about the CDAS web services, see
@@ -35,9 +36,9 @@ Description:
35
36
  Also, the following [Jupyter notebooks](https://jupyter.org/) demonstrate
36
37
  different features of the library:
37
38
 
38
- 1. [Basic Example](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExample.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExample.ipynb)) demonstrating use of library with results returned in [SpacePy data model](https://spacepy.github.io/datamodel.html). [Launch on Binder](https://mybinder.org/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsExample.ipynb).
39
- 2. [Basic Example](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExampleXarray.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsExampleXarray.ipynb)) demonstrating use of library with results returned in an [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html). [Launch on Binder](https://mybinder.org/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsExampleXarray.ipynb).
40
- 3. [Magnetic Field Line Conjunction Example](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.html) ([ipynb file](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.ipynb)) with related data retrieval/plotting using [cdasws](https://pypi.org/project/cdasws/). [Launch on Binder](https://mybinder.org/v2/gh/berniegsfc/sscws-notebooks/main?labpath=SscWsConjunctionExample.ipynb).
39
+ 1. [Data Retrieval](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsDataRetrieval.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsDataRetrieval.ipynb)) demonstrating use of library with results returned in [SpacePy data model](https://spacepy.github.io/datamodel.html), [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html), and [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html). [Launch on Binder](https://binder.opensci.2i2c.cloud/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsDataRetrieval.ipynb).
40
+ 2. [CDAWeb Binning Example](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsBinningExample.html) ([ipynb file](https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsBinningExample.ipynb)) demonstrating use [CDAWeb binning](https://cdaweb.gsfc.nasa.gov/CDAWeb_Binning_readme.html). [Launch on Binder](https://binder.opensci.2i2c.cloud/v2/gh/berniegsfc/cdasws-notebooks/main?labpath=CdasWsBinningExample.ipynb).
41
+ 3. [Magnetic Field Line Conjunction Example](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.html) ([ipynb file](https://sscweb.gsfc.nasa.gov/WebServices/REST/jupyter/SscWsConjunctionExample.ipynb)) with related data retrieval/plotting using [cdasws](https://pypi.org/project/cdasws/). [Launch on Binder](https://binder.opensci.2i2c.cloud/v2/gh/berniegsfc/sscws-notebooks/main?labpath=SscWsConjunctionExample.ipynb).
41
42
  ---
42
43
 
43
44
  And at the bottom of each
@@ -61,7 +62,7 @@ Description:
61
62
  1. To have get_data return the data in the SpacePy data model.
62
63
  * [SpacePy](https://spacepy.github.io/). Refer to the SpacePy
63
64
  documentation for the details of SpacePy's dependencies.
64
- 2. To have get_data return the data in an xarray dataset.
65
+ 2. To have get_data return the data in an [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html) or [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html).
65
66
  * [cdflib](https://pypi.org/project/cdflib/).
66
67
  * [xarray](https://pypi.org/project/xarray/).
67
68
 
@@ -10,7 +10,7 @@ README = (HERE / "README.md").read_text()
10
10
  # This call to setup() does all the work
11
11
  setup(
12
12
  name="cdasws",
13
- version="1.8.6",
13
+ version="1.8.8",
14
14
  description="NASA's Coordinated Data Analysis System Web Service Client Library",
15
15
  long_description=README,
16
16
  long_description_content_type="text/markdown",
@@ -19,7 +19,7 @@ setup(
19
19
  author_email="NASA-SPDF-Support@nasa.onmicrosoft.com",
20
20
  license="NOSA",
21
21
  packages=["cdasws"],
22
- # python_requires=[">3.4"]
22
+ # python_requires=[">3.6"]
23
23
  # packages=find_packages(exclude=["tests"]),
24
24
  # packages=find_packages(),
25
25
  include_package_data=True,
File without changes
File without changes