FORTRAN Generation
(/./ftp/cats/J/A_AS/123/135)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/123/135 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 2024-Apr-16
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+AS/123/135     Spectral classifications of 180 IR stars     (Ginestet+ 1997)
*================================================================================
*Spectral classifications in the near infrared of stars with composite spectra.
*II. Study of a sample of 180 stars.
*       Ginestet N., Carquillat J.M., Jaschek C., Jaschek M.
*      <Astron. Astrophys. Suppl. Ser. 123, 135 (1997)>
*      =1997A&AS..123..135G      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Classifications of the cool components, SP(IR),
                                 of stars with composite spectra

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

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

      character*8   HD_BD      (nr__) ! HD of BD number of the star
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__) ! Declination sign
      integer*4     DEd        (nr__) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000)
      integer*4     DEs        (nr__) ! (arcsec) Declination (J2000)
      real*4        Vmag       (nr__) ! (mag) V magnitude
      character*1   u_Vmag     (nr__) ! Uncertainty flag on Vmag
      real*4        B_V        (nr__) ! (mag) ? B-V color index
      character*11  SpIR       (nr__) ! This work spectral type (1)
      character*1   n_SpIR     (nr__) ! [*] Note on the object (2)
      character*16  Sp1        (nr__) ! Spectral type
      character*18  r_Sp1      (nr__) ! References for spectral type
*                                   (see refs.dat file)
      character*14  Sp2        (nr__) ! Spectral type
      character*1   n_Sp2      (nr__) ! [*] Note on the object (2)
      character*18  r_Sp2      (nr__) ! References for spectral type
*                                   (see refs.dat file)
      character*16  Sp3        (nr__) ! Spectral type
      character*17  r_Sp3      (nr__) ! References for spectral type
*                                   (see refs.dat file)
      character*12  Sp4        (nr__) ! Spectral type
      character*16  r_Sp4      (nr__) ! References for spectral type
*                                   (see refs.dat file)
      character*6   Sp5        (nr__) ! Spectral type
      character*15  r_Sp5      (nr__) ! References for spectral type
*                                   (see refs.dat file)
      character*11  Sp6        (nr__) ! Spectral type
      character*16  r_Sp6      (nr__) ! References for spectral type
