FORTRAN Generation
(/./ftp/cats/J/ApJS/188/473)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/188/473 into FORTRAN code for loading all data files into arrays.

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    (nr__) ! Chandra Guide Star Catalog (AGASC) ID
      character*18  SIMBAD     (nr__) ! Simbad star name
      integer*4     RAh        (nr__) ! (h) AGASC Hour of Right Ascension (J2000)
      integer*4     RAm        (nr__) ! (min) AGASC Minute of Right Ascension (J2000)
      real*4        RAs        (nr__) ! (s) AGASC Second of Right Ascension (J2000)
      real*8        RAdeg      (nr__) ! (deg) AGASC Right Ascension in decimal degrees (J2000)
      character*1   DE_        (nr__) ! AGASC Sign of the Declination (J2000)
      integer*4     DEd        (nr__) ! (deg) AGASC Degree of Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) AGASC Arcminute of Declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) AGASC Arcsecond of Declination (J2000)
      real*8        DEdeg      (nr__) ! (deg) AGASC Declination in decimal degrees (J2000)
      character*34  OType      (nr__) ! Simbad long object type
      character*10  SpType     (nr__) ! Simbad spectral type
      character*3   otyp       (nr__) ! Simbad star short type (defined in OType)
      character*13  Var        (nr__) ! Variability Category (1)
      character*12  Vclass     (nr__) ! Variability Classification (as defined in B/gcvs)
      real*8        Epoch      (nr__) ! (d) ? Epoch of Variability
      real*8        Period     (nr__) ! (d) ? Period of Variability
      character*1   UV         (nr__) ! [Y/N] Ultra-Violet Source
      character*1   X          (nr__) ! [Y/N] X-Ray Source
      character*1   IR         (nr__) ! [Y/N] Infra-Red Source
      integer*4     Num        (nr__) ! Number of Chandra observations (2)
      integer*4     Exp        (nr__) ! (ks) Total Chandra observation time (2)
      character*1   Kn         (nr__) ! [Y/N] Previously Known Variable
      character*8   Status     (nr__) ! 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(i__),SIMBAD(i__),RAh(i__),RAm(i__),RAs(i__),
     +  RAdeg(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),DEdeg(i__),
     +  OType(i__),SpType(i__),otyp(i__),Var(i__),Vclass(i__),
     +  Epoch(i__),Period(i__),UV(i__),X(i__),IR(i__),Num(i__),
     +  Exp(i__),Kn(i__),Status(i__)
        if(ar__(156:166) .EQ. '') Epoch(i__) = rNULL__
        if(ar__(168:177) .EQ. '') Period(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  AGASCID(i__),SIMBAD(i__),RAh(i__),RAm(i__),RAs(i__),
     +  RAdeg(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),DEdeg(i__),
     +  OType(i__),SpType(i__),otyp(i__),Var(i__),Vclass(i__),
     +  Epoch(i__),Period(i__),UV(i__),X(i__),IR(i__),Num(i__),
     +  Exp(i__),Kn(i__),Status(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end