nansat
nansat copied to clipboard
Color issue on geoencoded GTiff
When I'm running the ice classification on Nansat 1.0, I get black&white GTiff images. It works as expected on 0.6.17. I don't know where the issue lies, but since it depends on Nansat version, I'd think it is here.
I got the whole source code for ice alg directly from Mohamed, but it looks a lot like it's the new_denoising branch.
In short, it runs these two lines: export_PS_proj_GTiff(pca_zones,ifile,os.path.join(odir+ID,ID+'_geocoded_pca_zones.tif')) export_PS_proj_GTiff(svm_zones,ifile,os.path.join(odir+ID,ID+'_geocoded_svm_zones.tif'))
the function can be found here, perhaps there is something done there that messes up something: https://github.com/nansencenter/sentinel1ice/blob/72bbff9bfd62af96f81560896a490b63f849cfbc/sar2ice.py#L612
output files can be found here: https://imgur.com/a/PhMyF
Note: The colors work fine when I use the export_uint8_png function from the same package.
Do you have some time to take a look at this @akorosov ?