Tools to work with the VDFS FITS file collection.
Author:
E. Sutorius, N.J.G. Cross
Organization:
WFAU, IfA, University of Edinburgh
Contributors:
I.A. Bond, R.S. Collins
Requires:
PyFITS
|
|
|
combHeaders(priHeader,
secHeader)
Combines the header keywords from a primary header and a secondary. |
source code
|
|
|
|
dict(str: str)
|
createFileListDict(progTable,
fileTag=None,
workingDir=None,
isList=False)
Creates a dictionary of full paths to the files that list the newly
created file products to be ingested into the given database for the
given programme, referenced by product type. |
source code
|
|
str
|
|
str
|
|
|
|
list(tuple(int, float, float, int, int, str))
|
findProduct(progID,
releaseNum,
productID,
prodType,
prodInfo,
filterTable,
isDev=False,
sysc=SystemConstants("WSA"),
directory=None)
Finds all the available stacks that cover the mosaic in question. |
source code
|
|
int
|
|
str
|
|
|
|
list(tuple(str, list(str)))
|
getAllPaths(disks,
fitsDirs=[ ' ingest/fits ' ] )
Find all paths with the given FITS sub-directory name if the given
list of disks, where FITS files are stored. |
source code
|
|
str
|
getCatalogue(filePath)
Returns:
The full path to the catalogue file for the corresponding image file
path. |
source code
|
|
str
|
getConfMap(filePath)
Returns:
The full path to the confidence image map for the corresponding image
file path. |
source code
|
|
str
|
|
list(int)
|
|
FileList
|
getFileList(filePath)
Returns:
List of image, confidence map and catalogue file paths for given
image file path. |
source code
|
|
str
|
|
str
|
|
str
|
|
float
|
|
tuple(int,str)
|
|
str
|
getSwarpCat(filePath)
Returns:
Returns the path to the corresponding catalogue of the given SWARP
image, if the catalogue exists, else None. |
source code
|
|
str
|
getSwarpConfMap(filePath)
Returns:
Returns the path to the corresponding confidence map of the given
SWARP image, if the confidence map exists, else None. |
source code
|
|
|
|
str
|
|
int
|
|
int
|
|
pyfits.HDUList
|
open(filePath,
mode=' readonly ' ,
doNotScale=True,
**kwds)
Wrapper to pyfits.open() function to handle change of interface in
versions subsequent to 2.3.1dev650 and the change in default
behaviour since PyFITS version 1.4.1. |
source code
|
|
|
parseHistory(card)
Temporary wrapper function to handle transition to pyfits 3. |
source code
|
|
|
prepHeaders(filePathName,
confPathName,
components,
expTimes=[ ] ,
dfsIDString=None,
bScale=None)
Prepares the headers of FITS files to be ingested into the archive,
with the correct provenance etc. |
source code
|
|
|
checkForUnicodeError(hduList,
fileName)
Tests for unicode error |
source code
|
|
|
|
|
stripServer(filePathName)
Strip server name from file path. |
source code
|
|
|
|
|
|
int
|
writeToFitsHdu(fitsFile,
hduno,
key,
value,
descr,
redoing=False,
verify=' exception ' )
Write a FITS key, it's value and comment into the HDU of a given
file. |
source code
|
|