MegacamParseTask

class lsst.obs.cfht.ingest.MegacamParseTask(config=None, name=None, parentTask=None, log=None)

Bases: lsst.pipe.tasks.ingest.ParseTask

Methods Summary

getExtensionName(md) Get the name of an extension.
getInfo(filename) Get information about the image from the filename and its contents
translate_ccd(md)
translate_defects(md)
translate_filter(md) Translate a full filter description into a mere filter name
translate_taiObs(md)

Methods Documentation

getExtensionName(md)

Get the name of an extension.

Parameters:
md : PropertySet

Metadata to get the name from.

Returns:
name : str or None

Name of the extension if it exists. None otherwise.

getInfo(filename)

Get information about the image from the filename and its contents

Here, we open the image and parse the header, but one could also look at the filename itself and derive information from that, or set values from the configuration.

@param filename Name of file to inspect @return File properties; list of file properties for each extension

translate_ccd(md)
translate_defects(md)
translate_filter(md)

Translate a full filter description into a mere filter name

Besides being an example of a translator, this is also generally useful. It will only be used if listed as a translator in the configuration.

translate_taiObs(md)