astro.toolbox package

Submodules

astro.toolbox.EsoExposureTimeCalculator module

Python wrapper for ESO’s Exposure Time Calculator

See :
http://www.eso.org/observing/etc/bin/gen/form?INS.MODE=swimaging+INS.NAME=OMEGACAM

Example :

from astro.toolbox.EsoExposureTimeCalculator import eso_dict_default, request_data, parse_data # set parameters in eso_dict_default data = request_data(eso_dict_default) data_dict = parse_data(data)

astro.toolbox.EsoExposureTimeCalculator.parse_data(data)

parse the html data and return dict

astro.toolbox.EsoExposureTimeCalculator.request_data(eso_dict)

submit the given dictionary with parameters to ESO

astro.toolbox.InstrumentIngestor module

Add an instrument, its chips, and its filters to the database, adding only those that do not exist.

class astro.toolbox.InstrumentIngestor.InstrumentIngestor(instrument_id, chip_config=0, commit=False)

Bases: object

check_preconditions()
commit_objects()
ingest()
query_database()
report()
exception astro.toolbox.InstrumentIngestor.InstrumentIngestorError(message)

Bases: common.log.Error.Error

astro.toolbox.KIDSCoaddition module

Process to coadd level a set of tiles identified by name and time criteria.

Processing can take two forms: first-look or production. The command- line interface accepts two mutually exclusive switches:

–firstlook –production

three optional switches:

–singlehost –nodelays –dryrun

and three variables:

–serialdpu –sortobs –nnodes

The first processes to coadd level the set specified if a coadd does not yet exist for the tile. SourceLists can also be made, but usually on a subsequent run as the coadd is seldom done when the task is initiated. The second processes to coadd level (with global astro/photometry) the set specified reguardless of existence. Pre- filtering is done at the time if task script instantiation (see source file).

The optional switches cause the process to pause for completion of the final coadd (singlehost), remove the inter-task delays designed to ease the load on the datasevers, and run everything except the actual processing (e.g., check and queries only). The variable arguments specify the DPU address for processing non-parallel tasks, modify the processing order by sorting the OBs by their start date (-1, 0, 1, for reverse, none, forward sort), and specify the number of physical nodes to request simultaneously.

-help displays this message.

class astro.toolbox.KIDSCoaddition.BatchProductionCoaddition(obnames=[], instrument='OMEGACAM', is_valid=2, GAS=True, GPS=True, lengths=[124, 128, 155, 160], commit=True)

Bases: astro.toolbox.KIDSCoaddition.KIDSCoaddition

Target-process CoaddedRegriddedFrames with (G)Astrom.

execute()
organize_jobs()
process_astrom()
process_coadds()
class astro.toolbox.KIDSCoaddition.FirstLookCoaddition(raws=[], names=['KIDS*_*'], oblocks=[], instrument='OMEGACAM', nnodes=0, is_valid=2, lengths=[124, 128, 155, 160], check_crosstalk=False, window=7, now=None, sortobs=0, force=False, delays=False, singlehost=False, serialdpu='', dryrun=False, commit=True)

Bases: astro.toolbox.KIDSCoaddition.KIDSCoaddition

Create “first look” CoaddedRegriddedFrames if no coadd yet exists.

execute()
process_coadds()
process_sourcelists()
class astro.toolbox.KIDSCoaddition.KIDSCoaddition(*args, **kwargs)

Bases: object

Abstract base class for processing KIDS data

check_preconditions()
query_database()
class astro.toolbox.KIDSCoaddition.ProductionCoaddition(raws=[], names=[], oblocks=[], instrument='OMEGACAM', is_valid=2, GAS=True, GPS=True, nnodes=0, lengths=[96, 124, 128, 155, 160], check_crosstalk=False, window=1825, now=None, sortobs=0, force=True, delays=False, singlehost=False, paralleldpu='', serialdpu='', dryrun=False, commit=True)

