Changeset 31350
- Timestamp:
- Apr 22, 2011, 1:37:34 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/batch.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r31348 r31350 363 363 364 364 ''' 365 Exports PSPS tables from the database to FITS format 365 Exports PSPS tables from the database to FITS format. Optional regex if you want to alter table names prior to export 366 366 ''' 367 def exportPspsTablesToFits(self ):367 def exportPspsTablesToFits(self, regex="(.*)"): 368 368 369 369 self.logger.info("Exporting all PSPS tables to FITS") … … 384 384 _table = stilts.tpipe(_table, cmd='replaceval "" -999 *') 385 385 386 match = re.match(regex, table) 387 newTableName = match.group(1) 388 386 389 # change table names 387 _table = stilts.tpipe(_table, cmd='tablename ' + table)390 _table = stilts.tpipe(_table, cmd='tablename ' + newTableName) 388 391 _tables.append(_table) 389 392
Note:
See TracChangeset
for help on using the changeset viewer.
