pyrocb 1.18.1__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.
Files changed (54) hide show
  1. pyrocb/__init__.py +14 -0
  2. pyrocb/_version.py +7 -0
  3. pyrocb/plugins/__init__.py +4 -0
  4. pyrocb/plugins/modules/__init__.py +4 -0
  5. pyrocb/plugins/modules/algorithms/__init__.py +4 -0
  6. pyrocb/plugins/modules/algorithms/diff_10um_11um.py +55 -0
  7. pyrocb/plugins/modules/algorithms/diff_10um_12um.py +55 -0
  8. pyrocb/plugins/modules/algorithms/diff_11um_12um.py +57 -0
  9. pyrocb/plugins/modules/algorithms/diff_11um_13um.py +55 -0
  10. pyrocb/plugins/modules/algorithms/diff_4um_11um.py +55 -0
  11. pyrocb/plugins/modules/algorithms/pyrocb.py +500 -0
  12. pyrocb/plugins/modules/algorithms/pyrocb_nucaps.py +52 -0
  13. pyrocb/plugins/modules/colormappers/__init__.py +4 -0
  14. pyrocb/plugins/modules/colormappers/current_fires.py +80 -0
  15. pyrocb/plugins/modules/colormappers/diff_10um_11um.py +96 -0
  16. pyrocb/plugins/modules/colormappers/diff_10um_12um.py +96 -0
  17. pyrocb/plugins/modules/colormappers/diff_11um_12um.py +94 -0
  18. pyrocb/plugins/modules/colormappers/diff_11um_13um.py +89 -0
  19. pyrocb/plugins/modules/colormappers/diff_4um_11um.py +90 -0
  20. pyrocb/plugins/modules/colormappers/intense_pyrocb.py +82 -0
  21. pyrocb/plugins/modules/colormappers/old_fires.py +81 -0
  22. pyrocb/plugins/modules/colormappers/pyrocb_11um.py +104 -0
  23. pyrocb/plugins/modules/colormappers/pyrocb_blue_vis.py +100 -0
  24. pyrocb/plugins/modules/colormappers/pyrocb_ir_gray.py +70 -0
  25. pyrocb/plugins/modules/colormappers/pyrocb_red_vis.py +100 -0
  26. pyrocb/plugins/modules/output_formatters/__init__.py +4 -0
  27. pyrocb/plugins/modules/output_formatters/pyrocb.py +288 -0
  28. pyrocb/plugins/modules/readers/ahi_l2_fire_csv.py +243 -0
  29. pyrocb/plugins/yaml/feature_annotators/pyrocb.yaml +21 -0
  30. pyrocb/plugins/yaml/gridline_annotators/pyrocb.yaml +17 -0
  31. pyrocb/plugins/yaml/product_defaults/pyrocb/PyroCb-BT.yaml +31 -0
  32. pyrocb/plugins/yaml/product_defaults/pyrocb/PyroCb-Fire.yaml +29 -0
  33. pyrocb/plugins/yaml/product_defaults/pyrocb/PyroCb-High-LCL.yaml +31 -0
  34. pyrocb/plugins/yaml/product_defaults/pyrocb/PyroCb-Standard-NUCAPS.yaml +32 -0
  35. pyrocb/plugins/yaml/product_defaults/pyrocb/PyroCb-Standard.yaml +32 -0
  36. pyrocb/plugins/yaml/product_defaults/pyrocb/Window-Diff-10um-11um.yaml +29 -0
  37. pyrocb/plugins/yaml/product_defaults/pyrocb/Window-Diff-10um-12um.yaml +29 -0
  38. pyrocb/plugins/yaml/product_defaults/pyrocb/Window-Diff-11um-12um.yaml +29 -0
  39. pyrocb/plugins/yaml/product_defaults/pyrocb/Window-Diff-11um-13um.yaml +29 -0
  40. pyrocb/plugins/yaml/product_defaults/pyrocb/Window-Diff-4um-11um.yaml +29 -0
  41. pyrocb/plugins/yaml/products/abi.yaml +133 -0
  42. pyrocb/plugins/yaml/products/ahi.yaml +60 -0
  43. pyrocb/plugins/yaml/products/geo_nucaps.yaml +13 -0
  44. pyrocb/plugins/yaml/products/nucaps.yaml +18 -0
  45. pyrocb/plugins/yaml/sectors/static/NUCAPSCalNev.yaml +29 -0
  46. pyrocb/plugins/yaml/sectors/static/PCBTestAustralia.yaml +29 -0
  47. pyrocb/plugins/yaml/sectors/static/PCBTestAustraliaZoom.yaml +29 -0
  48. pyrocb/plugins/yaml/sectors/static/PCBTestFourCorners.yaml +29 -0
  49. pyrocb/plugins/yaml/sectors/static/PCBTestPacificNW.yaml +29 -0
  50. pyrocb-1.18.1.dist-info/METADATA +97 -0
  51. pyrocb-1.18.1.dist-info/RECORD +54 -0
  52. pyrocb-1.18.1.dist-info/WHEEL +4 -0
  53. pyrocb-1.18.1.dist-info/entry_points.txt +3 -0
  54. pyrocb-1.18.1.dist-info/licenses/LICENSE +128 -0
