edu.nrao.sss.model.source.parser
Class OldVlbaSourceCatalogReader
java.lang.Object
edu.nrao.sss.model.source.parser.AbstractSourceCatalogReader
edu.nrao.sss.model.source.parser.OldVlbaSourceCatalogReader
- All Implemented Interfaces:
- SourceCatalogReader
public class OldVlbaSourceCatalogReader
- extends AbstractSourceCatalogReader
A parser of source catalog text files in the VLBA's format.
Lines that start with "#" are comments. Data lines conform
to this format:
J2000 name IVS name Right ascension Declination Pos_err X-band flux S-band flux C-Cat
Total Unres Total Unres
hr mn seconds deg mn seconds mas Jy Jy Jy Jy
Whitespace is used as the delimiter. This parser does not count columns in
order to find the next field, it just uses the whitespace. This means you
may put any number of spaces between data items. Here is an example from
the VLBA catalog:
J1254+4536 1252+458 12h54m28.828654s +45d36'04.32606" 1.02 0.12 0.10 0.21 0.20 C-VCS1
For more detailed information about this format, see the
VLBA Calibrator List.
Version Info:
$Revision: 830 $ |
$Date: 2007-08-20 10:43:04 -0600 (Mon, 20 Aug 2007) $ |
$Author: dharland $ |
- Since:
- 2007-03-14
- Author:
- David M. Harland
Methods inherited from class edu.nrao.sss.model.source.parser.AbstractSourceCatalogReader |
getCatalog, getError, getErrorCount, getErrors, getOriginOfSourceInformation, getPrefixForHistoricalRecords, getSuccess, putError, read, read, read, read, read, read, read, setOriginOfSourceInformation, setPrefixForHistoricalRecords |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OldVlbaSourceCatalogReader
public OldVlbaSourceCatalogReader()
- Creates a new instance.
read
public boolean read(Reader in,
SourceCatalog destination)
- NOTE: This method closes the incoming Reader!
- Specified by:
read
in interface SourceCatalogReader
- Specified by:
read
in class AbstractSourceCatalogReader
- Parameters:
in
- the source of text that can be read and turned into
Source
objects.destination
- the catalog to which the sources should be
added. If this parameter is null,
a new catalog will be created.
- Returns:
- true if nothing unexpected occurred while reading data.
- See Also:
AbstractSourceCatalogReader.read(java.io.Reader,
edu.nrao.sss.model.source.SourceCatalog)
Copyright © 2009. All Rights Reserved.