serval icon indicating copy to clipboard operation
serval copied to clipboard

option for a stellar mask

Open mzechmeister opened this issue 6 years ago • 1 comments

mzechmeister avatar Mar 20 '18 06:03 mzechmeister

A stellar mask seems now feasible, since template masking is now elaborated. The badT flag is propagated (flagbroad).

For now one can modify the QMAP extension in the serval template fits files, which is then loaded in https://github.com/mzechmeister/serval/blob/b7c7b568ef3bb29e072d0cc6b25566ef8eb1a318/src/read_spec.py#L294 https://github.com/mzechmeister/serval/blob/b7c7b568ef3bb29e072d0cc6b25566ef8eb1a318/src/serval.py#L1407 And finally masked in: https://github.com/mzechmeister/serval/blob/b7c7b568ef3bb29e072d0cc6b25566ef8eb1a318/src/serval.py#L207

More convenient would be an -mskstar option. Ups, there is already a -mskspec option; but it does nothing yet https://github.com/mzechmeister/serval/blob/b7c7b568ef3bb29e072d0cc6b25566ef8eb1a318/src/serval.py#L2604 The mask may need a shift to the frame of the template (RVabs, maybe using the keyword HIERARCH SERVAL TARG RV.

The mask could by applied to the bk (bad knot) map outside or inside the Tpl instance creation https://github.com/mzechmeister/serval/blob/b7c7b568ef3bb29e072d0cc6b25566ef8eb1a318/src/serval.py#L162

mzechmeister avatar Jun 17 '24 22:06 mzechmeister