Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The GBIN format is now documented in the STILTS and TOPCAT user documents. The documentation text is stored in the GBIN package and imported into SUN/253; the same could be done for SUN/256, but at present the other formats are just documented in a couple of lines there, so follow the same practice. That was done (presumably?) to avoid repeated text, but importing the text from an external package like I have done here would make it work. Maybe fix it for the other formats one day.
- Loading branch information
Showing
7 changed files
with
129 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Required entities: | ||
! &gbin-package-name; TOPCAT | ||
! &gbin-package-cmdline; topcat | ||
! &gbin-package-classpath; topcat-full.jar | ||
| &gbin-package-mainclass; uk.ac.starlink.topcat.Driver | ||
!--> | ||
|
||
<p>Suppose you have the <code>MDBExplorerStandalone.jar</code> file | ||
mentioned above, you can do it by starting &gbin-package-name; like this: | ||
<verbatim> | ||
&gbin-package-cmdline; -classpath MDBExplorerStandalone.jar | ||
</verbatim> | ||
or like this: | ||
<verbatim> | ||
java -classpath &gbin-package-classpath;:MDBExplorerStandalone.jar &gbin-package-mainclass; | ||
</verbatim> | ||
Note you will need to be using whatever version of java is required | ||
by GaiaTools, probably java 7. | ||
</p> | ||
|
||
<p>The GBIN format is recognised automatically, so you do not need to | ||
explicitly set the file type when loading GBIN files. | ||
</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- Required entities: | ||
! &gbin-package-name; TOPCAT | ||
!--> | ||
|
||
<p>GBIN format is a special-interest file format used within DPAC, | ||
the Data Processing and Analysis Consortium working on data from the | ||
<webref url="http://www.cosmos.esa.int/web/gaia">Gaia</webref> | ||
astrometry satellite. | ||
It is based on java serialization, and in all of its various forms | ||
has the peculiarity that you only stand any chance of decoding it | ||
if you have the Gaia data model classes on your java classpath at runtime. | ||
Since the set of relevant classes is very large, | ||
and also depends on what version of the data model your GBIN file | ||
corresponds to, those classes will not be packaged as part of | ||
the standard &gbin-package-name; distribution, | ||
so some additional setup is required to read GBIN files. | ||
</p> | ||
|
||
<p>As well as the data model classes, you must provide on the runtime | ||
classpath the GaiaTools classes required for GBIN reading. | ||
The table input handler accesses these by reflection, | ||
partly because GaiaTools is targeted at java 7 while STIL is at | ||
time of writing java 1.5 compatible, and partly to avoid an | ||
additional large library dependency for a rather niche requirement. | ||
It is likely that since you have to supply the required data model classes | ||
you will also have the required GaiaTools classes to hand as well, | ||
so this shouldn't constitute much of an additional burden for usage. | ||
</p> | ||
|
||
<p>In practice, if you have a jar file or files for pretty much any | ||
java library or application which is capable of reading a given | ||
GBIN file, just adding it or them to &gbin-package-name;'s classpath | ||
at run time ought to do the trick. | ||
Examples of such jar files are | ||
the | ||
<webref url="http://gaia.esac.esa.int/mdbexp/lib/MDBExplorerStandalone.jar" | ||
><code>MDBExplorerStandalone.jar</code></webref> | ||
file available from | ||
<webref url="http://gaia.esac.esa.int/mdbexp/"/>, | ||
or the <code>gbcat.jar</code> file you can build from the | ||
<webref url="http://gaia.esac.esa.int/dpacsvn/DPAC/CU9/software/gbcat/" | ||
>CU9/software/gbcat/</webref> | ||
directory in the DPAC subversion repository. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<p>The GBIN format doesn't really store tables, it stores arrays of | ||
java objects, so the input handler has to make some decisions about how to | ||
flatten these into table rows. It basically looks for public instance | ||
methods of the form <code>getXxx()</code> | ||
and uses the <code>Xxx</code> as column names. | ||
If the corresponding values are themselves objects with suitable getter | ||
methods, those objects are added as new columns instead. | ||
This more or less follows the practice of the | ||
<code>gaia.cu1.tools.util.GbinInterogator</code>/<code>gbcat</code> tool. | ||
Method names are sorted alphabetically. | ||
Arrays of complex objects are not handled well, | ||
and various other things may trip it up. | ||
See the source code (e.g. <code>uk.ac.starlink.gbin.GbinTableProfile</code>) | ||
for more details. | ||
</p> | ||
|
||
<p>Note that support for GBIN files is somewhat experimental. | ||
Please contact the author (who is not a GBIN expert) | ||
if it doesn't seem to be working properly | ||
or you think it should do things differently. | ||
</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters