Skip to content

Commit

Permalink
Use -999 to replace inf values
Browse files Browse the repository at this point in the history
  • Loading branch information
supermarkion committed Dec 19, 2024
1 parent 57f35a6 commit bb46bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fmc_processing_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def classify_fmc(data, model):
data_flat = sklearn_flatten(data_neworder)

# Replace inf and -inf with no_data_value
data_flat = np.where(np.isinf(data_flat), np.nan, data_flat)
data_flat = np.where(np.isinf(data_flat), -999, data_flat)

# Classify the data
out_class = model.predict(data_flat)
Expand Down

0 comments on commit bb46bf3

Please sign in to comment.