Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CLASS packed viirs files in viirs_sdr reader #538

Merged
merged 20 commits into from
Mar 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions satpy/composites/viirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,9 @@ def local_histogram_equalization(data, mask_to_equalize, valid_data_mask=None, n
total_cols = data.shape[1]
tile_size = int((local_radius_px * 2.0) + 1.0)
row_tiles = int(total_rows / tile_size) if (
total_rows % tile_size is 0) else int(total_rows / tile_size) + 1
(total_rows % tile_size) == 0) else int(total_rows / tile_size) + 1
djhoese marked this conversation as resolved.
Show resolved Hide resolved
col_tiles = int(total_cols / tile_size) if (
total_cols % tile_size is 0) else int(total_cols / tile_size) + 1
(total_cols % tile_size) == 0) else int(total_cols / tile_size) + 1

# an array of our distribution functions for equalization
all_cumulative_dist_functions = [[]]
Expand Down Expand Up @@ -1003,7 +1003,7 @@ def _linear_normalization_from_0to1(
"""

LOG.debug(message)
if theoretical_min is not 0:
if theoretical_min != 0:
data[mask] = data[mask] - theoretical_min
theoretical_max = theoretical_max - theoretical_min
data[mask] = data[mask] / theoretical_max
Expand Down