FORTRAN Generation
(/./ftp/cats/J/AcA/65/297)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AcA/65/297 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-19
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/AcA/65/297        OGLE4 LMC and SMC Cepheids               (Soszynski+, 2015)
*================================================================================
*The OGLE Collection of Variable Stars.
*Classical Cepheids in the Magellanic System.
*    Soszynski I., Udalski A., Szymanski M.K., Skowron D., Pietrzynski G.,
*    Poleski R., Pietrukowicz P., Skowron J., Mroz P., Kozlowski S.,
*    Wyrzykowski L., Ulaczyk K., Pawlak M.
*   <Acta Astron., 65, 297-312 (2015)>
*   =2015AcA....65..297S    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Reclassified stars from the OGLE-III catalogs
                                 of classical Cepheids in the Magellanic Clouds

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

      character*17  Star       (nr__) ! Star's ID
*                                   (OGLE-LMC-CEP-NNNN or OGLE-SMC-CEP-NNNN)
      character*13  NClass     (nr__) ! New classification

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

C  Declarations for 'lmcident.dat'	! LMC identification of stars (2019 update)

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

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

      character*17  Star_1     (nr__1) ! Star's ID
*                                   (OGLE-LMC-CEP-NNNN or OGLE-SMC-CEP-NNNN)
      character*8   Mode       (nr__1) ! Mode(s) of pulsation (G1)
      integer*4     RAh        (nr__1) ! (h) Right ascension, equinox J2000.0 (hours)
      integer*4     RAm        (nr__1) ! (min) Right ascension, equinox J2000.0 (minutes)
      real*4        RAs        (nr__1) ! (s) Right ascension, equinox J2000.0 (seconds)
      character*1   DE_        (nr__1) ! Declination, equinox J2000.0 (sign)
      integer*4     DEd        (nr__1) ! (deg) Declination, equinox J2000.0 (degrees)
      integer*4     DEm        (nr__1) ! (arcmin) Declination, equinox J2000.0 (arc minutes)
      real*4        DEs        (nr__1) ! (arcsec) Declination, equinox J2000.0 (arc seconds)
      character*16  OGLE_IV    (nr__1) ! OGLE-IV ID
      character*15  OGLE_III   (nr__1) ! OGLE-III ID
      character*15  OGLE_II    (nr__1) ! OGLE-II ID
      character*28  OName      (nr__1) ! Other designation (from GCVS)

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

C  Declarations for 'smcident.dat'	! SMC identification of stars (2019 update)

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

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

      character*17  Star_2     (nr__2) ! Star's ID
*                                   (OGLE-LMC-CEP-NNNN or OGLE-SMC-CEP-NNNN)
      character*8   Mode_1     (nr__2) ! Mode(s) of pulsation (G1)
      integer*4     RAh_1      (nr__2) ! (h) Right ascension, equinox J2000.0 (hours)
      integer*4     RAm_1      (nr__2) ! (min) Right ascension, equinox J2000.0 (minutes)
      real*4        RAs_1      (nr__2) ! (s) Right ascension, equinox J2000.0 (seconds)
      character*1   DE__1      (nr__2) ! Declination, equinox J2000.0 (sign)
      integer*4     DEd_1      (nr__2) ! (deg) Declination, equinox J2000.0 (degrees)
      integer*4     DEm_1      (nr__2) ! (arcmin) Declination, equinox J2000.0 (arc minutes)
      real*4        DEs_1      (nr__2) ! (arcsec) Declination, equinox J2000.0 (arc seconds)
      character*16  OGLE_IV_1  (nr__2) ! OGLE-IV ID
      character*15  OGLE_III_1 (nr__2) ! OGLE-III ID
      character*15  OGLE_II_1  (nr__2) ! OGLE-II ID
      character*28  OName_1    (nr__2) ! Other designation (from GCVS)

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

C  Declarations for 'lmccep.dat'	! *LMC parameters of Cepheids (2019 update)

      integer*4 nr__3
      parameter (nr__3=4706)	! Number of records
      character*240 ar__3  	! Full-size record

      character*8   Mode_2     (nr__3) ! Mode(s) of pulsation (G1)
      character*17  Star_3     (nr__3) ! Star's ID
