obstools.fix_ldt_header module

FITS File Utility Module

LDTObserverTools contains python ports of various LDT Observer Tools

Lowell Discovery Telescope (Lowell Observatory: Flagstaff, AZ) https://lowell.edu

This file contains FITS Header utility routines.

class obstools.fix_ldt_header.FixLdtHeader[source]

Bases: ScriptBase

Script class for fix_ldt_header tool

Script structure borrowed from pypeit.scripts.scriptbase.ScriptBase.

classmethod get_parser(width=None)[source]

Construct the command-line argument parser.

Parameters:
  • description (str, optional) – A short description of the purpose of the script.

  • width (int, optional) – Restrict the width of the formatted help output to be no longer than this number of characters, if possible given the help formatter. If None, the width is the same as the terminal width.

  • formatter (HelpFormatter) – Class used to format the help output.

Returns:

ArgumentParser – Command-line interpreter.

static main(args)[source]

Main Driver

Simple function that calls the fixer.

obstools.fix_ldt_header.fix_ldt_header(files: str | Path | list, keyword: str, new_value)[source]

Change FITS header keywords

Sometimes at the telescope, incorrect or incomplete information is placed into the FITS header. This routine is a simple wraper around CCDPROC functions for easily making changes to these keywords.

Parameters:
  • files (str or Path or list) – The file(s) for which to update FITS keywords

  • keyword (str) – FITS keyword to update

  • new_value (Any) – New value for the FITS keyword