FORTRAN Generation
(/./ftp/cats/J/MNRAS/448/464)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/448/464 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-17
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/MNRAS/448/464    JHK lightcurves of red giants in the SMC    (Takayama+, 2015)
*================================================================================
*Using broad-band photometry to examine the nature of long secondary periods
*in red giants.
*    Takayama M., Wood P.R., Ita Y.
*   <Mon. Not. R. Astron. Soc., 448, 464-483 (2015)>
*   =2015MNRAS.448..464T    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Basic parameters of the program stars at
                                maximum light

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

C  J2000 position composed of: RAdeg DEdeg
      character*18  Name        ! Name (OGLE SMC-LPV-NNNNN in Simbad)
      real*8        RAdeg       ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      real*4        Vmag        ! (mag) ? OGLE V-band magnitude
      real*4        Imag        ! (mag) OGLE I-band magnitude
      real*4        Jmag        ! (mag) IRSF J-band magnitude
      real*4        Hmag        ! (mag) IRSF H-band magnitude
      real*4        Ksmag       ! (mag) IRSF K_S_-band magnitude
      integer*4     L           ! (Lsun) Luminosity derived by applying a bolometric
*                               correction to K_s_ (see Section 4.1)
      integer*4     TBB         ! (K) Blackbody temperature derived from J-K_S_
      integer*4     Teff        ! (K) Effective temperature derived from J-K_S_ using
*                               the formula in Bessell, Wood & Evans
*                               (1983MNRAS.202...59B)
      integer*4     PLSP        ! (d) Prominent long secondary period (LSP)
      character*1   SpType      ! [OC] Spectral type (Oxygen or Carbon-rich)

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

C  Declarations for 'phot/*'	! Individual J, H and K band time-series of stars

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

      real*8        JD          ! (d) Julian date
      real*4        mag         ! (mag) 2MASS J-, H- or K-band magnitude
      real*4        Errana      ! (mag) Error in deferential image analysis
      real*4        Errmag      ! (mag) Error in reference magnitude
      real*4        Erroff      ! (mag) Error in conversion offset
      character*12  Reg         ! Name of the survey region in which the variable
*                                 star is detected (SMCNNNN-NNNN)
      character*1   Subreg      ! [ABCDEFGH] Name of the survey subregion in which
*                                 the variable star is detected (1)
*Note (1): For more details, see Ita et al., in prep.

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

C  Loading file 'table1.dat'	! Basic parameters of the program stars at
*                                maximum light

C  Format for file interpretation

    1 format(
     +  A18,1X,F9.6,1X,F9.5,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,
     +  1X,I4,1X,I4,1X,I4,1X,I4,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,21
        read(1,'(A90)')ar__
        read(ar__,1)
     +  Name,RAdeg,DEdeg,Vmag,Imag,Jmag,Hmag,Ksmag,L,TBB,Teff,PLSP,
     +  SpType
        if(ar__(40:44) .EQ. '') Vmag = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,RAdeg,DEdeg,Vmag,Imag,Jmag,Hmag,Ksmag,L,TBB,Teff,PLSP,
     +  SpType
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'phot/*'	! Individual J, H and K band time-series of stars

C  Format for file interpretation

    2 format(F14.6,1X,F6.3,1X,F6.3,2X,F5.3,2X,F5.3,1X,A12,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'phot/*')
      write(6,*) '....Loading file: phot/*'
      do i__=1,123
        read(1,'(A57)')ar__1
        read(ar__1,2)JD,mag,Errana,Errmag,Erroff,Reg,Subreg
c    ..............Just test output...........
        write(6,2)JD,mag,Errana,Errmag,Erroff,Reg,Subreg
c    .......End.of.Just test output...........
      end do
      close(1)

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