*                                   (OGLE-LMC-CEP-NNNN or OGLE-SMC-CEP-NNNN)
      real*4        v_Imag_    (nr__3) ! (mag) ?=- Intensity mean I-band magnitude
      real*4        v_Vmag_    (nr__3) ! (mag) ?=- Intensity mean V-band magnitude
      real*8        Per        (nr__3) ! (d) Longest period
      real*8        e_Per      (nr__3) ! (d) Uncertainty of the longest period
      real*8        T0         (nr__3) ! (d) ?=- Time of maximum brightness (HJD-2450000)
      real*4        Iamp       (nr__3) ! (mag) ?=- I-band amplitude (maximum-minimum)
      real*4        R21        (nr__3) ! ?=- Fourier coefficient R_21
      real*4        phi21      (nr__3) ! ?=- Fourier coefficient phi_21
      real*4        R31        (nr__3) ! ?=- Fourier coefficient R_31
      real*4        phi31      (nr__3) ! ?=- Fourier coefficient phi_31
      real*8        PerM       (nr__3) ! (d) ? Medium period
      real*8        e_PerM     (nr__3) ! (d) ? Uncertainty of the medium period
      real*8        T0M        (nr__3) ! (d) ? Time of maximum brightness (HJD-2450000)
      real*4        IampM      (nr__3) ! (mag) ? I-band amplitude (maximum-minimum)
      real*4        R21M       (nr__3) ! ? Fourier coefficient R_21
      real*4        phi21M     (nr__3) ! ?=- Fourier coefficient phi_21
      real*4        R31M       (nr__3) ! ? Fourier coefficient R_31
      real*4        phi31M     (nr__3) ! ?=- Fourier coefficient phi_31
      real*8        PerS       (nr__3) ! (d) ? Shortest period
      real*8        e_PerS     (nr__3) ! (d) ? Uncertainty of the shortest period
      real*8        T0S        (nr__3) ! (d) ? Time of maximum brightness (HJD-2450000)
      real*4        IampS      (nr__3) ! (mag) ? I-band amplitude (maximum-minimum)
      real*4        R21S       (nr__3) ! ? Fourier coefficient R_21
      real*4        phi21S     (nr__3) ! ?=- Fourier coefficient phi_21
      real*4        R31S       (nr__3) ! ? Fourier coefficient R_31
      real*4        phi31S     (nr__3) ! ?=- Fourier coefficient phi_31

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

C  Declarations for 'smccep.dat'	! *SMC parameters of Cepheids (2019 update)

      integer*4 nr__4
      parameter (nr__4=4944)	! Number of records
      character*240 ar__4  	! Full-size record

      character*8   Mode_3     (nr__4) ! Mode(s) of pulsation (G1)
      character*17  Star_4     (nr__4) ! Star's ID
*                                   (OGLE-LMC-CEP-NNNN or OGLE-SMC-CEP-NNNN)
      real*4        v_Imag__1  (nr__4) ! (mag) ?=- Intensity mean I-band magnitude
      real*4        v_Vmag__1  (nr__4) ! (mag) ?=- Intensity mean V-band magnitude
      real*8        Per_1      (nr__4) ! (d) Longest period
      real*8        e_Per_1    (nr__4) ! (d) Uncertainty of the longest period
      real*8        T0_1       (nr__4) ! (d) ?=- Time of maximum brightness (HJD-2450000)
      real*4        Iamp_1     (nr__4) ! (mag) ?=- I-band amplitude (maximum-minimum)
      real*4        R21_1      (nr__4) ! ?=- Fourier coefficient R_21
      real*4        phi21_1    (nr__4) ! ?=- Fourier coefficient phi_21
      real*4        R31_1      (nr__4) ! ?=- Fourier coefficient R_31
      real*4        phi31_1    (nr__4) ! ?=- Fourier coefficient phi_31
      real*8        PerM_1     (nr__4) ! (d) ? Medium period
      real*8        e_PerM_1   (nr__4) ! (d) ? Uncertainty of the medium period
      real*8        T0M_1      (nr__4) ! (d) ? Time of maximum brightness (HJD-2450000)
      real*4        IampM_1    (nr__4) ! (mag) ? I-band amplitude (maximum-minimum)
      real*4        R21M_1     (nr__4) ! ? Fourier coefficient R_21
      real*4        phi21M_1   (nr__4) ! ?=- Fourier coefficient phi_21
      real*4        R31M_1     (nr__4) ! ? Fourier coefficient R_31
      real*4        phi31M_1   (nr__4) ! ?=- Fourier coefficient phi_31
      real*8        PerS_1     (nr__4) ! (d) ? Shortest period
      real*8        e_PerS_1   (nr__4) ! (d) ? Uncertainty of the shortest period
      real*8        T0S_1      (nr__4) ! (d) ? Time of maximum brightness (HJD-2450000)
      real*4        IampS_1    (nr__4) ! (mag) ? I-band amplitude (maximum-minimum)
      real*4        R21S_1     (nr__4) ! ? Fourier coefficient R_21
      real*4        phi21S_1   (nr__4) ! ?=- Fourier coefficient phi_21
      real*4        R31S_1     (nr__4) ! ? Fourier coefficient R_31
      real*4        phi31S_1   (nr__4) ! ?=- Fourier coefficient phi_31

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

