Open low-sky opened 6 years ago
FWIW, this is a pretty systematic problem across all mapping surveys; it's not unique to GBT GAS. Without looking closely at the issue again, this appears to be a general problem when the emission fills a substantial fraction of the bandpass, especially near a point where baseline curvature is a problem. It's likely a mix of inadequate masking (since you can only mask down to a few sigma, you're including some of the line wings in the fit) and the resulting inadequate fitting area.
This seems like a fun problem to tackle in the general case in the limit of infinite time.
After screwing around a bit with all our strategies (and getting a multiprocesing framework working), I think that our best approach may be to fit a simple (thin) ammonia model + baseline to the individual cubes. This would take care of the issues of baseline window selection especially when there's no space between the hyperfines. It would not deal with multi-components perfectly but it seems like a good "first pass" attempt.
When averaging over large areas, negative baselines show up.