FORTRAN Generation
(/./ftp/cats/J/MNRAS/399/1709)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/399/1709 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 2026-Jun-08
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/399/1709    Near-infrared survey of Miras            (Matsunaga+, 2009)
*================================================================================
*A near-infrared survey of Miras and the distance to the Galactic Centre.
*    Matsunaga N., Kawadu T., Nishiyama S., Nagayama T., Hatano H., Tamura M.,
*    Glass I.S., Nagata T.
*   <Mon. Not. R. Astron. Soc., 399, 1709-1729 (2009)>
*   =2009MNRAS.399.1709M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table6.dat'	! Catalogue of variable stars

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

      integer*4     Seq         ! Sequential number
      character*16  Name        ! Name (HHMMSSss+DDMMSSs)
      real*4        Jmag        ! (mag) ?=99.99 J mean magnitude
      real*4        Jamp        ! (mag) ?=0.00 Peak-to-peak amplitude for J magnitude
      real*4        Hmag        ! (mag) ?=99.99 H mean magnitude
      real*4        Hamp        ! (mag) ?=0.00 Peak-to-peak amplitude for H magnitude
      real*4        Ksmag       ! (mag) ?=99.99 Ks mean magnitude
      real*4        Kamp        ! (mag) ?=0.00 Peak-to-peak amplitude for Ks magnitude
      integer*4     f_Jmag      ! [0/6] Problem on Jmag when non-zero (1)
      integer*4     f_Hmag      ! [0/6] Problem on Hmag when non-zero (1)
      integer*4     f_Ksmag     ! [0/6] Problem on Ksmag when non-zero (1)
      integer*4     SSTGC       ! ? Ramirez et al. (2008, Cat. <II/295>)
*                                  counterpart
      character*7   v_GMC2001_  ! Glass et al. (G01, 2001. Cat. <J/MNRAS/321/77>)
*                                 counterpart
      integer*4     Per         ! (d) ? Period
      integer*4     f_Per       ! [0/5] Flag on period (0=OK) (2)
*Note (1): Flags on magnitudes as follows:
*      0 = The magnitude was obtained without any clear problems
*      1 = We did not obtain the magnitude because the object often falls
*          out of the field of view
*      2 = We did not obtain the magnitude because the object is too bright
*      3 = We did not obtain the magnitude because the object is too faint
*      4 = We obtained the mean magnitude, but it is affected by its
*          location around the edge of the images
*      5 = We obtained the mean magnitude, but it is affected by saturation
*          or deviation from the linear response
*      6 = We obtained the mean magnitude, but it is affected by the fact that 
*          the object was not detected in some cases because of its faintness
*Note (2): Flag on period as follows:
*      0 = P_G01_ and P_IRSF_ agree with each other to within 0.075dex.
*          We adopt PIRSF
*      1 = P_G01_ and P_IRSF_  disagree and we adopt P_IRSF_
*      2 = P_G01_ is not given and we adopt P_IRSF_
*      3 = P_G01_ fit our light curve but P_IRSF_ is not properly obtained.
*          We adopt P_G01_
*      4 = P_G01_ does not fit the IRSF light curve. No periodicity is found
*      5 = P_G01_ is not given and no clear periodicity is found with the
*          IRSF data

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

C  Declarations for 'table9.dat'	! Extinctions A_Ks_ and distance moduli mu0
                              estimated for Miras

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

      integer*4     Seq_1       ! Sequential number of star
      real*4        AHK_Ks      ! (mag) ?=99.99 Extinction A_Ks_ from HK pair of
*                                           filter bands (1)
      real*4        muJK0       ! (mag) ?=99.99 Distance moduli from JK pair of
*                                           filter bands (2)
      real*4        AJK_Ks      ! (mag) ?=99.99 Extinction A_Ks_ from JK pair of
*                                           filter bands (1)
      real*4        muHK0       ! (mag) ?=99.99 Distance moduli from HK pair of
*                                           filter bands (2)
      real*4        AJH_Ks      ! (mag) ?=99.99 Extinction A_Ks_ from JH pair of
*                                           filter bands (1)
      real*4        muJH0       ! (mag) ?=99.99 Distance moduli from JH pair of
*                                           filter bands (2)
*Note (1): For example, AHH,Ks= (H-Ks)/(r_H_-1)-(M_H_-M_Ks_)/(r_H_-1),
*           r_H_=1.731
*Note (2): For example, muHK0=(r_H_Ks-H)/(r_H_-1)-(r_H_M_Ks_-M_H_)/(r_H_-1),
*           r_H_=1.731

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

C  Declarations for 'table7.dat'	! Light variations

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

      integer*4     Seq_2       ! Sequential number of star
      real*8        MJD         ! (d) Modified Julian date
      real*4        Jmag_1      ! (mag) ?=99.99 J mean magnitude
      real*4        Hmag_1      ! (mag) ?=99.99 H mean magnitude
      real*4        Ksmag_1     ! (mag) ?=99.99 Ks mean magnitude

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

C  Loading file 'table6.dat'	! Catalogue of variable stars

C  Format for file interpretation

    1 format(
     +  I4,1X,A16,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  I1,I1,I1,1X,I7,1X,A7,1X,I3,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,1364
        read(1,'(A80)')ar__
        read(ar__,1)
     +  Seq,Name,Jmag,Jamp,Hmag,Hamp,Ksmag,Kamp,f_Jmag,f_Hmag,f_Ksmag,
     +  SSTGC,v_GMC2001_,Per,f_Per
        if(ar__(60:66) .EQ. '') SSTGC = iNULL__
        if(ar__(76:78) .EQ. '') Per = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Seq,Name,Jmag,Jamp,Hmag,Hamp,Ksmag,Kamp,f_Jmag,f_Hmag,f_Ksmag,
     +  SSTGC,v_GMC2001_,Per,f_Per
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! Extinctions A_Ks_ and distance moduli mu0
*                              estimated for Miras

C  Format for file interpretation

    2 format(I4,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,175
        read(1,'(A40)')ar__1
        read(ar__1,2)Seq_1,AHK_Ks,muJK0,AJK_Ks,muHK0,AJH_Ks,muJH0
c    ..............Just test output...........
        write(6,2)Seq_1,AHK_Ks,muJK0,AJK_Ks,muHK0,AJH_Ks,muJH0
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Light variations

C  Format for file interpretation

    3 format(I4,1X,F10.4,1X,F5.2,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,116887
        read(1,'(A33)')ar__2
        read(ar__2,3)Seq_2,MJD,Jmag_1,Hmag_1,Ksmag_1
c    ..............Just test output...........
        write(6,3)Seq_2,MJD,Jmag_1,Hmag_1,Ksmag_1
c    .......End.of.Just test output...........
      end do
      close(1)

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