C  Declarations for 'lremarks.dat'	! LMC remarks on selected objects

      integer*4 nr__5
      parameter (nr__5=138)	! Number of records
      character*108 ar__5  	! Full-size record

      character*17  Star_5     (nr__5) ! Star's ID
      character*90  Rem        (nr__5) ! Remark

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

C  Declarations for 'sremarks.dat'	! SMC remarks on selected objects

      integer*4 nr__6
      parameter (nr__6=168)	! Number of records
      character*108 ar__6  	! Full-size record

      character*17  Star_6     (nr__6) ! Star's ID
      character*90  Rem_1      (nr__6) ! Remark

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

C  Loading file 'table1.dat'	! Reclassified stars from the OGLE-III catalogs
*                                 of classical Cepheids in the Magellanic Clouds

C  Format for file interpretation

    1 format(A17,1X,A13)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,46
        read(1,'(A31)')ar__
        read(ar__,1)Star(i__),NClass(i__)
c    ..............Just test output...........
        write(6,1)Star(i__),NClass(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'lmcident.dat'	! LMC identification of stars (2019 update)

C  Format for file interpretation

    2 format(
     +  A17,1X,A8,2X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,2X,A16,
     +  1X,A15,1X,A15,1X,A28)

C  Effective file loading

      open(unit=1,status='old',file=
     +'lmcident.dat')
      write(6,*) '....Loading file: lmcident.dat'
      do i__=1,4706
        read(1,'(A130)')ar__1
        read(ar__1,2)
     +  Star_1(i__),Mode(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),OGLE_IV(i__),OGLE_III(i__),
     +  OGLE_II(i__),OName(i__)
        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,2)
     +  Star_1(i__),Mode(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),OGLE_IV(i__),OGLE_III(i__),
     +  OGLE_II(i__),OName(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 'smcident.dat'	! SMC identification of stars (2019 update)

C  Format for file interpretation

    3 format(
     +  A17,1X,A8,2X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,2X,A16,
     +  1X,A15,1X,A15,1X,A28)

C  Effective file loading

      open(unit=1,status='old',file=
     +'smcident.dat')
      write(6,*) '....Loading file: smcident.dat'
      do i__=1,4944
        read(1,'(A130)')ar__2
        read(ar__2,3)
     +  Star_2(i__),Mode_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),OGLE_IV_1(i__),
     +  OGLE_III_1(i__),OGLE_II_1(i__),OName_1(i__)
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  Star_2(i__),Mode_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),OGLE_IV_1(i__),
     +  OGLE_III_1(i__),OGLE_II_1(i__),OName_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'lmccep.dat'	! *LMC parameters of Cepheids (2019 update)

