| | 43 | |
| | 44 | == Database containing detections features (see Action A-002) == |
| | 45 | It's on neverland. |
| | 46 | {{{ |
| | 47 | CREATE DATABASE Zoology; |
| | 48 | USE Zoology; |
| | 49 | |
| | 50 | CREATE TABLE DetectionFeatures ( |
| | 51 | id INT NOT NULL PRIMARY KEY AUTO_INCREMENT |
| | 52 | , stack_id BIGINT(20) NOT NULL |
| | 53 | , INDEX(stack_id) |
| | 54 | , filter CHAR(10) NOT NULL |
| | 55 | , INDEX(filter) |
| | 56 | , skycell_id CHAR(64) NOT NULL |
| | 57 | , INDEX(skycell_id) |
| | 58 | , flags BIGINT(64) |
| | 59 | , flags2 BIGINT(64) |
| | 60 | , x_psf FLOAT |
| | 61 | , y_psf FLOAT |
| | 62 | , idet CHAR(64) |
| | 63 | , cal_psf_mag FLOAT |
| | 64 | , ra_psf FLOAT |
| | 65 | , dec_psf FLOAT |
| | 66 | ) |
| | 67 | }}} |
| | 68 | |
| | 69 | Files used to populate the database (fitsExtract.py is located in ~ipp/sch/zoology) |
| | 70 | {{{ |
| | 71 | python ./fitsExtract.py /data/ipp009.0/heather/footprint-g-not-matched-psphot.fits columns=ra_psf,dec_psf,x_psf,y_psf,skycell,idet,flags,flags2,cal_psf_mag > populate.g.sql |
| | 72 | python ./fitsExtract.py /data/ipp009.0/heather/footprint-r-not-matched-psphot.fits columns=ra_psf,dec_psf,x_psf,y_psf,skycell,idet,flags,flags2,cal_psf_mag > populate.r.sql |
| | 73 | python ./fitsExtract.py /data/ipp009.0/heather/footprint-i-not-matched-psphot.fits columns=ra_psf,dec_psf,x_psf,y_psf,skycell,idet,flags,flags2,cal_psf_mag > populate.i.sql |
| | 74 | python ./fitsExtract.py /data/ipp009.0/heather/footprint-y-not-matched-psphot.fits columns=ra_psf,dec_psf,x_psf,y_psf,skycell,idet,flags,flags2,cal_psf_mag > populate.y.sql |
| | 75 | python ./fitsExtract.py /data/ipp009.0/heather/footprint-z-not-matched-psphot.fits columns=ra_psf,dec_psf,x_psf,y_psf,skycell,idet,flags,flags2,cal_psf_mag > populate.z.sql |
| | 76 | }}} |
| | 77 | |