FORTRAN Generation
(/./ftp/cats/J/A_A/618/A2)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/618/A2 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-Aug-15
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/A+A/618/A2        Quintuplet cluster updated stellar census    (Clark+, 2018)
*================================================================================
*An updated stellar census of the Quintuplet cluster.
*    Clark J.S., Lohr M.E., Patrick L.R., Najarro F., Dong H., Figer D.F.
*   <Astron. Astrophys., 618, A2 (2018)>
*   =2018A&A...618A...2C    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'tablea1.dat'	! HST photometry of stellar members of the
                                 Quintuplet cluster

      integer*4 nr__
      parameter (nr__=108)	! Number of records
      character*101 ar__   	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      character*11  ID          ! qF number or other name (1)
      integer*4     LHO         ! ?=- LHO number
      real*8        RAdeg       ! (deg) Right ascension (J2000)
      real*8        DEdeg       ! (deg) Declination (J2000)
      real*4        F110W       ! (mag) ?=- HST F110W magnitude
      real*4        e_F110W     ! (mag) ? rms uncertainty on F110W
      character*1   n_F110W     ! [*] Uncertainty flag on F110W
      real*4        F160W       ! (mag) ?=- HST F160W magnitude
      real*4        e_F160W     ! (mag) ? rms uncertainty on F160W
      character*1   n_F160W     ! [*] Uncertainty flag on F160W
      real*4        F205W       ! (mag) ?=- HST F205W magnitude
      real*4        e_F205W     ! (mag) ? rms uncertainty on F205W
      character*1   n_F205W     ! [*] Uncertainty flag on F205W
      real*4        F127M       ! (mag) ?=- HST F127M magnitude
      real*4        e_F127M     ! (mag) ? rms uncertainty on F127M
      real*4        F139M       ! (mag) ?=- HST F139M magnitude
      real*4        e_F139M     ! (mag) ? rms uncertainty on F139M
      real*4        F153M       ! (mag) ?=- HST F153M magnitude
      real*4        e_F153M     ! (mag) ? rms uncertainty on F153M
*Note (1): Objects for which no photometry is available are
*  qF76 (WC9; this work),
*  qF269 (OB I; Figer at al., 1999ApJ...514..202F),
*  qF301 (< OB I; Figer at al., 1999ApJ...514..202F),
*  qF311 (B1-3 I; Figer at al., 1999ApJ...514..202F),
*  qF362 (LBV; Geballe et al., 2000ApJ...530L..97G),
*  LHO23 (O3-6 I-II; Liermann et al., 2009, Cat. J/A+A/494/1137),
*  LHO70 (O7-8 If; Liermann et al., 2009, Cat. J/A+A/494/1137) and
*  G0.120-0.048 (LBV; Mauerhan et al. 2010ApJ...710..706M).
*
*  qF353E, qF381 and qF406 were outside the NICMOS field-of-view and hence lack
*    F110W, F160W and F205W magnitudes.
*
*  The following sources had multiple counterparts within 2.5 pixels of their
*   position in the NICMOS data;
*   qF276 (two sources with one 2.5mag fainter; brighter selected),
*   LHO15 (two sources with a difference of 0.3m; closest selected),
*   LHO64 (two sources with one 3.4mag fainter; brighter selected),
*   LHO72 (two sources with one 1.2mag fainter; closest selected) and
*   LHO73 (two sources within one pixel with broadly comparable magnitudes;
*           closest selected).
*
*   Caution should therefore be applied regarding the F110W, F160W and F205W
*    magnitudes for LHO15, LHO72 and LHO73; these are followed by an *.
*
*   Finally no NICMOS counterpart to LHO139 was found within 9 pixels of the
*     anticipated position.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'tablea2.dat'	! Stellar population of the Quintuplet cluster

      integer*4 nr__1
      parameter (nr__1=71)	! Number of records
      character*112 ar__1  	! Full-size record

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1     ! (deg) Right Ascension J2000
      real*8        DEdeg_1     ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*12  ID_1        ! qF number or other name (G1)
      integer*4     LHO_1       ! ? LHO number (G2)
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      real*4        DEs         ! (arcsec) Declination (J2000)
      character*16  ClassC      ! Most up-to-date spectral classification
