Package helpers :: Module FilterTableCalculator :: Class FilterCalculator
[hide private]

Class FilterCalculator

source code


Calculate filter parameters.


To Do: make more sophisticated. Transmission curves read from FITS files with instructions on how to use encapsulated in header values.

Nested Classes [hide private]
    Errors & Exceptions

Inherited from wsatools.DbConnect.DbSession.DbSession: CatalogueServerError, DisconnectError

Instance Methods [hide private]
 
calculatePars(self)
Set up programme database settings and/or schema.
source code
 
readInFilterFile(self, filePath, columns=[0,1], lambFact=None, transFact=None)
Read in data from file.
source code
 
rebinFilterData(self, filterData)
This takes a data set with constant or varying stepsize and rebins it to the a constant given stepsize.
source code
 
recalWavelength(self, filterTable, filterData) source code
 
getAebv(self, filterData) source code
 
calcDeltaM(self, filterData, dustFac) source code
 
fillMissingEllData(self)
Fill in any zeros in ellip galaxy data
source code
 
getVegaToAB(self, filterData)
Calculate vegaToAB correction, Based on method from Benitez
source code
 
getOneSecMlVg(self, filterID)
Select short exposure stacks in DB and measure mag limit for low airmass, low seeing, low back stacks.
source code

Inherited from wsatools.DbConnect.DbSession.DbSession: __del__, __init__, __str__, addColumn, addIndex, alterColumn, checkConstraints, checkSchema, commitTransaction, copyIntoTable, copyTable, createObjects, createStatistics, createTable, createUser, delete, deleteRows, dropColumn, dropObjects, dropTable, enableDirtyRead, existsTable, freeProcCache, getBestVolume, goOffline, grantAccess, insertData, query, queryAllowsNulls, queryAttrMax, queryColumnNames, queryDataTypes, queryEntriesExist, queryNumRows, queryRowSize, renameTable, rollbackTransaction, runOnServer, sharePath, shrinkTempDb, tablePath, testSharePath, truncate, uncPath, update, updateEntries, updateStatistics

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

Class Variables [hide private]
  wlRes = 4.
  filterList = None
hash(x)
  maxNoDets = 50000
  leffAebvFit = numpy.poly1d(numpy.array([3.70500678e-18,-3.1707...

Inherited from wsatools.DbConnect.DbSession.DbSession: database, isLoadDb, isRealRun, isTrialRun, server, sysc, userName

Instance Variables [hide private]
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

readInFilterFile(self, filePath, columns=[0,1], lambFact=None, transFact=None)

source code 

Read in data from file. Convert to correct units Angs and trans rebin to correct

rebinFilterData(self, filterData)

source code 

This takes a data set with constant or varying stepsize and rebins it to the a constant given stepsize.

To Do: smoothing, lsq


Class Variable Details [hide private]

leffAebvFit

Value:
numpy.poly1d(numpy.array([3.70500678e-18,-3.17077496e-13, 1.20646461e-\
08,-3.75441111e-05, 1.89276578e-01]))