pyrocb/__init__.py ADDED
@@ -0,0 +1,14 @@
1
+ # # # This source code is subject to the license referenced at
2
+ # # # https://github.com/NRLMMD-GEOIPS.
3
+
4
+ """
5
+ Pyrocb is a GeoIPS-compatible plugin.
6
+
7
+ The pyrocb plugin provides the capability for identifying and plotting
8
+ pyrocumulonimbus using GOES ABI data.
9
+ """
10
+
11
+ # NOTE: _version.py is generated automatically during build/install
12
+ from ._version import __version__, __version_tuple__
13
+
14
+ __all__ = ["__version__", "__version_tuple__"]
pyrocb/_version.py ADDED
@@ -0,0 +1,7 @@
1
+ # # # This source code is subject to the license referenced at
2
+ # # # https://github.com/NRLMMD-GEOIPS.
3
+
4
+ # DO NOT EDIT
5
+ # managed by poetry-dynamic-versioning
6
+ __version__ = "1.18.1"
7
+ __version_tuple__ = (1, 18, 1)
@@ -0,0 +1,4 @@
1
+ # # # This source code is subject to the license referenced at
2
+ # # # https://github.com/NRLMMD-GEOIPS.
3
+
4
+ """Init file."""
@@ -0,0 +1,4 @@
1
+ # # # This source code is subject to the license referenced at
2
+ # # # https://github.com/NRLMMD-GEOIPS.
3
+
4
+ """Init file."""
@@ -0,0 +1,4 @@
1
+ # # # This source code is subject to the license referenced at
2
+ # # # https://github.com/NRLMMD-GEOIPS.
3
+
4
+ """Init file."""
@@ -0,0 +1,55 @@
1
+ # # # This source code is subject to the license referenced at
2
+ # # # https://github.com/NRLMMD-GEOIPS.
3
+
4
+ """Data manipulation steps for IR Window BT difference algorithm."""
5
+
6
+ import logging
7
+
8
+ import xarray
9
+
10
+ LOG = logging.getLogger(__name__)
11
+
12
+ interface = "algorithms"
13
+ family = "xarray_to_xarray"
14
+ name = "diff_10um_11um"
15
+
16
+
17
+ def call(
18
+ xobj,
19
+ variables,
20
+ product_name="Window-Diff-10um-11um",
21
+ ):
22
+ """Algorithm for producing brightness temperature differences.
23
+
24
+ Originally used for the split window 10 um - 11 um BT difference for pyroCb
25
+ analysis of pyroCb detection potential. The channels used to calculate the
26
+ difference should be specified in a product YAML
27
+ (e.g. pyrocb/plugins/yaml/products/abi.yaml) in the order that there are to
28
+ be differenced (i.e. "variables: ['B13BT', 'B14BT']" in the product spec will
29
+ produce B14BT - B15BT).
30
+
31
+ Parameters
32
+ ----------
33
+ xobj : xarray.Dataset
34
+ * Xarrays containing 10 and 11 um brightness temperature data.
35
+ variables : list of str
36
+ * List of variables in the dataset.
37
+ product_name : str
38
+ * Name of product to be produced.
39
+
40
+ Returns
41
+ -------
42
+ xarray
43
+ * Modified xarray with IR difference added.
44
+ """
45
+ chan1_name = variables[0] # B13BT (10 um)
46
+ chan2_name = variables[1] # B14BT (11 um)
47
+
48
+ chan1_data = xobj[chan1_name].to_masked_array()
49
+ chan2_data = xobj[chan2_name].to_masked_array()
50
+
51
+ ir_diff = chan1_data - chan2_data
52
+
53
+ xobj[product_name] = xarray.DataArray(ir_diff)
54
+
55
+ return xobj
@@ -0,0 +1,55 @@
1
+ # # # This source code is subject to the license referenced at
2
+ # # # https://github.com/NRLMMD-GEOIPS.
3
+
4
+ """Data manipulation steps for IR Window BT difference algorithm."""
5
+
6
+ import logging
7
+
8
+ import xarray
9
+
10
+ LOG = logging.getLogger(__name__)
11
+
12
+ interface = "algorithms"
13
+ family = "xarray_to_xarray"
14
+ name = "diff_10um_12um"
15
+
16
+
17
+ def call(
18
+ xobj,
19
+ variables,
20
+ product_name="Window-Diff-10um-12um",
21
+ ):
22
+ """Algorithm for producing brightness temperature differences.
23
+
24
+ Originally used for the split window 10 um - 12 um BT difference for pyroCb
25
+ analysis of pyroCb detection potential. The channels used to calculate the
26
+ difference should be specified in a product YAML
27
+ (e.g. pyrocb/plugins/yaml/products/abi.yaml) in the order that there are to
28
+ be differenced (i.e. "variables: ['B13BT', 'B15BT']" in the product spec will
29
+ produce B14BT - B15BT).
30
+
31
+ Parameters
32
+ ----------
33
+ xobj : xarray.Dataset
34
+ * Xarrays containing 10 and 12 um brightness temperature data.
35
+ variables : list of str
36
+ * List of variables in the dataset.
37
+ product_name : str
38
+ * Name of product to be produced.
39
+
40
+ Returns
41
+ -------
42
+ xarray
43
+ * Modified xarray with IR difference added.
44
+ """
45
+ chan1_name = variables[0] # B13BT (10 um)
46
+ chan2_name = variables[1] # B15BT (12 um)
47
+
48
+ chan1_data = xobj[chan1_name].to_masked_array()
49
+ chan2_data = xobj[chan2_name].to_masked_array()
50
+
51
+ ir_diff = chan1_data - chan2_data
52
+
53
+ xobj[product_name] = xarray.DataArray(ir_diff)
54
+
55
+ return xobj
@@ -0,0 +1,57 @@
1
+ # # # This source code is subject to the license referenced at
2
+ # # # https://github.com/NRLMMD-GEOIPS.
3
+
4
+ """Data manipulation steps for IR Window BT difference algorithm."""
5
+
6
+ import logging
7
+
8
+ import xarray
9
+
10
+ LOG = logging.getLogger(__name__)
11
+
12
+ interface = "algorithms"
13
+ family = "xarray_to_xarray"
14
+ name = "diff_11um_12um"
15
+
16
+
17
+ def call(
18
+ xobj,
19
+ variables,
20
+ product_name,
21
+ ):
22
+ """Algorithm for producing brightness temperature differences.
23
+
24
+ Originally used for the split window 11 um - 12 um BT difference for pyroCb
25
+ analysis of pyroCb detection potential. The channels used to calculate the
26
+ difference should be specified in a product YAML
27
+ (e.g. pyrocb/plugins/yaml/products/abi.yaml) in the order that there are to
28
+ be differenced (i.e. "variables: ['B14BT', 'B15BT']" in the product spec will
29
+ produce B14BT - B15BT).
30
+
31
+ Parameters
32
+ ----------
33
+ xobj : xarray.Dataset
34
+ * Xarrays containing 11 and 12 um brightness temperature data.
35
+ variables : list of str
36
+ * List of variables in the dataset.
37
+ product_name : str
38
+ * Name of product to be produced.
39
+
40
+ Returns
41
+ -------
42
+ xarray
43
+ * Modified xarray with IR difference added.
44
+ """
45
+ if not product_name:
46
+ product_name = "Window-Diff-11um-12um"
47
+ chan1_name = variables[0] # B14BT (11 um)
48
+ chan2_name = variables[1] # B15BT (12 um)
49
+
50
+ chan1_data = xobj[chan1_name].to_masked_array()
51
+ chan2_data = xobj[chan2_name].to_masked_array()
52
+
53
+ ir_diff = chan1_data - chan2_data
54
+
55
+ xobj[product_name] = xarray.DataArray(ir_diff)
56
+
57
+ return xobj
@@ -0,0 +1,55 @@
1
+ # # # This source code is subject to the license referenced at
2
+ # # # https://github.com/NRLMMD-GEOIPS.
3
+
4
+ """Data manipulation steps for 4-11um Window BT difference algorithm."""
5
+
6
+ import logging
7
+
8
+ import xarray
9
+
10
+ LOG = logging.getLogger(__name__)
11
+
12
+ interface = "algorithms"
13
+ family = "xarray_to_xarray"
14
+ name = "diff_11um_13um"
15
+
16
+
17
+ def call(
18
+ xobj,
19
+ variables,
20
+ product_name="Window-Diff-11um-13um",
21
+ ):
22
+ """Algorithm for producing brightness temperature differences.
23
+
24
+ Originally used for the split window 11 um - 13 um BT difference for pyroCb
25
+ analysis of pyroCb detection potential. The channels used to calculate the
26
+ difference should be specified in a product YAML
27
+ (e.g. pyrocb/plugins/yaml/products/abi.yaml) in the order that there are to
28
+ be differenced (i.e. "variables: ['B14BT', 'B16BT']" in the product spec will
29
+ produce B14BT - B16BT).
30
+
31
+ Parameters
32
+ ----------
33
+ xobj : xarray.Dataset
34
+ * Xarrays containing 4 and 11 um brightness temperature data.
35
+ variables : list of str
36
+ * List of variables in the dataset.
37
+ product_name : str
38
+ * Name of product to be produced.
39
+
40
+ Returns
41
+ -------
42
+ xarray
43
+ * Modified xarray with IR difference added.
44
+ """
45
+ chan1_name = variables[0] # B14BT (11 um)
46
+ chan2_name = variables[1] # B16BT (13 um)
47
+
48
+ chan1_data = xobj[chan1_name].to_masked_array()
49
+ chan2_data = xobj[chan2_name].to_masked_array()
50
+
51
+ ir_diff = chan1_data - chan2_data
52
+
53
+ xobj[product_name] = xarray.DataArray(ir_diff)
54
+
55
+ return xobj
@@ -0,0 +1,55 @@
1
+ # # # This source code is subject to the license referenced at
2
+ # # # https://github.com/NRLMMD-GEOIPS.
3
+
4
+ """Data manipulation steps for 4-11um Window BT difference algorithm."""
5
+
6
+ import logging
7
+
8
+ import xarray
9
+
10
+ LOG = logging.getLogger(__name__)
11
+
12
+ interface = "algorithms"
13
+ family = "xarray_to_xarray"
14
+ name = "diff_4um_11um"
15
+
16
+
17
+ def call(
18
+ xobj,
19
+ variables,
20
+ product_name="Window-Diff-4um-11um",
21
+ ):
22
+ """Algorithm for producing brightness temperature differences.
23
+
24
+ Originally used for the split window 4 um - 11 um BT difference for pyroCb
25
+ analysis of pyroCb detection potential. The channels used to calculate the
26
+ difference should be specified in a product YAML
27
+ (e.g. pyrocb/plugins/yaml/products/abi.yaml) in the order that there are to
28
+ be differenced (i.e. "variables: ['B07BT', 'B14BT']" in the product spec will
29
+ produce B07BT - B14BT).
30
+
31
+ Parameters
32
+ ----------
33
+ xobj : xarray.Dataset
34
+ * Xarrays containing 4 and 11 um brightness temperature data.
35
+ variables : list of str
36
+ * List of variables in the dataset.
37
+ product_name : str
38
+ * Name of product to be produced.
39
+
40
+ Returns
41
+ -------
42
+ xarray
43
+ * Modified xarray with IR difference added.
44
+ """
45
+ chan1_name = variables[0] # B07BT (4 um)
46
+ chan2_name = variables[1] # B14BT (11 um)
47
+
48
+ chan1_data = xobj[chan1_name].to_masked_array()
49
+ chan2_data = xobj[chan2_name].to_masked_array()
50
+
51
+ ir_diff = chan1_data - chan2_data
52
+
53
+ xobj[product_name] = xarray.DataArray(ir_diff)
54
+
55
+ return xobj