FORTRAN Generation
(/./ftp/cats/J/MNRAS/396/964)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/396/964 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 2026-Oct-11
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/396/964     T Tauri in and around bright-rimmed clouds  (Chauhan+, 2009)
*================================================================================
*Triggered star formation and evolution of T-Tauri stars in and around
*bright-rimmed clouds.
*    Chauhan N., Pandey A.K., Ogura K., Ojha D.K., Bhatt B.C., Ghosh S.K.,
*    Rawat P.S.
*   <Mon. Not. R. Astron. Soc., 396, 964-983 (2009)>
*   =2009MNRAS.396..964C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! B, V and Ic photometric data for the stars
                              along with their positions, EWs and
                              corresponding 2MASS data

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

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

      character*8   BRC        (nr__) ! Cloud name (BRCNNWW)
      integer*4     Seq        (nr__) ! Source sequential number,
*                                   [CPO2009] NNN in Simbad
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__) ! Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) Declination (J2000)
      real*4        Bmag       (nr__) ! (mag) ? Johnson B magnitude
      real*4        e_Bmag     (nr__) ! (mag) ? rms uncertainty on Bmag
      real*4        Vmag       (nr__) ! (mag) ? Johnson V magnitude
      real*4        e_Vmag     (nr__) ! (mag) ? rms uncertainty on Vmag
      real*4        Icmag      (nr__) ! (mag) ? Cousins I magnitude
      real*4        e_Icmag    (nr__) ! (mag) ? rms uncertainty on Icmag
      real*4        EWHa       (nr__) ! (0.1nm) ? Halpha equivalent width
      character*16  v2MASS     (nr__) ! 2MASS name (HHMMSSss+DDMMSSs)
      real*4        Jmag       (nr__) ! (mag) 2MASS J magnitude
      real*4        e_Jmag     (nr__) ! (mag) rms uncertainty on Jmag
      real*4        Hmag       (nr__) ! (mag) 2MASS H magnitude
      real*4        e_Hmag     (nr__) ! (mag) rms uncertainty on Hmag
      real*4        Kmag       (nr__) ! (mag) 2MASS Ks magnitude
      real*4        e_Kmag     (nr__) ! (mag) rms uncertainty on Kmag
      character*3   Qflag      (nr__) ! 2MASS quality flags
      character*3   Cflag      (nr__) ! 2MASS contamination and confusion flag
      integer*4     v_OSP2002_ (nr__) ! ? Ogura et al. (2002, Cat. J/AJ/123/2597)
*                                    number, [OSP2002] BRC NNWW NN in Simbad

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

C  Declarations for 'table4.dat'	! Dereddened magnitude, colours, age and mass of
                              the YSOs associated with the BRCs

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

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

      character*8   BRC_1      (nr__1) ! Cloud name (BRCNNWW)
      integer*4     Seq_1      (nr__1) ! Source sequential number,
*                                    [CPO2009] NNN in Simbad
      integer*4     RAh_1      (nr__1) ! (h) Right ascension (J2000)
      integer*4     RAm_1      (nr__1) ! (min) Right ascension (J2000)
      real*4        RAs_1      (nr__1) ! (s) Right ascension (J2000)
      character*1   DE__1      (nr__1) ! Declination sign (J2000)
      integer*4     DEd_1      (nr__1) ! (deg) Declination (J2000)
      integer*4     DEm_1      (nr__1) ! (arcmin) Declination (J2000)
      real*4        DEs_1      (nr__1) ! (arcsec) Declination (J2000)
      real*4        V0mag      (nr__1) ! (mag) Dereddened Johnson V magnitude
      real*4        v_B_V_0    (nr__1) ! (mag) ? Dereddened Johnson B-V colour index
      real*4        v_V_Ic_0   (nr__1) ! (mag) ? Dereddened Johnson-Cousins V-I colour index
      real*4        AV         (nr__1) ! (mag) Absorption in V band
      real*4        e_AV       (nr__1) ! (mag) ? rms uncertainty on AV
      character*1   l_Age      (nr__1) ! Limit flag on Age
      real*4        Age        (nr__1) ! (Myr) Age
      real*4        e_Age      (nr__1) ! (Myr) ? rms uncertainty on Age
      real*4        Mass       (nr__1) ! (solMass) ? Mass
      real*4        e_Mass     (nr__1) ! (solMass) ? rms uncertainty on Mass
      integer*4     v_OSP2002__1(nr__1) ! ? Ogura et al. (2002, Cat. J/AJ/123/2597)
