SIMBATCH or how to exploit Simbad in batch...
Posted: 23.08.2008, 18:27
Well...
perhaps not everyone interested in astronomical data is aware of the following:
The powerful possibility to exploit the SIMBAD astronomical world data base
http://simbad.u-strasbg.fr/simbad/ in batch operation for large amounts of data, using simple scripting commands.
I do this since a long time and thought I point this possibility out in public for once.
Note, the same batch facility also exists for the extragalactic database NED and has been used extensively by me in my deepsky.dsc file.
This batch option can be enormously useful for many applications.
+++++++++++++++++++++++++
Most of you will know that -- besides accuracy -- my main concern is standardization of Celestia's data base. This starts e.g. with the request for exhaustive cross listings of identifiers for celestial objects, with a syntax that e.g. is understood in SIMBAD queries!
++++++++++++++++++++++++++
So here is a specific example, how I derived complete cross listings for the identifiers in my forthcoming globular clusters implementation --consistently with SIMBAD syntax!
But before I release the globular code/data, we should discuss a bit:
++++++++++++++++++++++++++
In some cases, the number of alternative names@SIMBAD is quite HIGH. E.g. 19 for the famous 47 Tuc globular! Usually, it's rather 4-5 entries.
So which ones do we want to include, which ones to skip?
+++++++++++++++++++++++++++
Possibly a clever general strategy would be to make Celestia recognize PRECISELY the names SIMBAD recognizes, but to display only a selection of the most popular alternative names on the top of the OGL canvas!
Let me know what you think....
Fridger
perhaps not everyone interested in astronomical data is aware of the following:
The powerful possibility to exploit the SIMBAD astronomical world data base
http://simbad.u-strasbg.fr/simbad/ in batch operation for large amounts of data, using simple scripting commands.
I do this since a long time and thought I point this possibility out in public for once.
Note, the same batch facility also exists for the extragalactic database NED and has been used extensively by me in my deepsky.dsc file.
This batch option can be enormously useful for many applications.
+++++++++++++++++++++++++
Most of you will know that -- besides accuracy -- my main concern is standardization of Celestia's data base. This starts e.g. with the request for exhaustive cross listings of identifiers for celestial objects, with a syntax that e.g. is understood in SIMBAD queries!
++++++++++++++++++++++++++
So here is a specific example, how I derived complete cross listings for the identifiers in my forthcoming globular clusters implementation --consistently with SIMBAD syntax!
- One additional command in my globulars.pl PERL script suffices to print out just the main names of my 140 globulars into a file (see the example below).
- In order to submit this file to SIMBATCH, you merely need to add a format statement on top. It specifies what you want to have displayed and HOW the format should be.
Here is a simple example of such a format statement along with the first few globular names:Code: Select all
format object form1 "NumberIds: %#IDLIST\nIdentifiers:%IDLIST[%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S):%*(S)]\nRaDec(decimal): %COO(d;A,D;FK5;J2000)\nSpectralType: %SP(S)\nFluxlist(U,B,V,R,I): %FLUXLIST(U,B,V,R,I)[%6.2*(F), ]\n\n"
NGC 104
NGC 288
NGC 362
NGC 1261
Pal 1
AM 1
ERI Star Cluster
Pal 2
NGC 1851
NGC 1904
NGC 2298
NGC 2419
NGC 2808
Name E 3
Pal 3
... 140 entries altogether ...
The syntax is explained with lots of examples in the corresponding HELP:
http://simbad.u-strasbg.fr/simbad/sim-h ... im-fscript
This input file can be VERY conveniently submitted to SIMBAD with a browser facility.
http://simbad.u-strasbg.fr/simbad/sim-fscript With this browser, select your input file on your machine and click "submit file". A few seconds later, the result from my formatted output request is ready. Note I requested as output, the complete listings of- alternative identifiers in SIMBAD, along with their number
- Ra Dec coordinates as a cross-check in decimal degrees
- Spectral Type
- All available color info in the (U,B,V,R,I) "fluxlist"
The result looks like this:
::console:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
C.D.S. - SIMBAD4 rel 1.094b - 2008.08.23CEST20:06:40
total execution time: 14.123 secs
simbatch done
::data::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::Code: Select all
NumberIds: 19
Identifiers:FAUST 10:CD-72 20:CPD-72 35:HD 2051:2E 0021.8-7221:1RXS J002404.6-720456:1ES 0021-72.3:1E 0021.8-7221:Cl Melotte 1:2MASX J00240535-7204531:[FS2003] 0013:[BM83] X0021-723:RBS 55:NGC 104:GCl 1:C 0021-723:2E 82:* 47 Tuc:* ksi Tuc:
RaDec(decimal): 006.02362,-72.08128
SpectralType: G4
Fluxlist(U,B,V,R,I): ~, 5.78, 4.91, ~, ~,
NumberIds: 4
Identifiers:Cl Melotte 3:NGC 288:GCl 2:C 0050-268::::::::::::::::
RaDec(decimal): 013.18875,-26.57861
SpectralType: A
Fluxlist(U,B,V,R,I): ~, 10 , 9.37, ~, ~,
NumberIds: 5
Identifiers:Cl Melotte 4:NGC 362:LI-SMC 158:GCl 3:C 0100-711:::::::::::::::
RaDec(decimal): 015.80946,-70.84822
SpectralType: F9
Fluxlist(U,B,V,R,I): ~, 7.97, 7.21, ~, ~,
NumberIds: 3
Identifiers:NGC 1261:GCl 5:C 0310-554:::::::::::::::::
RaDec(decimal): 048.06396,-55.21681
SpectralType: F7
Fluxlist(U,B,V,R,I): ~, 9.79, 9.10, ~, ~,
NumberIds: 4
Identifiers:Cl Pal 1:ZW VII 7:LEDA 13165:C 0325+794::::::::::::::::
RaDec(decimal): 053.33042,+79.58194
SpectralType: ~
Fluxlist(U,B,V,R,I): ~, 17.2 , ~, ~, ~,
... 140 entries outputted... - So, with this exhaustive cross ID listing, it was just a trivial exercise in Perl to implement the cross identifiers known to SIMBAD into my script that generates the globular.dsc data set for my implementation of Globulars.
But before I release the globular code/data, we should discuss a bit:
++++++++++++++++++++++++++
In some cases, the number of alternative names@SIMBAD is quite HIGH. E.g. 19 for the famous 47 Tuc globular! Usually, it's rather 4-5 entries.
So which ones do we want to include, which ones to skip?
+++++++++++++++++++++++++++
Possibly a clever general strategy would be to make Celestia recognize PRECISELY the names SIMBAD recognizes, but to display only a selection of the most popular alternative names on the top of the OGL canvas!
Let me know what you think....
Fridger