SCT: Importing Source Lists
Syntax
Text files with source lists can be imported into the SCT if they use the following syntax. Note that this is the same format as for the PST, so if you have uploaded your source list into the PST, you can use the same file for uploading in the SCT. Every line containing any source information in the file must define a separate source as:
sourceName;groupNames;coordSystem;epoch;longitude;latitude;refFrame;convention;velocity;calibrator;
The text file should only contain lines formatted as above, or lines that are known to be ignored by the parser (i.e., empty or whitespace-only lines and comment lines starting with an # (octothorpe)). An (optional) exception is if the very first line is starting with an * (asterisk); the string after the asterisk will replace the default source catalog name, where a leading space in the string is ignored. Start with the catalog name syntax line before any source syntax line or any comment line or this source catalog name will not be picked up (and an "[Unnamed Catalog]" results):
* Source catalog name in the SCT
# this is a line with a comment and the previous line is the syntax used to include all sources into a non-default
# (the catalog name line will be ignored by the PST when uploading this file)
# the rest of the source list file contains source lines mandated as above and other ignored lines
<source1 line>
<source2 line>
...
Every data line must have ten semi-colons (;), including the one after the final calibrator field; note that the catalog name line, the one starting with the asterisk, should not contain any semi-colon.
Details and possible (predefined) values per field are described in the table below.
sourceName |
Mandatory, single value
|
groupNames |
Optional, unlimited number of comma-separated values
|
coordSystem |
Optional, single value (defaults to equatorial), not case-sensitive
|
epoch |
Optional, single value (defaults to J2000), not case-sensitive
|
longitude |
Mandatory, single value
|
latitude |
Mandatory, single value
|
refFrame |
Mandatory in combination with convention and velocity, single value, not case-sensitive
|
convention |
Mandatory in combination with refFrame and velocity, single value, not case-sensitive
|
velocity |
Mandatory in combination with refFrame and convention, single value
|
calibrator |
Optional single value (defaults to N), not case-sensitive
|
To ingest a text file with a source list, navigate to the SCT. Select from the menu FILE → IMPORT and then select PST for the import format. After providing a file to import, a new catalog with the default name [Unnamed Catalog] will be created. If the imported sources need to be included in a different catalog, or a different catalog group, use the general copy/paste method of the web application to move the sources around. Alternatively, change the name of the new unnamed catalog in the SCT using the Properties tab of that catalog if a name was not specified with an * (asterisk) line.
Source List Examples (in SCT/PST format)
Minimalist: Source name and coordinates only, default coordinate system, epoch and unspecified velocity.
J0433+0521;;;;04:33:11.095535;05:21:15.619420;;;;;
J1119−0302;;;;11:19:25.3;−03:02:51.32;;;;;
<some_name> <4 times ";"> <RA_j2000> ; <Dec_j2000> <5 times ";">
Explicit: Same data as minimalist, above, but with coordinate system and epoch stated in long form, and spaces for ease of reading.
J0433+0521; ; equatorial; J2000; 04:33:11.095535; 05:21:15.619420; ; ; ; ;
J1119−0302; ; equatorial; J2000; 11:19:25.3 ; −03:02:51.32 ; ; ; ; ;
Full: All fields are specified, starting by naming the catalog MyPrivateList in which these sources should appear (instead of the default Unnamed Catalog); multiple values in those fields that allow it, with spaces in source and group name, some case-preserved and case-ignored variable names, and with optional trailing comma in velocities.
* MyPrivateList
# This is my private list of secret sources..
Secret Source; My Recipes, Private; equatorial; J2000; 12:34:56.789; 87.65432; lsR; Optical; −98.6,; y;