-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
3,579 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
schema/sdss5db/catalogdb/skymapper/dr2/skymapper_dr2_alter_table_pkey.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
\o skymapper_dr2_alter_table_pkey.out | ||
alter table catalogdb.skymapper_dr2 add primary key (object_id); | ||
\o |
10 changes: 10 additions & 0 deletions
10
schema/sdss5db/catalogdb/skymapper/dr2/skymapper_dr2_create_indexes.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
\o skymapper_dr2_create_indexes.out | ||
create index on catalogdb.skymapper_dr2(q3c_ang2ipix(raj2000,dej2000)); | ||
create index on catalogdb.skymapper_dr2(flags_psf); | ||
create index on catalogdb.skymapper_dr2(nimaflags); | ||
create index on catalogdb.skymapper_dr2(smss_j); | ||
create index on catalogdb.skymapper_dr2(g_psf); | ||
create index on catalogdb.skymapper_dr2(r_psf); | ||
create index on catalogdb.skymapper_dr2(i_psf); | ||
create index on catalogdb.skymapper_dr2(z_psf); | ||
\o |
106 changes: 106 additions & 0 deletions
106
schema/sdss5db/catalogdb/skymapper/dr2/skymapper_dr2_create_table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
-- The create table statement is based on the information in the below link: | ||
-- http://skymapper.anu.edu.au/table-browser/dr2/ | ||
-- table dr2.master | ||
|
||
create table catalogdb.skymapper_dr2 ( | ||
object_id bigint, | ||
raj2000 double precision, | ||
dej2000 double precision, | ||
e_raj2000 integer, | ||
e_dej2000 integer, | ||
smss_j char(18), | ||
mean_epoch double precision, | ||
rms_epoch real, | ||
glon real, | ||
glat real, | ||
flags smallint, | ||
nimaflags integer, | ||
ngood smallint, | ||
ngood_min smallint, | ||
nch_max smallint, | ||
density real, | ||
u_flags smallint, | ||
u_nimaflags integer, | ||
u_ngood smallint, | ||
u_nch smallint, | ||
u_nclip smallint, | ||
v_flags smallint, | ||
v_nimaflags integer, | ||
v_ngood smallint, | ||
v_nch smallint, | ||
v_nclip smallint, | ||
g_flags smallint, | ||
g_nimaflags integer, | ||
g_ngood smallint, | ||
g_nch smallint, | ||
g_nclip smallint, | ||
r_flags smallint, | ||
r_nimaflags integer, | ||
r_ngood smallint, | ||
r_nch smallint, | ||
r_nclip smallint, | ||
i_flags smallint, | ||
i_nimaflags integer, | ||
i_ngood smallint, | ||
i_nch smallint, | ||
i_nclip smallint, | ||
z_flags smallint, | ||
z_nimaflags integer, | ||
z_ngood smallint, | ||
z_nch smallint, | ||
z_nclip smallint, | ||
class_star real, | ||
flags_psf integer, | ||
radius_petro real, | ||
u_psf real, | ||
e_u_psf real, | ||
u_rchi2var real, | ||
u_petro real, | ||
e_u_petro real, | ||
v_psf real, | ||
e_v_psf real, | ||
v_rchi2var real, | ||
v_petro real, | ||
e_v_petro real, | ||
g_psf real, | ||
e_g_psf real, | ||
g_rchi2var real, | ||
g_petro real, | ||
e_g_petro real, | ||
r_psf real, | ||
e_r_psf real, | ||
r_rchi2var real, | ||
r_petro real, | ||
e_r_petro real, | ||
i_psf real, | ||
e_i_psf real, | ||
i_rchi2var real, | ||
i_petro real, | ||
e_i_petro real, | ||
z_psf real, | ||
e_z_psf real, | ||
z_rchi2var real, | ||
z_petro real, | ||
e_z_petro real, | ||
ebmv_sfd real, | ||
prox real, | ||
prox_id bigint, | ||
dr1_id bigint, | ||
dr1_dist real, | ||
twomass_key bigint, | ||
twomass_dist real, | ||
allwise_cntr bigint, | ||
allwise_dist real, | ||
ucac4_mpos bigint, | ||
ucac4_dist real, | ||
refcat2_id bigint, | ||
refcat2_dist real, | ||
ps1_dr1_id bigint, | ||
ps1_dr1_dist real, | ||
galex_guv_id bigint, | ||
galex_guv_dist real, | ||
gaia_dr2_id1 bigint, | ||
gaia_dr2_dist1 real, | ||
gaia_dr2_id2 bigint, | ||
gaia_dr2_dist2 real | ||
); |
Oops, something went wrong.