IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2015, 4:00:17 PM (11 years ago)
Author:
eugene
Message:

add options to import FITS tables using Ohana fits_to_mysql

File:
1 edited

Legend:

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

    r38951 r38981  
    581581
    582582          count = count + 1
     583
     584      self.logger.debugPair("Finished importing", tableName)
     585
     586      return tableName
     587
     588    '''
     589    Imports the Photcode file
     590    '''
     591    def importPhotcodesOhana(self, path, tableName):
     592
     593      self.logger.infoPair("Importing file", "%s (%s)" % (path, self.getFileSizeStr(self.getDiskSize(path))))
     594      self.logger.debugPair("Writing to database table", tableName)
     595
     596      ## XXX may need to do this in mysql after table is read
     597      # convert the 1-char field TYPE to an int for querying ease (probably more sophisticated ways to do this...)
     598      # table = stilts.tpipe(table, cmd='addcol -after TYPE TYPE_AS_INT "TYPE + 0"')
     599
     600      loadFITStoMYSQL (path, tableName)
    583601
    584602      self.logger.debugPair("Finished importing", tableName)
Note: See TracChangeset for help on using the changeset viewer.