*                                     number, [OSP2002] BRC NNWW NN in Simbad

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

C  Declarations for 'table6.dat'	! IRAC photometric magnitudes of the disk bearing
                              candidates in BRCs 2, 27 and 13/14

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

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

      character*8   BRC_2      (nr__2) ! Cloud name (BRCNNWW)
      integer*4     RAh_2      (nr__2) ! (h) Right ascension (J2000)
      integer*4     RAm_2      (nr__2) ! (min) Right ascension (J2000)
      real*4        RAs_2      (nr__2) ! (s) Right ascension (J2000)
      character*1   DE__2      (nr__2) ! Declination sign (J2000)
      integer*4     DEd_2      (nr__2) ! (deg) Declination (J2000)
      integer*4     DEm_2      (nr__2) ! (arcmin) Declination (J2000)
      real*4        DEs_2      (nr__2) ! (arcsec) Declination (J2000)
      real*4        v_3_6_     (nr__2) ! (mag) Spitzer/IRAC 3.6um magnitude
      real*4        e__3_6_    (nr__2) ! (mag) rms uncertainty on [3.6]
      real*4        v_4_5_     (nr__2) ! (mag) Spitzer/IRAC 4.5um magnitude
      real*4        e__4_5_    (nr__2) ! (mag) rms uncertainty on [4.5]
      real*4        v_5_8_     (nr__2) ! (mag) Spitzer/IRAC 5.8um magnitude
      real*4        e__5_8_    (nr__2) ! (mag) rms uncertainty on [5.8]
      real*4        v_8_0_     (nr__2) ! (mag) Spitzer/IRAC 8.0um magnitude
      real*4        e__8_0_    (nr__2) ! (mag) rms uncertainty on [8.0]
      character*3   Cl         (nr__2) ! YSO class

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

C  Declarations for 'table7.dat'	! J, H and K magnitudes of the sources used in
                              the analysis (cf. Sect. 6.2)

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

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

      character*8   Cloud      (nr__3) ! Cloud name (1848E, 1848W or CMa R1)
      integer*4     RAh_3      (nr__3) ! (h) Right ascension (J2000)
      integer*4     RAm_3      (nr__3) ! (min) Right ascension (J2000)
      real*4        RAs_3      (nr__3) ! (s) Right ascension (J2000)
      character*1   DE__3      (nr__3) ! Declination sign (J2000)
      integer*4     DEd_3      (nr__3) ! (deg) Declination (J2000)
      integer*4     DEm_3      (nr__3) ! (arcmin) Declination (J2000)
      real*4        DEs_3      (nr__3) ! (arcsec) Declination (J2000)
      character*16  v2MASS_1   (nr__3) ! 2MASS name (HHMMSSss+DDMMSSs)
      real*4        Jmag_1     (nr__3) ! (mag) 2MASS J magnitude
      character*1   l_e_Jmag   (nr__3) ! Limit flag on e_Jmag
      real*4        e_Jmag_1   (nr__3) ! (mag) rms uncertainty on Jmag
      real*4        Hmag_1     (nr__3) ! (mag) 2MASS H magnitude
      character*1   l_e_Hmag   (nr__3) ! Limit flag on e_Hmag
      real*4        e_Hmag_1   (nr__3) ! (mag) rms uncertainty on Hmag
      real*4        Kmag_1     (nr__3) ! (mag) 2MASS Ks magnitude
      character*1   l_e_Kmag   (nr__3) ! Limit flag on e_Kmag
      real*4        e_Kmag_1   (nr__3) ! (mag) rms uncertainty on Kmag
      character*3   Qflag_1    (nr__3) ! 2MASS quality flags
      character*3   Cflag_1    (nr__3) ! 2MASS contamination and confusion flag
      real*4        AV_1       (nr__3) ! (mag) Absorption in V band
      real*4        D_H_K      (nr__3) ! (mag) NIR excess, {Delta}(H-K)
      character*5   Source     (nr__3) ! Source of near-IR photometry [2MASS/M06] (1)
