FORTRAN Generation
(/./ftp/cats/III/113A)

Conversion of standardized ReadMe file for file /./ftp/cats/III/113A 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 2017-Mar-28
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. III/113A    Deep Objective-Prism Survey for LMC Members    (Sanduleak 1970)
*================================================================================
*A Deep Objective-Prism Survey for Large Magellanic Cloud Members.
*    Sanduleak N.
*   <Contr. Cerro Tololo Inter-American Obs., No. 89 (1970)>
*   =1970CoTol..89....1S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'sk_pos.dat'	! Accurate positions of Sanduleak stars, by B. Skiff

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

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

      integer*4     SkZ         ! Sanduleak name: declination zone
      integer*4     SkN         ! Sanduleak name: number in zone
      character*1   m_SkN       ! [abc] Sanduleak name: multiplicity index.
      character*1   n_SkN       ! [*] Remark detailed in "notes.dat"
      integer*4     RAh         ! (h) Right Ascension J2000 (hours)
      integer*4     RAm         ! (min) Right Ascension J2000 (minutes)
      real*4        RAs         ! (s) Right Ascension J2000 (seconds)
      character*1   DE_         ! Declination J2000 (sign)
      integer*4     DEd         ! (deg) Declination J2000 (degrees)
      integer*4     DEm         ! (arcmin) Declination J2000 (minutes)
      real*4        DEs         ! (arcsec) Declination J2000 (seconds)
      character*1   s           ! [UMGTDscg] Source of position (1)
      integer*4     UCAC2       ! ? UCAC2 identification
      character*11  Tyc_GSC     ! GSC or Tycho-2 (Cat. I/259) identification
      integer*4     v_M2002_    ! ? Identification in Massey
*                                  (2002ApJS..141...81M, Cat. II/236)
      real*4        Vmag        ! (mag) Approximative visual magnitude (from M. Morel)
      character*1   u_Vmag      ! Uncertainty flag (:) on Vmag
      character*7   SpType      ! Spectral type (from Sanduleak)
      character*47  Rem         ! Remarks (from B. Skiff)
*Note (1): the source of position uses the following symbols:
*      c = AC 2000 (1998AJ....115.1212U, I/275, for Sk-69 202)
*      D = DENIS   (1999A&A...349..236E, B/denis)
*      g = GSC-2.3 (2006yCat.1305.....S, I/305)
*      G = GSC-ACT (1999yCat.1255.....G, I/255)
*      M = 2MASS   (2006AJ....131.1163S, II/246)
*      s = B.Skiff estimate for Sk-69 223, mid-point for Sk-71 45 group
*      T = Tycho-2 (2000A&A...357..367H, I/259)
*      U = UCAC2   (2004AJ....127.3043Z, I/289)

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

C  Declarations for 'data.dat'	! The catalog in its 1985 version.

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

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

      integer*4     SkZ_1       ! Sanduleak name: declination zone
      integer*4     SkN_1       ! Sanduleak name: number in zone
      character*1   m_SkN_1     ! [abc] Sanduleak name: multiplicity index
*                                 than one star has the same NS
      character*1   n_SkN_1     ! [*] Asterisk if note, detailed in "notes.dat"
      integer*4     HD          ! ? Henry Draper Catalogue number
      character*1   u_HD        ! [:] HD identification uncertain
      character*7   CPD         ! Cape Photographic Durchmusterung name
      character*1   u_CPD       ! [:] CPD identification uncertain
      integer*4     RAh_1       ! (h) Right ascension (B1975) hours
      real*4        RAm_1       ! (min) RA  minutes
      character*1   DE__1       ! Sign of Declination (B1975)
      integer*4     DEd_1       ! (deg) Declination: degrees
      integer*4     DEm_1       ! (arcmin) Declination: arcminutes
      character*6   SpType_1    ! Spectral type.  Lower case characters for
*                               broad lines (n=nebulous) and emission (e)
      real*4        Pmag        ! (mag) Photographic magnitude mpg (always present).
      character*1   n_Pmag      ! [v] if variable mpg; otherwise blank.
      character*12  Chart       ! Finding chart identification (1)
      character*31  Alt         ! Alternate identification (2)