*                                   available from either Figer at al.
*                                   (1999ApJ...514..202F) or Liermann et al.,
*                                   2009, Cat. J/A+A/494/1137)
      character*14  ClassR      ! Revised classification, this paper
      character*39  Notes       ! Notes (1)
*Note (1): additional widely used identifiers (e.g. WR number and the naming
* convention of Dong et al., 2011, Cat. J/MNRAS/417/114).
* qF309 and qF344 are re-classified via comparison of the spectra from
* Figer at al. (1999ApJ...514..202F) and Mauerhan et al. (2010ApJ...710..706M)
* to our new data.
* The five Quintuplet proper members are those stars with MGM 5-# identifiers
*  (Moneti et al. 1992MNRAS.258..705M).
* QX# and QR# indicate radio and X-ray detections reported in Lang et al.
*  (2005AJ....130.2185L) and Wang et al. (2006MNRAS.371...38W) respectively.
* The Pistol star is also reported as a radio source but no new identifier is
*  assigned for it, while the X-ray designation of qF344 derives from Muno et al.
*  (2009, Cat. J/ApJS/181/110).
* Tuthill et al. (2006Sci...313..935T) provide the orbital period for qF211 and
*  suggest periods in the hundreds of days for qF243, qF251, and qF258 based on
*  the size of their dusty nebulae.

C=============================================================================

C  Loading file 'tablea1.dat'	! HST photometry of stellar members of the
*                                 Quintuplet cluster

C  Format for file interpretation

    1 format(
     +  A11,1X,I3,1X,F9.5,1X,F9.5,1X,F5.2,1X,F4.2,A1,F5.2,1X,F4.2,A1,
     +  F5.2,1X,F4.2,A1,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,108
        read(1,'(A101)')ar__
        read(ar__,1)
     +  ID,LHO,RAdeg,DEdeg,F110W,e_F110W,n_F110W,F160W,e_F160W,
     +  n_F160W,F205W,e_F205W,n_F205W,F127M,e_F127M,F139M,e_F139M,
     +  F153M,e_F153M
        if (LHO .EQ. 45) LHO =  iNULL__
        if (idig(ar__(37:41)).EQ.0) F110W =  rNULL__
        if(ar__(43:46) .EQ. '') e_F110W = rNULL__
        if (idig(ar__(48:52)).EQ.0) F160W =  rNULL__
        if(ar__(54:57) .EQ. '') e_F160W = rNULL__
        if (idig(ar__(59:63)).EQ.0) F205W =  rNULL__
        if(ar__(65:68) .EQ. '') e_F205W = rNULL__
        if (idig(ar__(70:74)).EQ.0) F127M =  rNULL__
        if(ar__(76:79) .EQ. '') e_F127M = rNULL__
        if (idig(ar__(81:85)).EQ.0) F139M =  rNULL__
        if(ar__(87:90) .EQ. '') e_F139M = rNULL__
        if (idig(ar__(92:96)).EQ.0) F153M =  rNULL__
        if(ar__(98:101) .EQ. '') e_F153M = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  ID,LHO,RAdeg,DEdeg,F110W,e_F110W,n_F110W,F160W,e_F160W,
     +  n_F160W,F205W,e_F205W,n_F205W,F127M,e_F127M,F139M,e_F139M,
     +  F153M,e_F153M
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'tablea2.dat'	! Stellar population of the Quintuplet cluster

C  Format for file interpretation

    2 format(
     +  A12,I3,2X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,A16,1X,
     +  A14,1X,A39)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea2.dat')
      write(6,*) '....Loading file: tablea2.dat'
      do i__=1,71
        read(1,'(A112)')ar__1
        read(ar__1,2)
     +  ID_1,LHO_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,ClassC,ClassR,Notes
        if(ar__1(13:15) .EQ. '') LHO_1 = iNULL__
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg_1=RAh*15.
        if(RAm .GT. -180) RAdeg_1=RAdeg_1+RAm/4.
        if(RAs .GT. -180) RAdeg_1=RAdeg_1+RAs/240.
        if(DEd .GE. 0) DEdeg_1=DEd
        if(DEm .GE. 0) DEdeg_1=DEdeg_1+DEm/60.
        if(DEs .GE. 0) DEdeg_1=DEdeg_1+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  ID_1,LHO_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,ClassC,ClassR,Notes
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end