kai.reduce.util

Attributes

module_dir

dir_alias_file

dir_alias

Functions

rmall(files)

Remove list of files without confirmation.

mkdir(dir)

Make directory if it doesn't already exist.

getcwd()

IRAF doesn't like long file names. This reduces them.

trimdir(olddir)

IRAF doesn't like long file names. This reduces them.

cp_change_prefix(arg1, arg2)

Takes files beginning with arg1 and replaces them with arg2

cp_change_suffix(arg1, arg2)

Takes files ending with arg1 and replaces them with arg2

update_header_coords(fileList)

Updates coordinates in the header for XREF, YREF

Module Contents

kai.reduce.util.module_dir[source]
kai.reduce.util.dir_alias_file[source]
kai.reduce.util.dir_alias[source]
kai.reduce.util.rmall(files)[source]

Remove list of files without confirmation.

kai.reduce.util.mkdir(dir)[source]

Make directory if it doesn’t already exist.

kai.reduce.util.getcwd()[source]

IRAF doesn’t like long file names. This reduces them.

kai.reduce.util.trimdir(olddir)[source]

IRAF doesn’t like long file names. This reduces them.

kai.reduce.util.cp_change_prefix(arg1, arg2)[source]

Takes files beginning with arg1 and replaces them with arg2 Must be in the directory where files live

kai.reduce.util.cp_change_suffix(arg1, arg2)[source]

Takes files ending with arg1 and replaces them with arg2 Must be in the directory where files live

kai.reduce.util.update_header_coords(fileList)[source]

Updates coordinates in the header for XREF, YREF and XSTREHL, and YSTREHL.

fileList : list of files to update