For some reason, my data reduction for a fits image has given me -0 values, which I would like to set to 0.
I've attempted to use:
my_array[~numpy.isfinite(my_array)] = 0
All I would like to do is set the -0 values in the corrfact_um2_ext1 array to 0. Just to keep everything in the same format, as I think this may cause a problem in subsequent data reduction steps.
But this just deals with NaN values and sets them to 0. So, I'm halfway there!