"""A Place to store global variables and constants required to configure axe modules. See LICENSE.txt """ import os import shutil from astropy.io import fits from hstaxe.axeerror import aXeError from hstaxe.utils import set_logging _log = set_logging(filename='axe_output.log') # defaults to INFO # defaults __user_paths = { "AXE_IMAGE_PATH": 'DATA', "AXE_OUTPUT_PATH": 'OUTPUT', "AXE_CONFIG_PATH": 'CONF', "AXE_DRIZZLE_PATH": 'DRIZZLE', "AXE_SIMDATA_PATH": 'SIMDATA', "AXE_OUTSIM_PATH": 'OUTSIM', } __AXE_DRZTMP_SUB = 'tmp' __AXE_DRZTMP_LOC = os.path.join(__user_paths["AXE_DRIZZLE_PATH"], __AXE_DRZTMP_SUB) __user_paths['AXE_DRZTMP_LOC'] = __AXE_DRZTMP_LOC # notification of python + C only axe welcome_string = "* Welcome to hstaxe!\nThis version is independent of IRAF and PyRAF. *" print(f"\n{len(welcome_string)*'*'}")
import copy import math import logging from astropy.io import fits from .. import axe_asciidata from ..axeerror import aXeError from hstaxe.utils import set_logging # make sure there is a logger _log = logging.getLogger(__name__) _log = set_logging() # defaults to INFO class Interpolator: """General class to get interpolated values""" def __init__(self, input_file=None, indep=None, depen=None): """The method initializes an interpolator objects from various input. Parameters ---------- input_file: str data file name indep: list with independent data depen: list with dependent data """ # check whether a file is given if input_file is not None: