kmhess / SoFiA-image-pipeline

Generate figures of spectral line sources, for publication or quick inspection, based on SoFiA-2 output catalog and fits files.
GNU General Public License v3.0
16 stars 7 forks source link

Allow for catalog & images in Galactic coordinates #46

Open kmhess opened 2 years ago

kmhess commented 2 years ago

Currently SIP only deals with data in equatorial (RA/Dec) coordinates. Expand to accept & properly plot data in Galactic coords (l, b).

kmhess commented 2 years ago

Some progress has been made (not yet uploaded to github) by testing on products made with SoFiA 2.4.0, but fails on mom1 for unknown reasons, and needs checking with pv plot and spec plot using SoFiA 2.4.1 output.

kmhess commented 2 years ago

New capabilities added in Release 1.1.0, however testing still needs to be done with output generated by the latest version of SoFiA.

kmhess commented 2 years ago

For some unknown reason, for the one data set I have in Galactic coords, ax.annotate and fig.savefig do not play nice together, so I use a regular ax.plt to plot the kinematic position angle, but it doesn't have an arrowhead. I think nearly everything else works for the case of Galactic coordinates. https://github.com/kmhess/SoFiA-image-pipeline/blob/686114a2e680acaa7e9ded0343e596e7ca1b8223/src/make_images.py#L402-#L409