Open 7yl4r opened 6 years ago
matplotlib doesn't support tiff output :disappointed:
[root@imars-airflow12 sat-scripts]# sat-scripts/netcdf4_to_png.py /srv/imars-objects/modis_aqua_gom/l3/2017-12-17T12:00:00Z_l3.nc test_chlor_a.tiff chlor_a
ValueError: Format "tiff" is not supported.
Supported formats: eps, pdf, pgf, png, ps, raw, rgba, svg, svgz.
Let's looks at what we need to re-use the "old" way of creating tiffs:
Firstly, A01, A02, etc areas are defined in SPA/imars/wrapper/cylindrical_project/configs/
. So I think it is the "cylindrical_project" stuff that did this.
However, mercator projection stuff with gpt also seems to be mixed in there so it is hard to say for sure.
Also a bit odd: There is no reference to A02 anywhere, and A03 is only found in wrapper/mercator_project/generic.xml
.. and that doesn't look like anything we would expect.
Some questions that might help clear up next steps:
GDAL may be a good tool to help with this. Specifically gdal_translate
Exporting to
tiff
for Matt@ROFFS might be fairly easy.format="tiff"
If that doesn't work I'll reach out to Matt to find out how import tiff format is to them.