USF-IMARS / imars_dags

:leaves: USF IMaRS Airflow DAGs
0 stars 0 forks source link

tiff export ao# region passes #21

Open 7yl4r opened 6 years ago

7yl4r commented 6 years ago

Exporting to tiff for Matt@ROFFS might be fairly easy.

  1. set up l2->l3 at pass level for ao# regions (done, but untested)
  2. try to modify & use sat-scripts/netcdf4-to-png.py to allow format="tiff"

If that doesn't work I'll reach out to Matt to find out how import tiff format is to them.

7yl4r commented 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.
7yl4r commented 6 years ago

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:

7yl4r commented 6 years ago

GDAL may be a good tool to help with this. Specifically gdal_translate

7yl4r commented 6 years ago