nansencenter / sea_ice_type_cnn_training

Deep learning of satellite data: Use the data from satellites for machine learning (deep learning) purposes
GNU General Public License v3.0
5 stars 4 forks source link

Update archive.py #19

Closed opsdep closed 3 years ago

opsdep commented 3 years ago

Previous code has a bug in the algorithm. The bug is at the beginning of the for loop, it ignores the previous mask. By initializing the mask before the for loop and update it with np.ma.mask_or the correct algorithm is applied and the bug is fixed.