IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38879 for trunk


Ignore:
Timestamp:
Oct 17, 2015, 1:23:00 PM (11 years ago)
Author:
bills
Message:

include columns for the recalibration statistics in the dvoImages table
add function updateRecalStats() which is used to copy them to the various tables that need them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/scratchdb.py

    r38854 r38879  
    222222
    223223    '''
     224    Updates a table with the recalibration stats grabbed from dvoImages table
     225    '''
     226    def updateRecalStats(self, table, externID, pltScale):
     227
     228        sql = "UPDATE "+table+" AS a,"+self.dvoImagesTable+" AS b \
     229               SET \
     230               a.recalAstroScatX = b.XPIX_SYS_ERR *"+pltScale+", \
     231               a.recalAstroScatY = b.YPIX_SYS_ERR *"+pltScale+", \
     232               a.recalNAstroStars = b.N_FIT_ASTROM, \
     233               a.recalPhotoScat  = b.MAG_SYS_ERR, \
     234               a.recalNPhotoStars = b.N_FIT_PHOTOM \
     235               WHERE b.EXTERN_ID = "+externID
     236        self.execute(sql)
     237
     238    '''
    224239    Inserts a new sourceID/imageID combo into dvoImages
    225240    '''
     
    483498               FLAGS INT, \
    484499               PHOTCODE SMALLINT, \
     500               XPIX_SYS_ERR FLOAT, \
     501               YPIX_SYS_ERR FLOAT, \
     502               N_FIT_ASTROM INT, \
     503               MAG_SYS_ERR FLOAT, \
     504               N_FIT_PHOTOM INT, \
    485505               PRIMARY KEY (IMAGE_ID, EXTERN_ID) \
    486506               )"
Note: See TracChangeset for help on using the changeset viewer.