Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thespacedoctor/a03daab54a8429ea24364c246d3aa370 to your computer and use it in GitHub Desktop.
Save thespacedoctor/a03daab54a8429ea24364c246d3aa370 to your computer and use it in GitHub Desktop.
[check for spectra where the coordinates in the FITS header do not match the marshall coordinates] #coordinate #phase_iii #spectrum
SELECT
e.currentFilename,
a.object,
a.ra,
a.decl,
e.ra,
e.decl,
raDeg,
decDeg,
e.transientBucketId,
e.lock_row,
e.isInTransientBucket
FROM
efosc_spectra e,
transientBucketSummaries t,
(SELECT
currentFilename, ra, decl, object
FROM
efosc_spectra) a
WHERE
t.transientBucketId = e.transientBucketId
AND e.arcfile = a.currentFilename
AND t.raDeg != e.ra
AND e.data_rel = 'SSDR3'
order by e.ra;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment