pydartdiags 0.0.3a0__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.
- {pydartdiags-0.0.3a0.dist-info → pydartdiags-0.0.3b0.dist-info}/METADATA +22 -20
- {pydartdiags-0.0.3a0.dist-info → pydartdiags-0.0.3b0.dist-info}/RECORD +4 -4
- {pydartdiags-0.0.3a0.dist-info → pydartdiags-0.0.3b0.dist-info}/WHEEL +0 -0
- {pydartdiags-0.0.3a0.dist-info → pydartdiags-0.0.3b0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pydartdiags
|
|
3
|
-
Version: 0.0.
|
|
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
|
-
#
|
|
18
|
+
# pyDARTdiags
|
|
19
19
|
|
|
20
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
31
|
-
import
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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
|

|
|
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 =
|
|
378
|
-
df_profile, figrmse, figbias =
|
|
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
|

|
|
@@ -5,7 +5,7 @@ pydartdiags/obs_sequence/obs_sequence.py,sha256=dDGPfYxqKH9elP-Ey7QmmH3t3J7VqScd
|
|
|
5
5
|
pydartdiags/plots/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
pydartdiags/plots/plots.py,sha256=m5Y-wTxl3CW3l2VGGEuBgrQVyyrFNKOXrVCmD2XxiuQ,6600
|
|
7
7
|
pydartdiags/plots/tests/test_rank_histogram.py,sha256=qfws9oX6Sj0BwO3aFUa74smeHfHxzSR3-TloT4C8D_4,495
|
|
8
|
-
pydartdiags-0.0.
|
|
9
|
-
pydartdiags-0.0.
|
|
10
|
-
pydartdiags-0.0.
|
|
11
|
-
pydartdiags-0.0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|