Last modified: September 2011

URL: https://cxc.cfa.harvard.edu/ciao/ahelp/write_arrays.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.17

write_arrays

Context: contrib

Synopsis

Write arrays to an ASCII file

Syntax

write_arrays(filename, args, [fields=None, sep=" ", comment="#",
clobber=False, linebreak="\n", format="%g"])

Description

Write a series of arrays as a table to an ASCII file.

Loading the routine

The routine can be loaded into Sherpa by saying:

from crates_contrib.utils import *

Function arguments


Examples

Example 1

sherpa> write_arrays("out.dat", [arr1, arr2, arr3])

Write arrays arr1,arr2,arr3 to a file out.dat

Example 2

sherpa> write_arrays("out.dat", [arr1, arr2, arr3],
fields=["arr1","arr2","arr3"], clobber=True)

Write arrays arr1,arr2,arr3 to a file out.dat with column headers "#arr1 arr2 arr3", clobbering if necessary


Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

Refer to the CIAO bug pages for an up-to-date listing of known issues.

See Also

contrib
make_image_crate, make_table_crate, scale_image_crate, smooth_image_crate, write_columns
crates
add_col, add_key, add_piximg, delete_col, delete_key, delete_piximg, read_file, read_pha, read_rmf, write_file, write_pha, write_rmf