pikobs 2.0.6__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.
Files changed (40) hide show
  1. pikobs-2.0.6/MANIFEST.in +2 -0
  2. pikobs-2.0.6/PKG-INFO +78 -0
  3. pikobs-2.0.6/README.md +67 -0
  4. pikobs-2.0.6/VERSION +1 -0
  5. pikobs-2.0.6/pikobs/__init__.py +8 -0
  6. pikobs-2.0.6/pikobs/cthinning/__init__.py +1 -0
  7. pikobs-2.0.6/pikobs/cthinning/cthinning.py +1082 -0
  8. pikobs-2.0.6/pikobs/evaluation/__init__.py +6 -0
  9. pikobs-2.0.6/pikobs/evaluation/radvelso_evaluation.py +992 -0
  10. pikobs-2.0.6/pikobs/evaluation/radvelso_evaluation_sqlite_canusa.py +793 -0
  11. pikobs-2.0.6/pikobs/evaluation/radvelso_evaluation_sqlite_plot_canusa.py +1021 -0
  12. pikobs-2.0.6/pikobs/evaluation/tet.py +15 -0
  13. pikobs-2.0.6/pikobs/fill_ray/__init__.py +1 -0
  14. pikobs-2.0.6/pikobs/fill_ray/fill_ray.py +89 -0
  15. pikobs-2.0.6/pikobs/graphics/__init__.py +1 -0
  16. pikobs-2.0.6/pikobs/graphics/plot_ppi_test.py +117 -0
  17. pikobs-2.0.6/pikobs/graphics/sqlite_to_plot_elevation_data_time.py +385 -0
  18. pikobs-2.0.6/pikobs/qcavg/__init__.py +1 -0
  19. pikobs-2.0.6/pikobs/qcavg/qcavg.py +2330 -0
  20. pikobs-2.0.6/pikobs/qcavg/qcavgobsdb.py +2307 -0
  21. pikobs-2.0.6/pikobs/qcavgobsdb/__init__.py +1 -0
  22. pikobs-2.0.6/pikobs/qcavgobsdb/qcavgobsdb.py +3033 -0
  23. pikobs-2.0.6/pikobs/schema/schema +37 -0
  24. pikobs-2.0.6/pikobs/schema/schema2 +36 -0
  25. pikobs-2.0.6/pikobs/schema/schema_statistics +36 -0
  26. pikobs-2.0.6/pikobs/unravel/__init__.py +22 -0
  27. pikobs-2.0.6/pikobs/unravel/continuity.py +1065 -0
  28. pikobs-2.0.6/pikobs/unravel/core.py +291 -0
  29. pikobs-2.0.6/pikobs/unravel/dealias.py +638 -0
  30. pikobs-2.0.6/pikobs/unravel/debug.py +175 -0
  31. pikobs-2.0.6/pikobs/unravel/filtering.py +152 -0
  32. pikobs-2.0.6/pikobs/unravel/find_reference.py +119 -0
  33. pikobs-2.0.6/pikobs/unravel/initialisation.py +254 -0
  34. pikobs-2.0.6/pikobs.egg-info/PKG-INFO +78 -0
  35. pikobs-2.0.6/pikobs.egg-info/SOURCES.txt +38 -0
  36. pikobs-2.0.6/pikobs.egg-info/dependency_links.txt +1 -0
  37. pikobs-2.0.6/pikobs.egg-info/requires.txt +10 -0
  38. pikobs-2.0.6/pikobs.egg-info/top_level.txt +1 -0
  39. pikobs-2.0.6/setup.cfg +4 -0
  40. pikobs-2.0.6/setup.py +27 -0
