Skip to content

Commit

Permalink
Include MIPSGAL archive data
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jun 23, 2020
1 parent d16f8d7 commit ffe399b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 7 additions & 2 deletions schema/sdss5db/catalogdb/mipsgal/mipsgal.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@
def main():

assert database.connected
database.become_admin()

file_ = os.environ['CATALOGDB_DIR'] + '/MIPSGAL/MIPSGAL.fits'

file_ = os.environ['CATALOGDB_DIR'] + '/MIPSGAL/MIPSGAL_catalog.fits'
data = astropy.table.Table.read(file_)
data.meta = {}
copy_data(data, database, 'mipsgal', schema='catalogdb')

file_ = os.environ['CATALOGDB_DIR'] + '/MIPSGAL/MIPSGAL_archive.fits'
data = astropy.table.Table.read(file_)
data.meta = {}
copy_data(data, database, 'mipsgal', schema='catalogdb')


Expand Down
4 changes: 1 addition & 3 deletions schema/sdss5db/catalogdb/mipsgal/mipsgal.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ CREATE TABLE catalogdb.mipsgal (
fwhm DOUBLE PRECISION,
sky DOUBLE PRECISION,
lim1 DOUBLE PRECISION,
lim2 DOUBLE PRECISION,
f1 INTEGER,
f2 INTEGER
lim2 DOUBLE PRECISION
);

CREATE INDEX CONCURRENTLY ON catalogdb.mipsgal (q3c_ang2ipix(radeg, dedeg));
Expand Down

0 comments on commit ffe399b

Please sign in to comment.