cdasws 1.8.6__py3-none-any.whl → 1.8.8__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 CHANGED
@@ -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
 
cdasws/__main__.py CHANGED
@@ -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'],
cdasws/datarequest.py CHANGED
@@ -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
@@ -36,11 +36,12 @@ and services of
36
36
  NASA's [Coordinated Data Analysis System](https://cdaweb.gsfc.nasa.gov/)
37
37
  (CDAS). This library implements the client side of the
38
38
  [CDAS RESTful web services](https://cdaweb.gsfc.nasa.gov/WebServices/REST/)
39
- and can return data in the
40
- [SpacePy data model](https://spacepy.github.io/datamodel.html) or an
41
- [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html)
42
- with all the original
43
- [ISTP/SPDF metadata](https://spdf.gsfc.nasa.gov/sp_use_of_cdf.html).
39
+ and can return data in a
40
+ [SpacePy datamodel](https://spacepy.github.io/datamodel.html),
41
+ [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html), or
42
+ [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html)
43
+ with all source and
44
+ [ISTP/SPDF](https://spdf.gsfc.nasa.gov/sp_use_of_cdf.html) metadata.
44
45
  Frequently asked questions concerning this library are at
45
46
  [FAQ](https://cdaweb.gsfc.nasa.gov/WebServices/REST/py/FAQ.html).
46
47
  For more general details about the CDAS web services, see
@@ -57,9 +58,9 @@ To run the included example, do the following
57
58
  Also, the following [Jupyter notebooks](https://jupyter.org/) demonstrate
58
59
  different features of the library:
59
60
 
60
- 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).
61
- 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).
62
- 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).
61
+ 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).
62
+ 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).
63
+ 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).
63
64
  ---
64
65
 
65
66
  And at the bottom of each
@@ -83,7 +84,7 @@ dependencies are required:
83
84
  1. To have get_data return the data in the SpacePy data model.
84
85
  * [SpacePy](https://spacepy.github.io/). Refer to the SpacePy
85
86
  documentation for the details of SpacePy's dependencies.
86
- 2. To have get_data return the data in an xarray dataset.
87
+ 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).
87
88
  * [cdflib](https://pypi.org/project/cdflib/).
88
89
  * [xarray](https://pypi.org/project/xarray/).
89
90
 
@@ -0,0 +1,13 @@
1
+ cdasws/__init__.py,sha256=hO4bmIccX4j4TTLRAkSFZMozOvOYNzfBb2KS5ZtGRu0,91733
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=ajWPkjBnUppFRXMLQiF5L1L3RYYjRqbUGThXIi9YKg8,7815
7
+ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ tests/test_cdasws.py,sha256=DsKesU19_9zUIO1a7oyWWtywBGN7gjdQHFLMGUZ4X8c,24395
9
+ cdasws-1.8.8.dist-info/LICENSE,sha256=og42scUY42lPLGBg0wHt6JtrbeInVEr5xojyrguPqrQ,12583
10
+ cdasws-1.8.8.dist-info/METADATA,sha256=8MJn1Mx7wm-7HHT6EWjzbY8n1J32rPdelpJzPQYe1uw,6211
11
+ cdasws-1.8.8.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
12
+ cdasws-1.8.8.dist-info/top_level.txt,sha256=GyIvHk5F6ysnTdDfnQsjZbTBt_EYrKyC0oeiIt9l-AE,7
13
+ cdasws-1.8.8.dist-info/RECORD,,
@@ -1,13 +0,0 @@
1
- cdasws/__init__.py,sha256=SsOnXEimRVjI_QkdaJWjuJ8EogUmbcksZvegWFtdN8w,91661
2
- cdasws/__main__.py,sha256=odblrsfHMXcovTQQ50xdYM3ubxOH6IMaiurjUDWsOS0,12552
3
- cdasws/cdasws.py,sha256=755mLWlMFXknNP3f8g_W9An6niAmksqcb1NdgiAybj0,29552
4
- cdasws/datarepresentation.py,sha256=kKgAKCA4uzGoBQ8r8jbXstBg8SCg_EQtsoGhO8kIpco,2164
5
- cdasws/datarequest.py,sha256=K7krxmi-u7uOLMm2p7NFSCPI8vpuHb4CyadZdkWvMQU,29076
6
- cdasws/timeinterval.py,sha256=ajWPkjBnUppFRXMLQiF5L1L3RYYjRqbUGThXIi9YKg8,7815
7
- tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- tests/test_cdasws.py,sha256=DsKesU19_9zUIO1a7oyWWtywBGN7gjdQHFLMGUZ4X8c,24395
9
- cdasws-1.8.6.dist-info/LICENSE,sha256=og42scUY42lPLGBg0wHt6JtrbeInVEr5xojyrguPqrQ,12583
10
- cdasws-1.8.6.dist-info/METADATA,sha256=Du2M5F9S86No1oDLQBCn9Sgnzfl-kr46nHE5TQvbw3E,5733
11
- cdasws-1.8.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
12
- cdasws-1.8.6.dist-info/top_level.txt,sha256=GyIvHk5F6ysnTdDfnQsjZbTBt_EYrKyC0oeiIt9l-AE,7
13
- cdasws-1.8.6.dist-info/RECORD,,
File without changes