Commit babe12e
Add ocean and invalid reflectance masking (#36)
* merge main into add_ocean_mask
* update proteus version from 0.5.1 to 0.5.2
* update proteus version from 0.5.1 to 0.5.2 (2)
* update identation of messages logged/printed to the user in the function `save_as_cog()`
* add ocean masking using a shoreline shape file
* remove debug messages and update comments
* add runconfig field ocean_masking_shoreline_distance_km
* add cumulative reflectance no-data masking
* add cumulative reflectance no-data masking (2)
* refactor `save_dswx_product()` and only add CLOUD-masked classes to colortable if layer name is WTR
* add test for coverage of ancillary inputs
* update snow-, cloud-, and ocean-masked values from 8, 9, and 7 to 252, 253, and 254, respectively
* make ocean masked classes transparent
* make ocean masked classes transparent (2)
* update CLOUD_OCEAN_MASKED to 254
* Update global variable names and CONF layer with _CLEAR, _CLOUD, and _SNOW designations.
* Update global variable names and CONF layer with _CLEAR, _CLOUD, and _SNOW designations. (2)
* Apply suggestions from code review
Whitespace and update to a docstring.
Co-authored-by: Gustavo H. X. Shiroma <52007211+gshiroma@users.noreply.github.com>
* update to documentation per code review
* add new line to the end of the file
* rename shape_file to shapefile
* reduce shoreline margin from 10 km to 5 km
* update comments and docstrings
* close gdal dataset
* simplify code
* add comments for check_ancillary_inputs_coverage
* update messages printed to the user regarding Sun parameters
* rename `cloud_mask` to `cloud_layer`
* update _load_hls_band_from_file()
* add `temp_shapefile_filename` to the list of temporary files
* read SOFTWARE_VERSION from version.py
* update _load_hls_band_from_file() (2)
* handle anti-meridian
* give precedence to fill value over ocean mask
* update description of CLOUD layer
* change ocean masked color entry to match the open water as per S. Chan's request
* give precedence to clouds over the ocean mask as per S. Chan's request
* change default value for per S. Chan's request
* change default of `exclude_psw_aggressive_in_browse` from `False` to `True` per chat with S. Chan
* give precedence to clouds over the ocean mask as per S. Chan's request (2)
* give precedence to clouds over the ocean mask as per S. Chan's request (3)
* remove all temporary files
* improve comments and variable names
* improve comments and variable names (2)
* set ocean masked values to transparent in browse images
* use dark blue for ocean-masked pixels
* remove temporary shape files
* rename variable from `temp_file test` to `temp_file`
* give precedence to the ocean mask over clouds
* check for file`s existence before adding it to temporary file`s list
* update OPERA Cal/Val release version from R3.2 to R3.3
* update workflow test dataset URL
Co-authored-by: Samantha Niemoeller <11642807+nemo794@users.noreply.github.com>1 parent 33d4c13 commit babe12e
11 files changed
Lines changed: 972 additions & 451 deletions
File tree
- bin
- docker
- src/proteus
- defaults
- schemas
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
30 | 40 | | |
31 | 41 | | |
32 | 42 | | |
| |||
71 | 81 | | |
72 | 82 | | |
73 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
74 | 87 | | |
75 | 88 | | |
76 | 89 | | |
| |||
109 | 122 | | |
110 | 123 | | |
111 | 124 | | |
112 | | - | |
| 125 | + | |
113 | 126 | | |
114 | 127 | | |
115 | 128 | | |
| |||
0 commit comments