*                                   (see refs.dat file)
*Note (1): A - or + sign following the Sp(IR) luminosity class indicates that the
*           object is probably slightly more or less luminous.
*Note (2): Individual notes:
*           HD 18715: classification based on the cool component, since both
*                      components are well separated (8")
*           HD 26630: standard MK G0 Ib
*           HD 51250: standard of radial velocity
*           HD 74395: standard MK G1 Ib
*           HD 84367: the secondary is probably an Am star
*          HD 197177: standard MK G8 IIb
*          HD 199378: the authors suspect the object to be composite (G5III+A)
*          HD 209278: visual binary, separated 3.7", but the classification is
*                      based on the combined light
*          HD 212391: the classification is based on the spectrum of the cool
*                      star since the separation of 4.3" permits to observe
*                      individually each component.

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

C  Declarations for 'table2.dat'	! Stars of the sample which exhibit a hot spectrum

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

      character*6   HD_BD_1    (nr__1) ! HD or BD name
      real*4        Vmag_1     (nr__1) ! (mag) V magnitude
      character*1   u_Vmag_1   (nr__1) ! Uncertainty flag on Vmag
      real*4        B_V_1      (nr__1) ! (mag) ? B-V color index
      character*16  Sp         (nr__1) ! Spectral type
      character*1   n_Sp       (nr__1) ! [*] * when individual note (1)
      character*15  SpIR_1     (nr__1) ! This work spectral type
      character*1   n_SpIR_1   (nr__1) ! [*] * when individual note (1)
*Note (1):
*   HD 14262: also classed A7V (Palmer et al., 1968RGOB..135..385P)
*   HD 16646: F4Vwl (Abt, 1984ApJ...285..247A)
*   HD 24346: slightly weak-lined F type star (Bidelman, 1988PASP..100.1084B)
*   HD 41724: Am (Bidelman, 1988PASP..100.1084B;
*                 Carquillat et al., 1988A&AS...75..305C)
*   HD 48953: G5Ia+A5V (Markowitz, 1969, Ph.D thesis, Ohio State Univ.),
*             Ap Sr-Eu (Bidelman, 1988PASP..100.1084B)
*   HD 51565: G2IIIe (Kuhi, 1963PASP...75..448K); Am (Smith, 1973ApJS...25..277S)
*   HD 60178: Castor B
*   HD 68119: larger proper motion (CDS); moderatly weak-lines F type star
*              (Bidelman, 1988PASP..100.1084B)
*   HD 76369: appears normal (Bidelman, 1988PASP..100.1084B)
*   HD 76370: G5III+A0V (Markovitz, 1969, Ph.D thesis, Ohio State Univ.)
*   HD 83270: Am (Bidelman, 1988PASP..100.1084B;
*                 Ginestet et al., 1991A&AS...91..265G)
*   HD 83808: SB2. The dominating spectrum is that of an Am star, the secondary
*              could be a late F type. Also classified A1V+F6II
*              (Markovitz, 1969, Ph.D thesis, Ohio State Univ.) and
*              A5V+F8III (Parsons, 1983ApJS...53..553P)
*   HD 86167: Am (Abt, 1984ApJ...285..247A)
*   HD 88923: F2Vwl (Abt, 1984ApJ...285..247A)
*   HD 91172: Fm Delta Del (Houk & Smoth-Moore, 1988 Catalogue <III/133>)
*   HD 97336: Bidelman (1988PASP..100.1084B): "not composite"
*  HD 107054: A8V (Palmer et al., 1968RGOB..135..385P);
*              A9IVn (Gray & Garrison, 1989ApJS...69..301G)
*  HD 114519: RS CVn (SB2), Algol eclipsing type binary;
*              Batten et al (19899PDAO...17....1B): F4IV-V+K0IV;
*              Strassmeier & Fekel (1990A&A...230..389S): F6IV+G8IV.
*              The spectrum is difficult to classify because of the high
*              rotation, but the Ti/Fe ratios suggest a secondary at least as
*              late as K4.
*   HD 120544: F7V (Cowley, 1976PASP...88...95C)
*   HD 123102: A9IV (Abt, 1981ApJS...45..437A); visual double, sep. 13.5"
*   HD 187949: A1V+F4III: (Markowitz, 1969Ph.D thesis, Ohio State Univ.);
*               Algol type eclipsing binary.
*   HD 206088: F0p Sr (Bertaud, 1959JO.....42...45B)
*   HD 208132: Am (Bertaud, 1965JO.....48..211B)
*   HD 209790: Am (Slettebak, 1963ApJ...138..118S)
*   HD 209791: F7V (Slettebak, 1963ApJ...138..118S)
*   HD 214605: Am (Bidelman, 1988PASP..100.1084B)
*   HD 239746: B2V comp.? (Niedzielski & Muciek, 1988AcA....38..225N)
*   HD 239933: is not in the CDS database

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

C  Declarations for 'refs.dat'	! References

      integer*4 nr__2
      parameter (nr__2=64)	! Number of records
      character*68 ar__2  	! Full-size record

      character*18  Ref        (nr__2) ! Code of the reference
      character*19  BibCode    (nr__2) ! Bibcode of the reference
      character*29  Comm       (nr__2) ! Comment

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

C  Loading file 'table1.dat'	! Classifications of the cool components, SP(IR),
*                                 of stars with composite spectra

C  Format for file interpretation

    1 format(
     +  A8,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F5.2,A1,1X,
     +  F4.2,2X,A11,A1,1X,A16,1X,A18,1X,A14,A1,A18,1X,A16,1X,A17,1X,
     +  A12,1X,A16,1X,A6,1X,A15,1X,A11,1X,A16)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,120
        read(1,'(A242)')ar__
        read(ar__,1)
     +  HD_BD(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Vmag(i__),u_Vmag(i__),B_V(i__),SpIR(i__),
     +  n_SpIR(i__),Sp1(i__),r_Sp1(i__),Sp2(i__),n_Sp2(i__),
     +  r_Sp2(i__),Sp3(i__),r_Sp3(i__),Sp4(i__),r_Sp4(i__),Sp5(i__),
     +  r_Sp5(i__),Sp6(i__),r_Sp6(i__)
        if(ar__(38:41) .EQ. '') B_V(i__) = rNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  HD_BD(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Vmag(i__),u_Vmag(i__),B_V(i__),SpIR(i__),
     +  n_SpIR(i__),Sp1(i__),r_Sp1(i__),Sp2(i__),n_Sp2(i__),
     +  r_Sp2(i__),Sp3(i__),r_Sp3(i__),Sp4(i__),r_Sp4(i__),Sp5(i__),
     +  r_Sp5(i__),Sp6(i__),r_Sp6(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Stars of the sample which exhibit a hot spectrum

C  Format for file interpretation

    2 format(A6,1X,F5.2,A1,F5.2,2X,A16,A1,1X,A15,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,60
        read(1,'(A55)')ar__1
        read(ar__1,2)
     +  HD_BD_1(i__),Vmag_1(i__),u_Vmag_1(i__),B_V_1(i__),Sp(i__),
     +  n_Sp(i__),SpIR_1(i__),n_SpIR_1(i__)
        if(ar__1(14:18) .EQ. '') B_V_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  HD_BD_1(i__),Vmag_1(i__),u_Vmag_1(i__),B_V_1(i__),Sp(i__),
     +  n_Sp(i__),SpIR_1(i__),n_SpIR_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    3 format(A18,1X,A19,1X,A29)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,64
        read(1,'(A68)')ar__2
        read(ar__2,3)Ref(i__),BibCode(i__),Comm(i__)
c    ..............Just test output...........
        write(6,3)Ref(i__),BibCode(i__),Comm(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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