*Note (1): Source as follows:
*  2MASS = 2MASS survey, Cat. II/246
*    M06 = Matsuyanagi et al., 2006, Cat. J/PASJ/58/29

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

C  Loading file 'table3.dat'	! B, V and Ic photometric data for the stars
*                              along with their positions, EWs and
*                              corresponding 2MASS data

C  Format for file interpretation

    1 format(
     +  A8,I3,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,
     +  F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.2,1X,A16,1X,F6.3,
     +  1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,A3,1X,A3,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,133
        read(1,'(A147)')ar__
        read(ar__,1)
     +  BRC(i__),Seq(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),Bmag(i__),e_Bmag(i__),Vmag(i__),
     +  e_Vmag(i__),Icmag(i__),e_Icmag(i__),EWHa(i__),v2MASS(i__),
     +  Jmag(i__),e_Jmag(i__),Hmag(i__),e_Hmag(i__),Kmag(i__),
     +  e_Kmag(i__),Qflag(i__),Cflag(i__),v_OSP2002_(i__)
        if(ar__(36:41) .EQ. '') Bmag(i__) = rNULL__
        if(ar__(43:47) .EQ. '') e_Bmag(i__) = rNULL__
        if(ar__(49:54) .EQ. '') Vmag(i__) = rNULL__
        if(ar__(56:60) .EQ. '') e_Vmag(i__) = rNULL__
        if(ar__(62:67) .EQ. '') Icmag(i__) = rNULL__
        if(ar__(69:73) .EQ. '') e_Icmag(i__) = rNULL__
        if(ar__(75:80) .EQ. '') EWHa(i__) = rNULL__
        if(ar__(146:147) .EQ. '') v_OSP2002_(i__) = iNULL__
        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,1)
     +  BRC(i__),Seq(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),Bmag(i__),e_Bmag(i__),Vmag(i__),
     +  e_Vmag(i__),Icmag(i__),e_Icmag(i__),EWHa(i__),v2MASS(i__),
     +  Jmag(i__),e_Jmag(i__),Hmag(i__),e_Hmag(i__),Kmag(i__),
     +  e_Kmag(i__),Qflag(i__),Cflag(i__),v_OSP2002_(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 'table4.dat'	! Dereddened magnitude, colours, age and mass of
*                              the YSOs associated with the BRCs

C  Format for file interpretation

    2 format(
     +  A8,I3,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,
     +  F5.3,1X,F5.3,1X,F4.2,1X,F3.1,1X,A1,F4.1,1X,F3.1,1X,F4.2,1X,
     +  F4.2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,133
        read(1,'(A85)')ar__1
        read(ar__1,2)
     +  BRC_1(i__),Seq_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),V0mag(i__),
     +  v_B_V_0(i__),v_V_Ic_0(i__),AV(i__),e_AV(i__),l_Age(i__),
     +  Age(i__),e_Age(i__),Mass(i__),e_Mass(i__),v_OSP2002__1(i__)
        if(ar__1(43:47) .EQ. '') v_B_V_0(i__) = rNULL__
        if(ar__1(49:53) .EQ. '') v_V_Ic_0(i__) = rNULL__
        if(ar__1(60:62) .EQ. '') e_AV(i__) = rNULL__
        if(ar__1(70:72) .EQ. '') e_Age(i__) = rNULL__
        if(ar__1(74:77) .EQ. '') Mass(i__) = rNULL__
        if(ar__1(79:82) .EQ. '') e_Mass(i__) = rNULL__
        if(ar__1(84:85) .EQ. '') v_OSP2002__1(i__) = iNULL__
        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,2)
     +  BRC_1(i__),Seq_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),V0mag(i__),
     +  v_B_V_0(i__),v_V_Ic_0(i__),AV(i__),e_AV(i__),l_Age(i__),
     +  Age(i__),e_Age(i__),Mass(i__),e_Mass(i__),v_OSP2002__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 'table6.dat'	! IRAC photometric magnitudes of the disk bearing
*                              candidates in BRCs 2, 27 and 13/14

