Multiple Object Search (Table Formatting)

Table Formatting Rules

KOA accepts four ASCII table formats of 1000 targets or fewer:

  • IPAC ASCII Column-Aligned
  • Comma-Separated Values (CSV) or Comma-Delimited
  • Tab-Delimited
  • A Simple List of Objects (such as astronomical source names)

Each format and its respective requirements are detailed below.

IPAC ASCII Column-Aligned Format (Download example.)

Pros: All table formats work equally well, however, this table is very easy to read because it is column-aligned. This document also allows additional column attributes, such as units or data types.

Cons: The data must be properly aligned within each column boundary.

The IPAC ASCII Column-Aligned Format, also known as IPAC Table Format, requires the following structure:

  • Rows starting with a vertical line ( | ) are table header lines and define the table column layout and metadata. The first of these (the only one required) must contain the names of each column (e.g., ra, dec, flux).
  • The columns in the header row are separated by a vertical line ( | ) to show the boundaries of each column. There is also a vertical line at the beginning and end of the header row.
  • There must be at least one row of data in the row directly following the header row, and the data should align with the column names
  • The number of cells containing data is equal to or less than the number of columns
  • The data columns are lined up because they are column-aligned, which also makes the data more readable.
  • Data must fit within the boundaries of each column and not extend beyond the vertical header lines.

Example of a basic IPAC ASCII Column-Aligned Format file:

|  object     |                ra            |         dec         |
     M56                  289.147941100             30.184500500
     ic4710               277.158208330             66.982277780
     hoix                  49.383333330             69.045833330
     tol89                210.339833330            -33.063777780
     ngc 4552             188.915863750             12.556341390
     M82                  148.969687500             69.679383330
     mrk33                158.132833330             54.401027780
     ngc1097               41.579375000            -30.274888890
     arp 22               179.874583330            -19.297222220
     M 65                 169.733166670             13.092222220

Note: Your table can contain:

  • All three columns (object, ra, dec). In this case, ra/dec will be used to resolve the search position, and the contents of the "object" column will be used simply as a label for your output results.
  • object only. Each object will be resolved by NED/SIMBAD into a searchable position.
  • ra/dec only. No object-name label will be attached to the rows on the output page.

In the above example, notice the vertical lines ( | ) between object, ra, and dec indicate the column boundaries. Additionally, the data are aligned to clearly identify the columns and do not span across multiple columns.

The IPAC ASCII Column-Aligned Format also has the added flexibility of allowing additional header rows so tables can have additional information such as comments, data types, and keywords. To learn more about this capability and how to use multiple header rows, read the Keyword and Comment Lines and Column Headers section of the DDGEN table documentation.

Comma-Separated Values (CSV) or Comma-Delimited Format (Download example.)

This is a format commonly exported from Microsoft Excel as a .csv file. In this format, each data cell is separated by a comma.

Pros: This is a compact format that has little risk of inserting non-printable characters (even tabs).

Cons: Files can appear unwieldy if commas are used within the data cells, which then requires that the entire is cell quoted (e.g., 1.23, "he said, ""No""",3.45 ).

Requirements for CSV tables include:

  • The first line must contain the names of each column.
  • If data within a cell includes a comma, the data must be enclosed within quotation marks (e.g., "M56,148").
  • The columns in the header row are separated by commas ( , ).
  • The data provided in the table are separated by commas ( , ).
  • The number of cells containing data is equal to or less than the number of columns.
  • Blank lines will be treated as blank data records, so omit them if possible.

Example of Comma-Separated Values (CSV) Format (also known as Comma Delimited):

object,ra,dec
M56,289.147941100,30.184500500
ic4710,277.158208330,-66.982277780
hoix,149.383333330,69.045833330
tol89,210.339833330,-33.063777780
ngc 4552,188.915863750,12.556341390
M82,148.969687500,69.679383330
mrk33,158.132833330,54.401027780
ngc1097,41.579375000,-30.274888890
arp 22,179.874583330,-19.297222220
M 65,169.733166670,13.092222220 

Note: Your table can contain:

  • All three columns (object, ra, dec). In this case, ra/dec will be used to resolve the search position, and the contents of the "object" column will be used simply as a label for your output results.
  • object only. Each object will be resolved by NED/SIMBAD into a searchable position.
  • ra/dec only. No object-name label will be attached to the rows on the output page.

Tab-Delimited Format (Download example.)

This is a format commonly exported from Microsoft Excel as a .txt file by selecting Tab-Delimited when saving the file. In this format, each data cell is separated by a tab character.

Pros: From a processing standpoint, this is the most program-friendly format. It is very compact and easy to parse. From a user's perspective, it is a format that can be easily created with Microsoft Excel by saving the file as Text (Tab Delimited).

