Closed ctwardy closed 10 years ago
with the log transform i can make the files pngs and they keep the distinctions between unique values and such. the issue i'm running into now is that I created 5000x5000 pixel images instead of 5001x5001, so i need to go back and change the original category based tifs to fit the new thing.
I think meshgrid() will be useful. We can do something like this:
x = y = np.linspace(-12.5,12.5,5001) # 12.5km each way, 5001px total
xx, yy = np.meshgrid(x,y)
z = frozen_lognorm_with_my_params(np.sqrt(xx**2 + yy**2))
The matplotlib imsave() command seems to "do the right thing" with PNG export. Closing the TIFF ticket on the assumption we can use PNG. Will make a corresponding ticket.
After we test TIF uploading!