I have an array of value from an image of suns magnetic field. I am meant to set all values above 3*sigma and below -3*sigma to 1. the values in between to 0. and i also have nan values in that array that should stay nan values. i have tried to set several conditions to one array but the conditions overlap if i set them separartely. is there a way of setting more than one condition at the same time? and how can i do it properly? thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.