Cons: Because tab characters are interpreted differently by different systems, users must understand that tabs are used in IPAC's table formatting context as a means of separating data -- NOT for data alignment. Users must take special care to not use tabs within a data cell, which will create too many columns and cause a failed table upload. Also, use one tab separator per column space, even if the data don't align exactly on the screen.

Requirements for tab-delimited tables are virtually identical to those for comma-separated and include:

  • The first line must contain the names of each column.
  • The columns in the header row are separated by tabs.
  • The data provided in the table are separated by tabs.
  • The number of cells containing data is equal to or less than the number of columns.
  • Blank lines will be treated as blank data records, so omit them if possible.

Example of Tab-Delimited Format:

object	ra	dec
M56	289.147941100	30.184500500
ic4710	277.158208330	-66.982277780
hoix	149.383333330	69.045833330
tol89	210.339833330	-33.063777780
ngc 4552	188.915863750	12.556341390
M82	148.969687500	69.679383330
mrk33	158.132833330	54.401027780
ngc1097	41.579375000	-30.274888890
arp 22	179.874583330	-19.297222220
M 65	169.733166670	13.092222220 

Note: Your table can contain:

  • All three columns (object, ra, dec). In this case, ra/dec will be used to resolve the search position, and the contents of the "object" column will be used simply as a label for your output results.
  • object only. Each object will be resolved by NED/SIMBAD into a searchable position.
  • ra/dec only. No object-name label will be attached to the rows on the output page.

In the above example, the columns are lined up using tab characters between each cell. Note the columns may not line up exactly, even if tabs are applied consistently (as in row #5). Resist the temptation to add additional tabs in order to make the data align correctly; this will only create ambiguity with your data, and your table upload will fail.

Simple List of Object Names (Download examples: IPAC table or CSV file)

Pros: IPAC table or CSV table with a single keyword header for a list of objects.

Cons: This format requires name resolution using external name databases if data provided are object names. Each lookup query takes a few seconds per object, so processing large lists may be slow. Coordinates are transformed to RA and Dec in decimal degrees

Requirements for this format are minimal:

  • Each line has one item.
  • The entire line is treated as an object name

Examples:

|   object|
 M56
 ic4710
 hoix
 ngc 4552
 M82
 ngc1097
 M 65
or
object,
M56,
ic4710,
hoix,
ngc 4552,
M82,
ngc1097,
M 65,


Using Sexagesimal or Galactic Coordinates

KOA table processing includes a fairly careful analysis of the input to determine location on the sky. Coordinates can be entered as decimal degrees or sexagesimal; in Galactic, Equatorial or Ecliptic (with/or without Equinox); as multiple columns or a single column coordinate string; or (if a single string) as an object name to be resolved via astronomical name resolvers.

The first step in the analysis is to identify the best column(s) to use as coordinates. If any of the column pairs in the table below are given, they will be interpreted as shown in the Result column.

Note: This list, which is extensible, is based on data formats used by various data providers. In all examples, input column names are not case-sensitive.

Right AscensionDeclinationResult
radecEquatorial *
cracdecEquatorial *
ra2000dec2000Equatorial J2000
ra2000de2000Equatorial J2000
_raj2000_dej2000Equatorial J2000
raj2000dej2000Equatorial J2000
raj2000decj2000Equatorial J2000
ra1950dec1950Equatorial B1950
ra1950de1950Equatorial B1950
rab1950 deb1950Equatorial B1950
rab1950decb1950Equatorial B1950
elon elat Ecliptic J2000
elon2000elat2000Ecliptic J2000
elon1950elat1950Ecliptic B1950
glonglatGalactic
lbGalactic
lonlat **
starlonstarlat **

* The first two examples default to J2000, unless an Equinox column is included.

* * The last two default to Equatorial J2000 unless extra Equinox ("equinox" or "epoch") and Coordinate-system ("coord sys" or "sys" or "csys") columns are explicitly given.

If no complete set of coordinate columns is found, the table is checked for a variety of possible columns that might contain coordinate strings or object names: "object," "source," "objname," "objstr," "locstr," "location," "star," "galaxy," or "name."

The next step is to parse the coordinates or look up the object by name. Again, the processing allows for a fairly wide variety of inputs. Object name lookup includes checking with NED, SIMBAD, and other, more specialized, lists.

Coordinates can be decimal degrees or sexagesimal in various forms:

LongitudeLatitude
3h23m45.6s-37d15m41s
3 23 45.6-37 15 41
3h 23m 45.6s-37d 15m 41s
3 23' 45.6"-37 15' 41"
50d 56m 24s-37d 15m 41s
50.94000-37.2614

The final step in the processing is to output a column-aligned ASCII table with the same information content as the user's input, plus, if not already included, columns named '"ra" and "dec" containing the right ascension and declination in decimal degrees J2000. Further processing is based on these values.