FORTRAN Generation
(/./ftp/cats/J/AZh/76/604)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AZh/76/604 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 2024-Apr-20
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/AZh/76/604      Spectrophotometry of S and carbon stars   (Tereshchenko, 1999)
*================================================================================
*Spectrophotometry of three S stars and thirteen carbon N stars.
*    Tereshchenko V.M.
*    <Astron. Zh. 76, 604 (1999)>
*    =1999AZh....76..604T
*    =1999ARep...43..526T
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'stars.dat'	! Main photometry and spectral characteristics

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

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

      character*1   Type        ! [CS] C: carbon star, S: S star
      integer*4     RAh         ! (h) Right ascension (J2000.0)
      integer*4     RAm         ! (min) Right ascension (J2000.0)
      real*4        RAs         ! (s) Right ascension (J2000.0)
      character*1   DE_         ! Declination sign (J2000.0)
      integer*4     DEd         ! (deg) Declination (J2000.0)
      integer*4     DEm         ! (arcmin) Declination (J2000.0)
      integer*4     DEs         ! (arcsec) Declination (J2000.0)
      integer*4     HR          ! HR (Cat. <V/50>) number
      integer*4     HD          ! HD (Cat. <III/135>) number
      character*11  Name        ! Star Name
      real*4        Vmag        ! (mag) V magnitude
      real*4        B_V         ! (mag) B-V colour index
      real*4        U_B         ! (mag) ? U-B colour index
      character*4   SpType      ! Spectral type
      character*3   VarType     ! Type of variability
      character*41  Obs         ! Observation dates

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

C  Declarations for 'table3.dat'	! Energy distributions of S and carbon stars

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

      integer*4     lambda      ! (0.1nm) Spectral line wavelength
      integer*4     BDCam       ! (10nW/m2/cm) Energy distribution for BD Cam (1)
      integer*4     omiOri      ! (10nW/m2/cm) Energy distribution for omicron Ori (1)
      integer*4     chiCyg      ! (10nW/m2/cm) Energy distribution for chi Cyg (1)
      integer*4     RLep        ! (10nW/m2/cm) Energy distribution for R Lep (1)
      integer*4     WOri        ! (10nW/m2/cm) ? Energy distribution for W Ori (1)
      integer*4     YTau        ! (10nW/m2/cm) Energy distribution for Y Tau (1)
      integer*4     BLOri       ! (10nW/m2/cm) Energy distribution for BL Ori (1)
      integer*4     UUAur       ! (10nW/m2/cm) Energy distribution for UU Aur (1)
      integer*4     XCnc        ! (10nW/m2/cm) Energy distribution for X Cnc (1)
      integer*4     UHya        ! (10nW/m2/cm) Energy distribution for U Hya (1)
      integer*4     VYUMa       ! (10nW/m2/cm) Energy distribution for VY UMa (1)
      integer*4     YCVn        ! (10nW/m2/cm) Energy distribution for Y CVn (1)
      integer*4     SSct        ! (10nW/m2/cm) ? Energy distribution for S Sct (1)
      integer*4     VAql        ! (10nW/m2/cm) Energy distribution for V Aql (1)
      integer*4     v460Cyg     ! (10nW/m2/cm) Energy distribution for v460 Cyg (1)
      integer*4     v19Psc      ! (10nW/m2/cm) Energy distribution for 19 Psc (1)
*Note (1): 10nW/m2/cm=10-5.erg/(cm2.s.cm)

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

C  Loading file 'stars.dat'	! Main photometry and spectral characteristics

C  Format for file interpretation

    1 format(
     +  A1,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,2X,I4,2X,I6,1X,
     +  A11,1X,F4.2,1X,F4.2,1X,F4.2,1X,A4,1X,A3,1X,A41)

C  Effective file loading

      open(unit=1,status='old',file=
     +'stars.dat')
      write(6,*) '....Loading file: stars.dat'
      do i__=1,16
        read(1,'(A114)')ar__
        read(ar__,1)
     +  Type,RAh,RAm,RAs,DE_,DEd,DEm,DEs,HR,HD,Name,Vmag,B_V,U_B,
     +  SpType,VarType,Obs
        if(ar__(60:63) .EQ. '') U_B = rNULL__
        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)
     +  Type,RAh,RAm,RAs,DE_,DEd,DEm,DEs,HR,HD,Name,Vmag,B_V,U_B,
     +  SpType,VarType,Obs
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Energy distributions of S and carbon stars

C  Format for file interpretation

    2 format(
     +  I4,2X,I4,2X,I4,2X,I4,2X,I4,2X,I4,2X,I4,2X,I4,2X,I4,2X,I4,2X,
     +  I4,2X,I4,2X,I4,2X,I4,2X,I4,2X,I4,2X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,88
        read(1,'(A100)')ar__1
        read(ar__1,2)
     +  lambda,BDCam,omiOri,chiCyg,RLep,WOri,YTau,BLOri,UUAur,XCnc,
     +  UHya,VYUMa,YCVn,SSct,VAql,v460Cyg,v19Psc
        if(ar__1(31:34) .EQ. '') WOri = iNULL__
        if(ar__1(79:82) .EQ. '') SSct = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  lambda,BDCam,omiOri,chiCyg,RLep,WOri,YTau,BLOri,UUAur,XCnc,
     +  UHya,VYUMa,YCVn,SSct,VAql,v460Cyg,v19Psc
c    .......End.of.Just test output...........
      end do
      close(1)

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