Package invocations :: Package cu16 :: Module cu16 :: Class Cu16
[hide private]

Class Cu16

source code


Create neighbour and default join tables with external catalogues for a given programme.

Nested Classes [hide private]
    Nested Errors and Exceptions

Inherited from wsatools.DbConnect.CuSession.CuSession: CuError

Instance Methods [hide private]
 
_onRun(self)
Create neighbour and default join tables with external catalogues.
source code
 
_createNeighbourTables(self, requiredJoins, progTablePathName)
Create neighbour table for given programme and ingest into db.
source code
str
_getSourcePosTable(self, surveyID=None, progID=None, tableID=None)
Returns the path to the binary flat-file for the source position table of the given database source table.
source code
 
_getDetectionPosQuery(self, tableName)
Returns the tables and clauses required for a query to outgest the positions of detections in the detection table.
source code

Inherited from wsatools.DbConnect.CuSession.CuSession: __del__, __init__, logBrokenFile, run

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from wsatools.DbConnect.CuSession.CuSession: logException

Class Variables [hide private]
  cuNum = 16
Curation task number.
  _autoCommit = True
Should this curation task auto-commit database transactions?
  _isPersistent = True
Should this curation task try to re-open broken database connections?
  tempDetTable = 'vvvDetectionTemp'
  dateRange = DateRange(begin=<mx.DateTime.DateTime object for '...
Detections should be cross-matched only for this date range.
  enableIngest = True
Enable neighbour table ingest?
  extSurveyID = None
Optional specific external survey for which to create neighbour tables.
  fromTableName = ''
Optionally continue from this neighbour table onwards.
  outgestDb = ''
Database from which to outgest data.
  soleTableName = ''
Optional specific neighbour table to create.
  _ingester = None
A DbSession.Ingester object for performing ingests.
  _outgester = None
A DbSession.Outgester object for performing outgests.

Inherited from wsatools.DbConnect.CuSession.CuSession: archive, comment, cuEventID, curator, eTypes, isDayStampedLog, onlyNonSurveys, onlySurveys, programme, programmeID, resultsFilePathName, shareFileID, sysc

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_onRun(self)

source code 

Create neighbour and default join tables with external catalogues.

Overrides: wsatools.DbConnect.CuSession.CuSession._onRun

_getSourcePosTable(self, surveyID=None, progID=None, tableID=None)

source code 

Returns the path to the binary flat-file for the source position table of the given database source table. If the flat-file does not already exist (or the source table is a non-static UKIDSS table) then it is first outgested from the database. Creates data-type definition (.dtd) files to allow the C++ Matching code to interpret the outgest files.

Parameters:
  • surveyID (int) - External survey ID, if table is part of an external non-UKIDSS survey.
  • progID (int) - Programme ID, either of UKIDSS survey or external survey if it exists.
  • tableID (int) - Table ID number from RequiredNeighbours (UKIDSS: 1 = detection, 2 = source; or extTableID).
Returns: str
File path name of the outgested source table.

Class Variable Details [hide private]

dateRange

Detections should be cross-matched only for this date range.

Value:
DateRange(begin=<mx.DateTime.DateTime object for '1753-01-01 00:00:00.\
00' at 36e14b0>, end=<mx.DateTime.DateTime object for '9999-12-31 00:0\
0:00.00' at 3197f18>)