C  Format for file interpretation

    3 format(
     +  A8,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,F5.3,
     +  1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,178
        read(1,'(A88)')ar__2
        read(ar__2,3)
     +  BRC_2(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),DE__2(i__),
     +  DEd_2(i__),DEm_2(i__),DEs_2(i__),v_3_6_(i__),e__3_6_(i__),
     +  v_4_5_(i__),e__4_5_(i__),v_5_8_(i__),e__5_8_(i__),v_8_0_(i__),
     +  e__8_0_(i__),Cl(i__)
        RAdeg_2(i__) = rNULL__
        DEdeg_2(i__) = rNULL__
c  Derive coordinates RAdeg_2 and DEdeg_2 from input data
c  (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
        if(RAh_2(i__) .GT. -180) RAdeg_2(i__)=RAh_2(i__)*15.
        if(RAm_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm_2(i__)/4.
        if(RAs_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAs_2(i__)/240.
        if(DEd_2(i__) .GE. 0) DEdeg_2(i__)=DEd_2(i__)
        if(DEm_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm_2(i__)/60.
        if(DEs_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEs_2(i__)/3600.
        if(DE__2(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c    ..............Just test output...........
        write(6,3)
     +  BRC_2(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),DE__2(i__),
     +  DEd_2(i__),DEm_2(i__),DEs_2(i__),v_3_6_(i__),e__3_6_(i__),
     +  v_4_5_(i__),e__4_5_(i__),v_5_8_(i__),e__5_8_(i__),v_8_0_(i__),
     +  e__8_0_(i__),Cl(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_2(i__),DEdeg_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! J, H and K magnitudes of the sources used in
*                              the analysis (cf. Sect. 6.2)

C  Format for file interpretation

    4 format(
     +  A8,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,A16,1X,F6.3,
     +  1X,A1,F5.3,1X,F6.3,1X,A1,F5.3,1X,F6.3,1X,A1,F5.3,1X,A3,1X,A3,
     +  1X,F5.2,1X,F5.3,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,242
        read(1,'(A117)')ar__3
        read(ar__3,4)
     +  Cloud(i__),RAh_3(i__),RAm_3(i__),RAs_3(i__),DE__3(i__),
     +  DEd_3(i__),DEm_3(i__),DEs_3(i__),v2MASS_1(i__),Jmag_1(i__),
     +  l_e_Jmag(i__),e_Jmag_1(i__),Hmag_1(i__),l_e_Hmag(i__),
     +  e_Hmag_1(i__),Kmag_1(i__),l_e_Kmag(i__),e_Kmag_1(i__),
     +  Qflag_1(i__),Cflag_1(i__),AV_1(i__),D_H_K(i__),Source(i__)
        RAdeg_3(i__) = rNULL__
        DEdeg_3(i__) = rNULL__
c  Derive coordinates RAdeg_3 and DEdeg_3 from input data
c  (RAdeg_3 and DEdeg_3 are set to rNULL__ when unknown)
        if(RAh_3(i__) .GT. -180) RAdeg_3(i__)=RAh_3(i__)*15.
        if(RAm_3(i__) .GT. -180) RAdeg_3(i__)=RAdeg_3(i__)+RAm_3(i__)/4.
        if(RAs_3(i__) .GT. -180) RAdeg_3(i__)=RAdeg_3(i__)+RAs_3(i__)/240.
        if(DEd_3(i__) .GE. 0) DEdeg_3(i__)=DEd_3(i__)
        if(DEm_3(i__) .GE. 0) DEdeg_3(i__)=DEdeg_3(i__)+DEm_3(i__)/60.
        if(DEs_3(i__) .GE. 0) DEdeg_3(i__)=DEdeg_3(i__)+DEs_3(i__)/3600.
        if(DE__3(i__).EQ.'-'.AND.DEdeg_3(i__).GE.0) DEdeg_3(i__)=-DEdeg_3(i__)
c    ..............Just test output...........
        write(6,4)
     +  Cloud(i__),RAh_3(i__),RAm_3(i__),RAs_3(i__),DE__3(i__),
     +  DEd_3(i__),DEm_3(i__),DEs_3(i__),v2MASS_1(i__),Jmag_1(i__),
     +  l_e_Jmag(i__),e_Jmag_1(i__),Hmag_1(i__),l_e_Hmag(i__),
     +  e_Hmag_1(i__),Kmag_1(i__),l_e_Kmag(i__),e_Kmag_1(i__),
     +  Qflag_1(i__),Cflag_1(i__),AV_1(i__),D_H_K(i__),Source(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_3(i__),DEdeg_3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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