Package invocations :: Package cu9 :: Module cu9 :: Class Cu9
[hide private]

Class Cu9

source code


Produce list-driven remeasurements (data with a survey) 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)
Invoke list-driven photometry for a specified programme in the WFCAM Science Archive.
source code
 
cleanUpFileShare(self)
Make sure there are no old .dat files in the dbSharePath.
source code
 
createIlluminationTableList(self)
Create the list of used illumination tables and write it for use with exnumeric to the working directory.
source code
 
createSchemaList(self)
Create schema list.
source code
 
filterCat(self, listDrivCatName, origCatName, sourceList)
Remove sources outside edge.
source code
 
getMultiframeList(self, frmGroup)
Gets list of multiframes
source code
 
getSources(self, centre, radiusDeg)
Returns all primary sources within circle
source code
 
getTolerance(self, frmGroup) source code
 
runLDExtractor(self, mfl, sourceList)
Run CASU Extractor.
source code
 
setTableVariables(self)
Set the variables dependent of the tables used in this cu.
source code
str
setUpWorkingDirs(self, spaceRequired)
Creates the directory to store newly created deep stacks.
source code
 
updateHeader(self, header, oldheader)
Add keywords that are not in header from old header
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 = 9
Curation task number.
  memoryLimit = 66148010.0
Maximum amount of memory that CU9 should consume in kilobytes.
  casuToolName = 'cir_imcore_list'
CASU software tool executable to produce lists
  dateRange = DateRange(begin=<mx.DateTime.DateTime object for '...
Range of observation dates to include.
  dateString = '20140908'
Date string for output dir date.
  internalOnly = False
Only run internal list-driven photometry programmes.
  runSynop = False
Run list-driven photometry on each individual stack? Just those that contribute t---++ Modifications to WSA non-survey and VSA schema files
  oneOnly = False
Use one FrameGroup only for testing
  skipCats = False
Skip catalogue creation and move directly onto ingest (Testing only)
  isTrialRun = False
hash(x)

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 

Invoke list-driven photometry for a specified programme in the WFCAM Science Archive. The technique produces consistent photometry across all WFCAM filters for the image data within a given field.

Method: for the given programme ID, the procedure is: i) establish the list of fields to be analysed; ii) remove any previous remeasurements based on deprecated or updated frame sets; iii)

Overrides: wsatools.DbConnect.CuSession.CuSession._onRun
To Do:
  • Break up into functions.
  • First just work on MergeLog - forget multi-epoch.
  • A lot of work is needed on the schema - the tags etc.
  • Run imcore_list detector by detector for increased efficiency?
  • TILES -- do not have filtered tiles for OB level data. Have to reproduce!! or run list-driven on pawprints and calculate weighted mean (may also work on overlaps, but seeing issues)
  • Run list-driven on pawprints for all tiles.
  • Luptitudes instead of magnitudes
  • Run from J-band list, not main Source table - option in survey requirements
  • Update RequiredListDrivenProduct - like RequiredNeighbours?
  • Add column for filtered tiles into Multiframe (for VISTA).

createIlluminationTableList(self)

source code 

Create the list of used illumination tables and write it for use with exnumeric to the working directory.

To Do: Move CU4 version to Astrometry?? and link to that.

filterCat(self, listDrivCatName, origCatName, sourceList)

source code 

Remove sources outside edge. Add in sourceIDs

To Do: Do this in C++ code -- more efficient.

runLDExtractor(self, mfl, sourceList)

source code 

Run CASU Extractor.

To Do:
  • Parallelise - like CU13
  • Describe inputs, e.g. args.
  • Add in ZP etc...

setUpWorkingDirs(self, spaceRequired)

source code 

Creates the directory to store newly created deep stacks.

Parameters:
  • spaceRequired (float) - Amount of disk space required.
Returns: str
Full path to directory where deep stacks will be created.

Class Variable Details [hide private]

dateRange

Range of observation dates to include.

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

runSynop

Run list-driven photometry on each individual stack? Just those that contribute t---++ Modifications to WSA non-survey and VSA schema files

Modify the relevant Template, see <nop>SystemConstants for the <nop>autoTemplateSchema or <nop>autoTemplateNeighbourSchema. Consult AutoTemplateSchema to comprehend the templates and create these using =src/curation/helpers/SetupProgramme.py= or the template parsing part of CU21 that is described in NonSurveyCuration#SchemaUpdate. o the MergeLog table.

Value:
False