C  Format for file interpretation

    4 format(
     +  A8,1X,A17,2X,F6.3,1X,F6.3,1X,F11.7,1X,F9.7,2X,F10.5,2X,F5.3,
     +  2X,F5.3,1X,F5.3,2X,F5.3,1X,F5.3,1X,F10.7,1X,F9.7,2X,F10.5,2X,
     +  F5.3,2X,F5.3,1X,F5.3,2X,F5.3,1X,F5.3,1X,F10.7,1X,F9.7,2X,
     +  F10.5,2X,F5.3,2X,F5.3,1X,F5.3,2X,F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'lmccep.dat')
      write(6,*) '....Loading file: lmccep.dat'
      do i__=1,4706
        read(1,'(A240)')ar__3
        read(ar__3,4)
     +  Mode_2(i__),Star_3(i__),v_Imag_(i__),v_Vmag_(i__),Per(i__),
     +  e_Per(i__),T0(i__),Iamp(i__),R21(i__),phi21(i__),R31(i__),
     +  phi31(i__),PerM(i__),e_PerM(i__),T0M(i__),IampM(i__),
     +  R21M(i__),phi21M(i__),R31M(i__),phi31M(i__),PerS(i__),
     +  e_PerS(i__),T0S(i__),IampS(i__),R21S(i__),phi21S(i__),
     +  R31S(i__),phi31S(i__)
        if (idig(ar__3(29:34)).EQ.0) v_Imag_(i__) =  rNULL__
        if (idig(ar__3(36:41)).EQ.0) v_Vmag_(i__) =  rNULL__
        if (idig(ar__3(66:75)).EQ.0) T0(i__) =  rNULL__
        if (idig(ar__3(78:82)).EQ.0) Iamp(i__) =  rNULL__
        if (idig(ar__3(85:89)).EQ.0) R21(i__) =  rNULL__
        if (idig(ar__3(91:95)).EQ.0) phi21(i__) =  rNULL__
        if (idig(ar__3(98:102)).EQ.0) R31(i__) =  rNULL__
        if (idig(ar__3(104:108)).EQ.0) phi31(i__) =  rNULL__
        if(ar__3(110:119) .EQ. '') PerM(i__) = rNULL__
        if(ar__3(121:129) .EQ. '') e_PerM(i__) = rNULL__
        if(ar__3(132:141) .EQ. '') T0M(i__) = rNULL__
        if(ar__3(144:148) .EQ. '') IampM(i__) = rNULL__
        if(ar__3(151:155) .EQ. '') R21M(i__) = rNULL__
        if (idig(ar__3(157:161)).EQ.0) phi21M(i__) =  rNULL__
        if(ar__3(164:168) .EQ. '') R31M(i__) = rNULL__
        if (idig(ar__3(170:174)).EQ.0) phi31M(i__) =  rNULL__
        if(ar__3(176:185) .EQ. '') PerS(i__) = rNULL__
        if(ar__3(187:195) .EQ. '') e_PerS(i__) = rNULL__
        if(ar__3(198:207) .EQ. '') T0S(i__) = rNULL__
        if(ar__3(210:214) .EQ. '') IampS(i__) = rNULL__
        if(ar__3(217:221) .EQ. '') R21S(i__) = rNULL__
        if (idig(ar__3(223:227)).EQ.0) phi21S(i__) =  rNULL__
        if(ar__3(230:234) .EQ. '') R31S(i__) = rNULL__
        if (idig(ar__3(236:240)).EQ.0) phi31S(i__) =  rNULL__
