IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 29, 2015, 10:50:19 AM (11 years ago)
Author:
eugene
Message:

generate the table_index columns; update diff and forcedwarp to use fits_to_mysql

File:
1 edited

Legend:

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

    r38995 r38999  
    14231423           
    14241424            ## output table names need to have "filter" prepended. 
    1425             ## add this as an option
    1426             self.scratchDb.loadFITStoMYSQL(fileName, "-tableprefix " + filter)
    1427             ## XXX table = stilts.tpipe(table, cmd='addcol table_index $0')
     1425            fitsOptions  = "-tableprefix " + filter
     1426
     1427            # this pair of options is equivalent to the stilts "addcol table_index $0" call
     1428            fitsOptions += " -sequence-column table_index"
     1429            fitsOptions += " -sequence-column-start 1"
     1430
     1431            ## *** actually write the FITS data to mysql
     1432            self.scratchDb.loadFITStoMYSQL(fileName, fitsOptions)
    14281433
    14291434            # get the list of tables in this file:
Note: See TracChangeset for help on using the changeset viewer.