Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJS/188/473 into FORTRAN code for reading data files line by line.
Note that special values are assigned to unknown or unspecified
numbers (also called NULL numbers);
when necessary, the coordinate components making up the right ascension
and declination are converted into floating-point numbers
representing these angles in degrees.
program load_ReadMe
C=============================================================================
C F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2026-May-17
C=============================================================================
* This code was generated from the ReadMe file documenting a catalogue
* according to the "Standard for Documentation of Astronomical Catalogues"
* currently in use by the Astronomical Data Centers (CDS, ADC, A&A)
* (see full documentation at URL http://vizier.u-strasbg.fr/doc/catstd.htx)
* Please report problems or questions to
C=============================================================================
implicit none
* Unspecified or NULL values, generally corresponding to blank columns,
* are assigned one of the following special values:
* rNULL__ for unknown or NULL floating-point values
* iNULL__ for unknown or NULL integer values
real*4 rNULL__
integer*4 iNULL__
parameter (rNULL__=--2147483648.) ! NULL real number
parameter (iNULL__=(-2147483647-1)) ! NULL int number
integer idig ! testing NULL number
C=============================================================================
Cat. J/ApJS/188/473 Chandra variable guide star catalog (Nichols+, 2010)
*================================================================================
*The Chandra Variable Guide Star Catalog.
* Nichols J.S., Henden A.A., Huenemoerder D.P., Lauer J.L., Martin E.,
* Morgan D.L., Sundheim B.A.
* <Astrophys. J. Suppl. Ser., 188, 473-487 (2010)>
* =2010ApJS..188..473N
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! The VGuide catalog
integer*4 nr__
parameter (nr__=827) ! Number of records
character*203 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*8 AGASCID ! Chandra Guide Star Catalog (AGASC) ID
character*18 SIMBAD ! Simbad star name
integer*4 RAh ! (h) AGASC Hour of Right Ascension (J2000)
integer*4 RAm ! (min) AGASC Minute of Right Ascension (J2000)
real*4 RAs ! (s) AGASC Second of Right Ascension (J2000)
real*8 RAdeg ! (deg) AGASC Right Ascension in decimal degrees (J2000)
character*1 DE_ ! AGASC Sign of the Declination (J2000)
integer*4 DEd ! (deg) AGASC Degree of Declination (J2000)
integer*4 DEm ! (arcmin) AGASC Arcminute of Declination (J2000)
real*4 DEs ! (arcsec) AGASC Arcsecond of Declination (J2000)
real*8 DEdeg ! (deg) AGASC Declination in decimal degrees (J2000)
character*34 OType ! Simbad long object type
character*10 SpType ! Simbad spectral type
character*3 otyp ! Simbad star short type (defined in OType)
character*13 Var ! Variability Category (1)
character*12 Vclass ! Variability Classification (as defined in B/gcvs)
real*8 Epoch ! (d) ? Epoch of Variability
real*8 Period ! (d) ? Period of Variability
character*1 UV ! [Y/N] Ultra-Violet Source
character*1 X ! [Y/N] X-Ray Source
character*1 IR ! [Y/N] Infra-Red Source
integer*4 Num ! Number of Chandra observations (2)
integer*4 Exp ! (ks) Total Chandra observation time (2)
character*1 Kn ! [Y/N] Previously Known Variable
character*8 Status ! VGuide Status of Star (suspect or accepted)
*Note (1): Seven categories defined as cataclysmic, eclipsing, eruptive,
* multiple, pulsating, rotating or indeterminate
*Note (2): Using this guide star.
C=============================================================================
C Loading file 'table4.dat' ! The VGuide catalog
C Format for file interpretation
1 format(
+ I10,1X,A18,1X,I2,1X,I2,1X,F5.2,1X,F11.7,1X,A1,I2,1X,I2,1X,
+ F4.1,1X,F11.7,1X,A34,1X,A10,1X,A3,1X,A13,1X,A12,1X,F11.3,1X,
+ F10.6,1X,A1,1X,A1,1X,A1,1X,I3,1X,I4,1X,A1,1X,A8)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,827
read(1,'(A203)')ar__
read(ar__,1)
+ AGASCID,SIMBAD,RAh,RAm,RAs,RAdeg,DE_,DEd,DEm,DEs,DEdeg,OType,
+ SpType,otyp,Var,Vclass,Epoch,Period,UV,X,IR,Num,Exp,Kn,Status
if(ar__(156:166) .EQ. '') Epoch = rNULL__
if(ar__(168:177) .EQ. '') Period = rNULL__
c ..............Just test output...........
write(6,1)
+ AGASCID,SIMBAD,RAh,RAm,RAs,RAdeg,DE_,DEd,DEm,DEs,DEdeg,OType,
+ SpType,otyp,Var,Vclass,Epoch,Period,UV,X,IR,Num,Exp,Kn,Status
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end