Bases: astro.toolbox.KIDSCoaddition.KIDSCoaddition

Target-process CoaddedRegriddedFrames with (G)Astrom.

check_preconditions()
execute()
process_astrom_photom()
process_coadd(obstartname, i, num)
class astro.toolbox.KIDSCoaddition.Timer(label='')

Bases: object

get_ellapsed_time()
report()
reset()
start()
stop()
astro.toolbox.KIDSCoaddition.add_comment(obj, content, verbose=False)
astro.toolbox.KIDSCoaddition.astrom_exists(raws, verbose=True, GAS=True, return_result=False)
astro.toolbox.KIDSCoaddition.astrom_exists_quick(raws, verbose=True, GAS=True)
astro.toolbox.KIDSCoaddition.astrom_exists_sql(ob=None, raws=[], GAS=True, verbose=False)
astro.toolbox.KIDSCoaddition.coadd_exists(raws, verbose=True, GAS=True, GPS=True)
astro.toolbox.KIDSCoaddition.coadd_exists_quick(raws, verbose=True, GAS=True, GPS=True)
astro.toolbox.KIDSCoaddition.coadd_exists_sql(ob=None, raws=[], GAS=True, GPS=True, verbose=True)
astro.toolbox.KIDSCoaddition.del_comment(obj, content, verbose=False)
astro.toolbox.KIDSCoaddition.globalsl_exists_sql(ob=None, raws=[], GAS=True, verbose=False)
astro.toolbox.KIDSCoaddition.gphotom_exists(raws, verbose=True, GPS=True, return_result=False)
astro.toolbox.KIDSCoaddition.gphotom_exists_old(raws)
astro.toolbox.KIDSCoaddition.has_comment(obj, content, verbose=False)
astro.toolbox.KIDSCoaddition.invalidate(obj, comment)
astro.toolbox.KIDSCoaddition.main()
astro.toolbox.KIDSCoaddition.parse_commandline()
astro.toolbox.KIDSCoaddition.photom_exists_sql(ob=None, raws=[], GPS=True, verbose=False)
astro.toolbox.KIDSCoaddition.regrid_exists_sql(ob=None, raws=[], GAS=True, GPS=True, verbose=True)
astro.toolbox.KIDSCoaddition.usage()

astro.toolbox.aweastrosetup module

astro.toolbox.aweastrosetup.main()

astro.toolbox.checkallfiles module

astro.toolbox.checkallfiles.changed_filenames(network='')
astro.toolbox.checkallfiles.collect()
astro.toolbox.checkallfiles.dump_filenames(filenames, reset=False)
astro.toolbox.checkallfiles.existing_files(network='')
astro.toolbox.checkallfiles.load_filenames(reset=False)
astro.toolbox.checkallfiles.missing_files()
astro.toolbox.checkallfiles.multiple_occs(network='')
astro.toolbox.checkallfiles.multiple_refs(network='')
astro.toolbox.checkallfiles.redo()
astro.toolbox.checkallfiles.show_ivalid()
astro.toolbox.checkallfiles.total_size(network='')

astro.toolbox.compressWeightFrames module

astro.toolbox.compressWeightFrames.load_filenames(dumpname)
astro.toolbox.compressWeightFrames.main()

astro.toolbox.dbawutil module

astro.toolbox.dbimportall module

astro.toolbox.dbsetallcomments module

astro.toolbox.dbsetallcomments.getcomments(aclass)

astro.toolbox.ldacusnoserver module

astro.toolbox.ldacusnoserver.client()
astro.toolbox.ldacusnoserver.main()
astro.toolbox.ldacusnoserver.server()
astro.toolbox.ldacusnoserver.signoff(signum, frame)

astro.toolbox.migratesources module

astro.toolbox.mkscat module

Converts a FITS table to Skycat catalogue

astro.toolbox.repair-sourcelist-boundaries module

Module contents

This directory contains a set of tools.