c    ..............Just test output...........
        write(6,4)
     +  Mode_2(i__),Star_3(i__),v_Imag_(i__),v_Vmag_(i__),Per(i__),
     +  e_Per(i__),T0(i__),Iamp(i__),R21(i__),phi21(i__),R31(i__),
     +  phi31(i__),PerM(i__),e_PerM(i__),T0M(i__),IampM(i__),
     +  R21M(i__),phi21M(i__),R31M(i__),phi31M(i__),PerS(i__),
     +  e_PerS(i__),T0S(i__),IampS(i__),R21S(i__),phi21S(i__),
     +  R31S(i__),phi31S(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'smccep.dat'	! *SMC parameters of Cepheids (2019 update)

C  Format for file interpretation

    5 format(
     +  A8,1X,A17,2X,F6.3,1X,F6.3,1X,F11.7,1X,F9.7,2X,F10.5,2X,F5.3,
     +  2X,F5.3,1X,F5.3,2X,F5.3,1X,F5.3,1X,F10.7,1X,F9.7,2X,F10.5,2X,
     +  F5.3,2X,F5.3,1X,F5.3,2X,F5.3,1X,F5.3,1X,F10.7,1X,F9.7,2X,
     +  F10.5,2X,F5.3,2X,F5.3,1X,F5.3,2X,F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'smccep.dat')
      write(6,*) '....Loading file: smccep.dat'
      do i__=1,4944
        read(1,'(A240)')ar__4
        read(ar__4,5)
     +  Mode_3(i__),Star_4(i__),v_Imag__1(i__),v_Vmag__1(i__),
     +  Per_1(i__),e_Per_1(i__),T0_1(i__),Iamp_1(i__),R21_1(i__),
     +  phi21_1(i__),R31_1(i__),phi31_1(i__),PerM_1(i__),
     +  e_PerM_1(i__),T0M_1(i__),IampM_1(i__),R21M_1(i__),
     +  phi21M_1(i__),R31M_1(i__),phi31M_1(i__),PerS_1(i__),
     +  e_PerS_1(i__),T0S_1(i__),IampS_1(i__),R21S_1(i__),
     +  phi21S_1(i__),R31S_1(i__),phi31S_1(i__)
        if (idig(ar__4(29:34)).EQ.0) v_Imag__1(i__) =  rNULL__
        if (idig(ar__4(36:41)).EQ.0) v_Vmag__1(i__) =  rNULL__
        if (idig(ar__4(66:75)).EQ.0) T0_1(i__) =  rNULL__
        if (idig(ar__4(78:82)).EQ.0) Iamp_1(i__) =  rNULL__
        if (idig(ar__4(85:89)).EQ.0) R21_1(i__) =  rNULL__
        if (idig(ar__4(91:95)).EQ.0) phi21_1(i__) =  rNULL__
        if (idig(ar__4(98:102)).EQ.0) R31_1(i__) =  rNULL__
        if (idig(ar__4(104:108)).EQ.0) phi31_1(i__) =  rNULL__
        if(ar__4(110:119) .EQ. '') PerM_1(i__) = rNULL__
        if(ar__4(121:129) .EQ. '') e_PerM_1(i__) = rNULL__
        if(ar__4(132:141) .EQ. '') T0M_1(i__) = rNULL__
        if(ar__4(144:148) .EQ. '') IampM_1(i__) = rNULL__
        if(ar__4(151:155) .EQ. '') R21M_1(i__) = rNULL__
        if (idig(ar__4(157:161)).EQ.0) phi21M_1(i__) =  rNULL__
        if(ar__4(164:168) .EQ. '') R31M_1(i__) = rNULL__
        if (idig(ar__4(170:174)).EQ.0) phi31M_1(i__) =  rNULL__
        if(ar__4(176:185) .EQ. '') PerS_1(i__) = rNULL__
        if(ar__4(187:195) .EQ. '') e_PerS_1(i__) = rNULL__
        if(ar__4(198:207) .EQ. '') T0S_1(i__) = rNULL__
        if(ar__4(210:214) .EQ. '') IampS_1(i__) = rNULL__
        if(ar__4(217:221) .EQ. '') R21S_1(i__) = rNULL__
        if (idig(ar__4(223:227)).EQ.0) phi21S_1(i__) =  rNULL__
        if(ar__4(230:234) .EQ. '') R31S_1(i__) = rNULL__
        if (idig(ar__4(236:240)).EQ.0) phi31S_1(i__) =  rNULL__
c    ..............Just test output...........
        write(6,5)
     +  Mode_3(i__),Star_4(i__),v_Imag__1(i__),v_Vmag__1(i__),
     +  Per_1(i__),e_Per_1(i__),T0_1(i__),Iamp_1(i__),R21_1(i__),
     +  phi21_1(i__),R31_1(i__),phi31_1(i__),PerM_1(i__),
     +  e_PerM_1(i__),T0M_1(i__),IampM_1(i__),R21M_1(i__),
     +  phi21M_1(i__),R31M_1(i__),phi31M_1(i__),PerS_1(i__),
     +  e_PerS_1(i__),T0S_1(i__),IampS_1(i__),R21S_1(i__),
     +  phi21S_1(i__),R31S_1(i__),phi31S_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'lremarks.dat'	! LMC remarks on selected objects

C  Format for file interpretation

    6 format(A17,1X,A90)

C  Effective file loading

      open(unit=1,status='old',file=
     +'lremarks.dat')
      write(6,*) '....Loading file: lremarks.dat'
      do i__=1,138
        read(1,'(A108)')ar__5
        read(ar__5,6)Star_5(i__),Rem(i__)
c    ..............Just test output...........
        write(6,6)Star_5(i__),Rem(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'sremarks.dat'	! SMC remarks on selected objects

C  Format for file interpretation

    7 format(A17,1X,A90)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sremarks.dat')
      write(6,*) '....Loading file: sremarks.dat'
      do i__=1,168
        read(1,'(A108)')ar__6
        read(ar__6,7)Star_6(i__),Rem_1(i__)
c    ..............Just test output...........
        write(6,7)Star_6(i__),Rem_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end