pydartdiags 0.0.3__py3-none-any.whl → 0.0.3b0__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.

Potentially problematic release.


This version of pydartdiags might be problematic. Click here for more details.

File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pydartdiags
3
- Version: 0.0.3
3
+ Version: 0.0.3b0
4
4
  Summary: Observation Sequence Diagnostics for DART
5
5
  Project-URL: Homepage, https://github.com/NCAR/pyDARTdiags.git
6
6
  Project-URL: Issues, https://github.com/NCAR/pyDARTdiags/issues
@@ -15,30 +15,34 @@ Requires-Dist: pandas>=2.2.0
15
15
  Requires-Dist: plotly>=5.22.0
16
16
  Description-Content-Type: text/markdown
17
17
 
18
- # pyDARTdiag
18
+ # pyDARTdiags
19
19
 
20
- pyDARTdiag is a python library for obsevation space diagnostics for the Data Assimilation Research Testbed ([DART](https://github.com/NCAR/DART)).
20
+ pyDARTdiags is a python library for obsevation space diagnostics for the Data Assimilation Research Testbed ([DART](https://github.com/NCAR/DART)).
21
21
 
22
- pyDARTdiag is under initial development, so please use caution.
22
+ pyDARTdiags is under initial development, so please use caution.
23
23
  The MATLAB [observation space diagnostics](https://docs.dart.ucar.edu/en/latest/guide/matlab-observation-space.html) are available through [DART](https://github.com/NCAR/DART).
24
24
 
25
- * obs\_sequence to DataFrame
25
+
26
+ pyDARTdiags can be installed through pip. We recommend installing pydartdiags in a virtual enviroment:
27
+
28
+
29
+ ```
30
+ python3 -m venv dartdiags
31
+ source dartdiags/bin/activate
32
+ pip install pydartdiags
33
+ ```
26
34
 
27
35
  ## Example importing the obs\_sequence and plots modules
28
36
 
29
37
  ```python
30
- import sys
31
- import os
32
- sys.path.append(os.path.abspath("/Users/hkershaw/DART/Projects/Diagnostics/pyDART/src/obs_sequence"))
33
-
34
- import obs_sequence as dart_os
35
- import plots as dart_plots
38
+ from pydartdiags.obs_sequence import obs_sequence as obs_seq
39
+ from pydartdiags.plots import plots
36
40
  ```
37
41
 
38
42
  ## Examining the dataframe
39
43
 
40
44
  ```python
41
- obs_seq = dart_os.obs_sequence('obs_seq.final.ascii')
45
+ obs_seq = obs_seq.obs_sequence('obs_seq.final.ascii')
42
46
  obs_seq.df.head()
43
47
  ```
44
48
 
@@ -196,9 +200,10 @@ obs_seq.df.head()
196
200
  </div>
197
201
 
198
202
 
203
+ Find the numeber of assimilated (used) observations vs. possible observations by type
199
204
 
200
205
  ```python
201
- dart_os.possible_vs_used(obs_seq.df)
206
+ obs_seq.possible_vs_used(obs_seq.df)
202
207
  ```
203
208
 
204
209
  <table border="1" class="dataframe">
@@ -349,17 +354,14 @@ dart_os.possible_vs_used(obs_seq.df)
349
354
 
350
355
  ## Example plotting
351
356
 
352
-
353
-
354
357
  ### rank histogram
355
358
 
356
359
  * Select only observations that were assimliated (QC === 0).
357
360
  * plot the rank histogram
358
361
 
359
362
  ```python
360
-
361
- df_qc0 = dart_os.select_by_dart_qc(obs_seq.df, 0) # only qc 0
362
- df_profile, figrmse, figbias = dart_plots.plot_profile(df_qc0, plevels)
363
+ df_qc0 = obs_seq.select_by_dart_qc(obs_seq.df, 0)
364
+ plots.plot_rank_histogram(df_qc0)
363
365
  ```
364
366
  ![Rank Histogram](docs/images/rankhist.png)
365
367
 
@@ -374,8 +376,8 @@ df_profile, figrmse, figbias = dart_plots.plot_profile(df_qc0, plevels)
374
376
  hPalevels = [0.0, 100.0, 150.0, 200.0, 250.0, 300.0, 400.0, 500.0, 700, 850, 925, 1000]# float("inf")] # Pa?
375
377
  plevels = [i * 100 for i in hPalevels]
376
378
 
377
- df_qc0 = dart_os.select_by_dart_qc(obs_seq.df, 0) # only qc 0
378
- df_profile, figrmse, figbias = dart_plots.plot_profile(df_qc0, plevels)
379
+ df_qc0 = obs_seq.select_by_dart_qc(obs_seq.df, 0) # only qc 0
380
+ df_profile, figrmse, figbias = plots.plot_profile(df_qc0, plevels)
379
381
  ```
380
382
 
381
383
  ![RMSE Plot](docs/images/rmse.png)
@@ -1,10 +1,11 @@
1
+ pydartdiags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1
2
  pydartdiags/obs_sequence/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
3
  pydartdiags/obs_sequence/composite_types.yaml,sha256=PVLMU6x6KcVMCwPB-U65C_e0YQUemfqUhYMpf1DhFOY,917
3
4
  pydartdiags/obs_sequence/obs_sequence.py,sha256=dDGPfYxqKH9elP-Ey7QmmH3t3J7VqScdxJKA34nPddo,21716
4
5
  pydartdiags/plots/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
6
  pydartdiags/plots/plots.py,sha256=m5Y-wTxl3CW3l2VGGEuBgrQVyyrFNKOXrVCmD2XxiuQ,6600
6
7
  pydartdiags/plots/tests/test_rank_histogram.py,sha256=qfws9oX6Sj0BwO3aFUa74smeHfHxzSR3-TloT4C8D_4,495
7
- pydartdiags-0.0.3.dist-info/METADATA,sha256=piAspla7NIk0kMoSBOKJ2Afs8MeEOD_eS3dbasXIlUg,8991
8
- pydartdiags-0.0.3.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
9
- pydartdiags-0.0.3.dist-info/licenses/LICENSE,sha256=ROglds_Eg_ylXp-1MHmEawDqMw_UsCB4r9sk7z9PU9M,11377
10
- pydartdiags-0.0.3.dist-info/RECORD,,
8
+ pydartdiags-0.0.3b0.dist-info/METADATA,sha256=hEQMpTQ83fjvW7eL3dKIuLcNu4OC51jCN3d_a7Y72h0,9105
9
+ pydartdiags-0.0.3b0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
10
+ pydartdiags-0.0.3b0.dist-info/licenses/LICENSE,sha256=ROglds_Eg_ylXp-1MHmEawDqMw_UsCB4r9sk7z9PU9M,11377
11
+ pydartdiags-0.0.3b0.dist-info/RECORD,,