I have a 2d binary array indicating the presence of half-channels at a particular coordinate (0=not present, 1=present). I need to convert this array into a probability distribution to plot on a map of the globe using matplotlib.
I tried dividing each element of the array by the amount of time over which the values are calculated. For example, if the data was taken over a period of one month I divided by 30. I also tried taking the exponent of each value like so:
return np.exp(-x ** 2)
but nothing looks right. Any suggestions? Thanks.