@@ -0,0 +1,2 @@
1
+ include VERSION
2
+ include pikobs/schema/*
pikobs-2.0.6/PKG-INFO ADDED
@@ -0,0 +1,78 @@
1
+ Metadata-Version: 2.1
2
+ Name: pikobs
3
+ Version: 2.0.6
4
+ Summary: radvelso's tools for superobs
5
+ Home-page: https://gitlab.science.gc.ca/dlo001/pikobs
6
+ Author: David Lobon
7
+ Author-email: dhlobon@gmail.com
8
+ License: GPL-3.0-or-later
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+
12
+ ## Installation
13
+ ~~~bash
14
+ git clone https://gitlab.science.gc.ca/dlo001/radvelso.git
15
+ ~~~
16
+
17
+ ## Summary
18
+
19
+ Radvelso is a utility designed to launch computations of average volume scans, perform dealiasing on radar data, and potentially run these processes in parallel. It provides the ability to process radar data and generate average SQLite files for MIDAS feeding.
20
+
21
+ ## Parameters and Options
22
+
23
+ ### Required Parameters
24
+
25
+ - `assim_T0`: Datetime object - Central time of the assimilation window.
26
+ - `assim_window_width`: Float - Width of the assimilation window in hours.
27
+ - `desired_radar_list`: List - List of radars to be processed.
28
+ - `infile_list`: List - List of input files to be superobbed.
29
+ - `pathout`: Str - Output directory to store the average SQLite files.
30
+ - `outfile_struc`: Str - Output file name structure; will be passed to strftime.
31
+ - `ops_run_name`: Str - Operational run name.
32
+ - `n_rays`: Int - Number of rays.
33
+ - `delta_range`: Float - Delta range of the boxes.
34
+ - `n_cpus`: Int - Number of CPUs for parallel execution. If `n_cpus=1`, jobs are launched sequentially, and Dask is not invoked.
35
+ - `obs_percentage`: Float - Percentage of observations within the box to be averaged.
36
+ - `obs_nyquist`: Float - Maximum Nyquist rate to process AVG+dealiases.
37
+ - `model_outputs_for_dealiasing`: Str - Path containing the fst files with the model winds. Setting this path will trigger dealiasing.
38
+ - `model_files_search_pattern`: Str - Search pattern.
39
+ - `mode_cluster`: Bool - Flag indicating calculation within a cluster.
40
+ - `mode_qsub`: Bool - Flag indicating calculation with qsub.
41
+
42
+ ### Optional Parameters
43
+
44
+ - `thinning`: Str - A description of the thinning process.
45
+ - `outfile_struc_thinning`: Str - The structure of the output file name for thinning, which will be passed to strftime.
46
+ - `delta_time_thinning_min`: Float - The time interval for thinning in minutes.
47
+ - `delta_distance_neighbours_m`: Float - The delta distance for neighbors in meters.
48
+ - `delta_height_vertical_m`: Float - The delta of height in the vertical in meters.
49
+ - `delta_distance_couple_m`: Float - The delta distance for coupling in meters.
50
+ - `joinsqlitefiles`: Str - A description of joining SQLite files.
51
+
52
+ ## Unit Testing for Validating Average and Thinning Coding Changes
53
+
54
+ This project aims to perform unit tests to validate changes in the code related to average and thinning coding. Before running the tests, make sure to download the necessary data using the `download_test.sh` script.
55
+
56
+ ### Data Download
57
+
58
+ To obtain the required data, execute the following command in your terminal:
59
+
60
+ ```bash
61
+ ./download_test.sh
62
+ ```
63
+ To run the unit tests, use the following commands:
64
+
65
+ ```bash
66
+ python unittest_superobs.py TestMethods.test_qcavgobsdb_data
67
+ python unittest_superobs.py TestMethods.test_thinning_data
68
+ ```
69
+
70
+ # Requirements
71
+
72
+ - numpy = 1.21.5
73
+ - dask = 2022.9.1
74
+ - domutils = 2.1.0
75
+ - xarray (importado como xr) = 2022.11.0
76
+ - joblib = 1.3.1
77
+ - domcmc = 2.1.1
78
+ - dask.distributed.Client = 2022.7.0
pikobs-2.0.6/README.md ADDED
@@ -0,0 +1,67 @@
1
+ ## Installation
2
+ ~~~bash
3
+ git clone https://gitlab.science.gc.ca/dlo001/radvelso.git
4
+ ~~~
5
+
6
+ ## Summary
7
+
8
+ Radvelso is a utility designed to launch computations of average volume scans, perform dealiasing on radar data, and potentially run these processes in parallel. It provides the ability to process radar data and generate average SQLite files for MIDAS feeding.
9
+
10
+ ## Parameters and Options
11
+
12
+ ### Required Parameters
13
+
14
+ - `assim_T0`: Datetime object - Central time of the assimilation window.
15
+ - `assim_window_width`: Float - Width of the assimilation window in hours.
16
+ - `desired_radar_list`: List - List of radars to be processed.
17
+ - `infile_list`: List - List of input files to be superobbed.
18
+ - `pathout`: Str - Output directory to store the average SQLite files.
19
+ - `outfile_struc`: Str - Output file name structure; will be passed to strftime.
20
+ - `ops_run_name`: Str - Operational run name.
21
+ - `n_rays`: Int - Number of rays.
22
+ - `delta_range`: Float - Delta range of the boxes.
23
+ - `n_cpus`: Int - Number of CPUs for parallel execution. If `n_cpus=1`, jobs are launched sequentially, and Dask is not invoked.
24
+ - `obs_percentage`: Float - Percentage of observations within the box to be averaged.
25
+ - `obs_nyquist`: Float - Maximum Nyquist rate to process AVG+dealiases.
26
+ - `model_outputs_for_dealiasing`: Str - Path containing the fst files with the model winds. Setting this path will trigger dealiasing.
27
+ - `model_files_search_pattern`: Str - Search pattern.
28
+ - `mode_cluster`: Bool - Flag indicating calculation within a cluster.
29
+ - `mode_qsub`: Bool - Flag indicating calculation with qsub.
30
+
31
+ ### Optional Parameters
32
+
33
+ - `thinning`: Str - A description of the thinning process.
34
+ - `outfile_struc_thinning`: Str - The structure of the output file name for thinning, which will be passed to strftime.
35
+ - `delta_time_thinning_min`: Float - The time interval for thinning in minutes.
36
+ - `delta_distance_neighbours_m`: Float - The delta distance for neighbors in meters.
37
+ - `delta_height_vertical_m`: Float - The delta of height in the vertical in meters.
38
+ - `delta_distance_couple_m`: Float - The delta distance for coupling in meters.
39
+ - `joinsqlitefiles`: Str - A description of joining SQLite files.
40
+
41
+ ## Unit Testing for Validating Average and Thinning Coding Changes
42
+
43
+ This project aims to perform unit tests to validate changes in the code related to average and thinning coding. Before running the tests, make sure to download the necessary data using the `download_test.sh` script.
44
+
45
+ ### Data Download
46
+
47
+ To obtain the required data, execute the following command in your terminal:
48
+
49
+ ```bash
50
+ ./download_test.sh
51
+ ```
52
+ To run the unit tests, use the following commands:
53
+
54
+ ```bash
55
+ python unittest_superobs.py TestMethods.test_qcavgobsdb_data
56
+ python unittest_superobs.py TestMethods.test_thinning_data
57
+ ```
58
+
59
+ # Requirements
60
+
61
+ - numpy = 1.21.5
62
+ - dask = 2022.9.1
63
+ - domutils = 2.1.0
64
+ - xarray (importado como xr) = 2022.11.0
65
+ - joblib = 1.3.1
66
+ - domcmc = 2.1.1
67
+ - dask.distributed.Client = 2022.7.0
pikobs-2.0.6/VERSION ADDED
@@ -0,0 +1 @@
1
+ 2.00.6
@@ -0,0 +1,8 @@
1
+ from .fill_ray import fill_ray_dict
2
+ from .qcavg import find_schema
3
+ from .evaluation import *
4
+ from .cthinning import *
5
+ from .qcavg import *
6
+ from .qcavgobsdb import *
7
+ from .unravel import *
8
+ from .fill_ray import *
@@ -0,0 +1 @@
1
+ from .cthinning import *