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 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-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         (nr__) ! qF number or other name (1)
      integer*4     LHO        (nr__) ! ?=- LHO number
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000)
      real*4        F110W      (nr__) ! (mag) ?=- HST F110W magnitude
      real*4        e_F110W    (nr__) ! (mag) ? rms uncertainty on F110W
      character*1   n_F110W    (nr__) ! [*] Uncertainty flag on F110W
      real*4        F160W      (nr__) ! (mag) ?=- HST F160W magnitude
      real*4        e_F160W    (nr__) ! (mag) ? rms uncertainty on F160W
      character*1   n_F160W    (nr__) ! [*] Uncertainty flag on F160W
      real*4        F205W      (nr__) ! (mag) ?=- HST F205W magnitude
      real*4        e_F205W    (nr__) ! (mag) ? rms uncertainty on F205W
      character*1   n_F205W    (nr__) ! [*] Uncertainty flag on F205W
      real*4        F127M      (nr__) ! (mag) ?=- HST F127M magnitude
      real*4        e_F127M    (nr__) ! (mag) ? rms uncertainty on F127M
      real*4        F139M      (nr__) ! (mag) ?=- HST F139M magnitude
      real*4        e_F139M    (nr__) ! (mag) ? rms uncertainty on F139M
      real*4        F153M      (nr__) ! (mag) ?=- HST F153M magnitude
      real*4        e_F153M    (nr__) ! (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    (nr__1) ! (deg) Right Ascension J2000
      real*8        DEdeg_1    (nr__1) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*12  ID_1       (nr__1) ! qF number or other name (G1)
      integer*4     LHO_1      (nr__1) ! ? LHO number (G2)
      integer*4     RAh        (nr__1) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__1) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__1) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__1) ! Declination sign (J2000)
      integer*4     DEd        (nr__1) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__1) ! (arcmin) Declination (J2000)
      real*4        DEs        (nr__1) ! (arcsec) Declination (J2000)
      character*16  ClassC     (nr__1) ! 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     (nr__1) ! Revised classification, this paper
      character*39  Notes      (nr__1) ! 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(i__),LHO(i__),RAdeg(i__),DEdeg(i__),F110W(i__),
     +  e_F110W(i__),n_F110W(i__),F160W(i__),e_F160W(i__),
     +  n_F160W(i__),F205W(i__),e_F205W(i__),n_F205W(i__),F127M(i__),
     +  e_F127M(i__),F139M(i__),e_F139M(i__),F153M(i__),e_F153M(i__)
        if (LHO(i__) .EQ. 45) LHO(i__) =  iNULL__
        if (idig(ar__(37:41)).EQ.0) F110W(i__) =  rNULL__
        if(ar__(43:46) .EQ. '') e_F110W(i__) = rNULL__
        if (idig(ar__(48:52)).EQ.0) F160W(i__) =  rNULL__
        if(ar__(54:57) .EQ. '') e_F160W(i__) = rNULL__
        if (idig(ar__(59:63)).EQ.0) F205W(i__) =  rNULL__
        if(ar__(65:68) .EQ. '') e_F205W(i__) = rNULL__
        if (idig(ar__(70:74)).EQ.0) F127M(i__) =  rNULL__
        if(ar__(76:79) .EQ. '') e_F127M(i__) = rNULL__
        if (idig(ar__(81:85)).EQ.0) F139M(i__) =  rNULL__
        if(ar__(87:90) .EQ. '') e_F139M(i__) = rNULL__
        if (idig(ar__(92:96)).EQ.0) F153M(i__) =  rNULL__
        if(ar__(98:101) .EQ. '') e_F153M(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  ID(i__),LHO(i__),RAdeg(i__),DEdeg(i__),F110W(i__),
     +  e_F110W(i__),n_F110W(i__),F160W(i__),e_F160W(i__),
     +  n_F160W(i__),F205W(i__),e_F205W(i__),n_F205W(i__),F127M(i__),
     +  e_F127M(i__),F139M(i__),e_F139M(i__),F153M(i__),e_F153M(i__)
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(i__),LHO_1(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),ClassC(i__),ClassR(i__),Notes(i__)
        if(ar__1(13:15) .EQ. '') LHO_1(i__) = iNULL__
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg_1(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  ID_1(i__),LHO_1(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),ClassC(i__),ClassR(i__),Notes(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
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