*Note (1):
*    Finding chart identification in source publication. When a star is
*    identified on more than one chart, the numbers are separated by
*    commas (identifications such as 45a, 45d are present).
*Note (2):
*    Alternate identification designations for the star, separated by
*    commas for multiple entries. Abbreviation keys are:
*   AL  = Andrews and Lindsay (1964IrAJ....6..241A):
*           List of H-{alpha} emission stars
*   BBB = Bok, Bok and Basinski (1962MNRAS.123..487B):
*           Color-magnitude arrays for two associations
*   FDD = Fehrenbach, Duflot and Duflot (1965JO.....48..185F):
*           List of stars having very large radial velocities
*           indicating LMC membership
*   HV  = Hodge and Wright (1967SAOP.4699....1H):
*           List of Harvard variables
*   L   = Lindsay (1963IrAJ....6..127L):
*           List of H-{alpha} emission stars
*   MWC = Merrill and Burwell (1933ApJ....78...87M, 1943ApJ....98..153M,
*         1949ApJ...110..387M):
*           Mount Wilson catalog and bibliography of stars of classes
*           B and A whose spectra display bright hydrogen lines
*   K   = Feast, Thackeray and Wesselink (1960MNRAS.121..337F):
*           Spectroscopic and photometric data for known bright LMC members
*   S   = Henize (1956ApJS....2..315H):
*           List of H-{alpha} emission stars
*   W   = Westerlund (1961UppAn...5a...1W):
*           Photometric data in several selected regions of the LMC.
*           As an example of the notation, W10-46 means
*           star 46 in Westerlund's table 10
*   Wo  = Woolley (1963RGOB...66..263W):
*           Proper motions for stars in a one degree region
*   WS  = Westerlund and Smith (1964MNRAS.128..311W):
*           A list of Wolf-Rayet stars

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

C  Declarations for 'notes.dat'	! Notes (original and B. Skiff's)

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

      character*1   n_SkZ       ! [S] Blank for original note,
*                                  'S' for a note from Brian Skiff.
      integer*4     SkZ_2       ! Sanduleak name: declination zone
      integer*4     SkN_2       ! Sanduleak name: number in zone
      character*1   m_SkN_2     ! Sanduleak name: multiplicity index
      character*70  Text        ! Text of note

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

C  Loading file 'sk_pos.dat'	! Accurate positions of Sanduleak stars, by B. Skiff

C  Format for file interpretation

    1 format(
     +  2X,I3,1X,I3,A1,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,
     +  1X,A1,1X,I8,1X,A11,1X,I6,1X,F4.1,A1,1X,A7,3X,A47)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sk_pos.dat')
      write(6,*) '....Loading file: sk_pos.dat'
      do i__=1,1275
        read(1,'(A129)')ar__
        read(ar__,1)
     +  SkZ,SkN,m_SkN,n_SkN,RAh,RAm,RAs,DE_,DEd,DEm,DEs,s,UCAC2,
     +  Tyc_GSC,v_M2002_,Vmag,u_Vmag,SpType,Rem
        if(ar__(39:46) .EQ. '') UCAC2 = iNULL__
        if(ar__(60:65) .EQ. '') v_M2002_ = iNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  SkZ,SkN,m_SkN,n_SkN,RAh,RAm,RAs,DE_,DEd,DEm,DEs,s,UCAC2,
     +  Tyc_GSC,v_M2002_,Vmag,u_Vmag,SpType,Rem
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'data.dat'	! The catalog in its 1985 version.

C  Format for file interpretation

    2 format(
     +  I3,1X,I3,A1,A1,I6,A1,A7,A1,I2,1X,F4.1,1X,A1,I2,1X,I2,A6,F4.1,
     +  A1,A12,A31)

C  Effective file loading

      open(unit=1,status='old',file=
     +'data.dat')
      write(6,*) '....Loading file: data.dat'
      do i__=1,1273
        read(1,'(A92)')ar__1
        read(ar__1,2)
     +  SkZ_1,SkN_1,m_SkN_1,n_SkN_1,HD,u_HD,CPD,u_CPD,RAh_1,RAm_1,
     +  DE__1,DEd_1,DEm_1,SpType_1,Pmag,n_Pmag,Chart,Alt
        if(ar__1(10:15) .EQ. '') HD = 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_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  SkZ_1,SkN_1,m_SkN_1,n_SkN_1,HD,u_HD,CPD,u_CPD,RAh_1,RAm_1,
     +  DE__1,DEd_1,DEm_1,SpType_1,Pmag,n_Pmag,Chart,Alt
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Notes (original and B. Skiff's)

C  Format for file interpretation

    3 format(A1,I3,1X,I3,A1,1X,A70)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,54
        read(1,'(A80)')ar__2
        read(ar__2,3)n_SkZ,SkZ_2,SkN_2,m_SkN_2,Text
c    ..............Just test output...........
        write(6,3)n_SkZ,SkZ_2,SkN_2,m_SkN_2,Text
c    .......End.of.Just test output...........
      end do
      close(1)

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