FORTRAN Generation
(/./ftp/cats/J/AJ/153/214)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/153/214 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-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/AJ/153/214   Star-forming potential in the Perseus complex   (Mercimek+, 2017)
*================================================================================
*An estimation of the star formation rate in the Perseus complex.
*    Mercimek S., Myers P.C., Lee K.I., Sadavoy S.I.
*   <Astron. J., 153, 214-214 (2017)>
*   =2017AJ....153..214M    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Starless Cores in Each Clump

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

C  J2000 position composed of: RAdeg DEdeg
      character*8   Clump      (nr__) ! Clump name
      integer*4     Field      (nr__) ! [1/26] Field identifier
      character*16  Name       (nr__) ! Core name (JHHMMSS.s+DDMMSS)
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      real*4        Mass       (nr__) ! (Msun) [0.051/24.529] Mass
      real*4        Reff       (nr__) ! (pc) [0.0082/76] Effective radius

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

C  Declarations for 'table5.dat'	! Protostellar Cores in Each Clump

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

C  J2000 position composed of: RAdeg DEdeg
      character*8   Clump_1    (nr__1) ! Clump name
      integer*4     Field_1    (nr__1) ! [1/26] Field identifier
      character*16  Name_1     (nr__1) ! Core name (JHHMMSS.s+DDMMSS)
      real*8        RAdeg_1    (nr__1) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination in decimal degrees (J2000)
      real*4        Mass_1     (nr__1) ! (Msun) [0.051/24.529] Mass
      real*4        Reff_1     (nr__1) ! (pc) [0.0082/76] Effective radius

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

C  Declarations for 'table6.dat'	! Class 0 in Each Clump

      integer*4 nr__2
      parameter (nr__2=28)	! Number of records
      character*38 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   Clump_2    (nr__2) ! Clump name
      integer*4     Field_2    (nr__2) ! [1/12] Field identifier
      character*7   Name_2     (nr__2) ! Source name
      integer*4     RAh        (nr__2) ! (h) Hour of Right Ascension (J2000)
      integer*4     RAm        (nr__2) ! (min) Minute of Right Ascension (J2000)
      real*4        RAs        (nr__2) ! (s) Second of Right Ascension (J2000)
      character*1   DE_        (nr__2) ! Sign of the Declination (J2000)
      integer*4     DEd        (nr__2) ! (deg) Degree of Declination (J2000)
      integer*4     DEm        (nr__2) ! (arcmin) Arcminute of Declination (J2000)
      integer*4     DEs        (nr__2) ! (arcsec) Arcsecond of Declination (J2000)

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

C  Declarations for 'table7.dat'	! Class I in Each Clump

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

C  J2000 position composed of: RAdeg DEdeg
      character*8   Clump_3    (nr__3) ! Clump name
      integer*4     Field_3    (nr__3) ! [1/53] Field identifier
      character*19  Name_3     (nr__3) ! Spitzer source name (JHHMMSS.ss+DDMMSS.s)
      character*19  Class      (nr__3) ! Spitzer c2d (Evans et al. 2009, J/ApJS/181/321)
*                                classification (1)
      real*8        RAdeg_3    (nr__3) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_3    (nr__3) ! (deg) Declination in decimal degrees (J2000)
*Note (1): Classification from Evans et al. (2009, J/ApJS/181/321) as follows:
*       YSOc = Candidates for YSOs. Detections in all four IRAC bands and MIPS-1;
*              see selection criteria in section 3.1;
*        red = Flux densities at 24 {mu}m that are at least 3 times the flux
*              density from the nearest available IRAC band;
*     PAH_em = Have colors indicative of a peak in the 8 {mu}m band;
*  star+dust = The SED is consistent with that of a stellar photosphere for
*              wavelengths shorter than a particular band but an excess in that
*              band of at least 3{sigma}. This band was appended to make a full
*              name such as "YSOc_star+dust(MP1)" where MP1 implies the first
*              MIPS band, at 24 {mu}m or "YSOc_star+dust(IR4)" where IR4 implies
*              the fourth IRAC band, at 8.0 {mu}m;
*     rising = Lack photometry at enough wavelengths to be classified as YSOc,
*              but were later added as YSOs based on other information. The
*              available flux densities rise significantly to longer wavelengths.

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

C  Declarations for 'table8.dat'	! Class Flat in Each Clump

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

C  J2000 position composed of: RAdeg DEdeg
      character*8   Clump_4    (nr__4) ! Clump name
      integer*4     Field_4    (nr__4) ! [1/53] Field identifier
      character*19  Name_4     (nr__4) ! Spitzer source name (JHHMMSS.ss+DDMMSS.s)
      character*19  Class_1    (nr__4) ! Spitzer c2d (Evans et al. 2009, J/ApJS/181/321)
*                                classification (1)
      real*8        RAdeg_4    (nr__4) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_4    (nr__4) ! (deg) Declination in decimal degrees (J2000)
*Note (1): Classification from Evans et al. (2009, J/ApJS/181/321) as follows:
*       YSOc = Candidates for YSOs. Detections in all four IRAC bands and MIPS-1;
*              see selection criteria in section 3.1;
*        red = Flux densities at 24 {mu}m that are at least 3 times the flux
*              density from the nearest available IRAC band;
*     PAH_em = Have colors indicative of a peak in the 8 {mu}m band;
*  star+dust = The SED is consistent with that of a stellar photosphere for
*              wavelengths shorter than a particular band but an excess in that
*              band of at least 3{sigma}. This band was appended to make a full
*              name such as "YSOc_star+dust(MP1)" where MP1 implies the first
*              MIPS band, at 24 {mu}m or "YSOc_star+dust(IR4)" where IR4 implies
*              the fourth IRAC band, at 8.0 {mu}m;
*     rising = Lack photometry at enough wavelengths to be classified as YSOc,
*              but were later added as YSOs based on other information. The
*              available flux densities rise significantly to longer wavelengths.

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

C  Declarations for 'table9.dat'	! Class II in Each Clump

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

C  J2000 position composed of: RAdeg DEdeg
      character*8   Clump_5    (nr__5) ! Clump name
      integer*4     Field_5    (nr__5) ! [1/53] Field identifier
      character*19  Name_5     (nr__5) ! Spitzer source name (JHHMMSS.ss+DDMMSS.s)
      character*19  Class_2    (nr__5) ! Spitzer c2d (Evans et al. 2009, J/ApJS/181/321)
*                                classification (1)
      real*8        RAdeg_5    (nr__5) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_5    (nr__5) ! (deg) Declination in decimal degrees (J2000)
*Note (1): Classification from Evans et al. (2009, J/ApJS/181/321) as follows:
*       YSOc = Candidates for YSOs. Detections in all four IRAC bands and MIPS-1;
*              see selection criteria in section 3.1;
*        red = Flux densities at 24 {mu}m that are at least 3 times the flux
*              density from the nearest available IRAC band;
*     PAH_em = Have colors indicative of a peak in the 8 {mu}m band;
*  star+dust = The SED is consistent with that of a stellar photosphere for
*              wavelengths shorter than a particular band but an excess in that
*              band of at least 3{sigma}. This band was appended to make a full
*              name such as "YSOc_star+dust(MP1)" where MP1 implies the first
*              MIPS band, at 24 {mu}m or "YSOc_star+dust(IR4)" where IR4 implies
*              the fourth IRAC band, at 8.0 {mu}m;
*     rising = Lack photometry at enough wavelengths to be classified as YSOc,
*              but were later added as YSOs based on other information. The
*              available flux densities rise significantly to longer wavelengths.

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

C  Declarations for 'table10.dat'	! Class III in Each Clump

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

C  J2000 position composed of: RAdeg DEdeg
      character*8   Clump_6    (nr__6) ! Clump name
      integer*4     Field_6    (nr__6) ! [1/53] Field identifier
      character*19  Name_6     (nr__6) ! Spitzer source name (JHHMMSS.ss+DDMMSS.s)
      character*19  Class_3    (nr__6) ! Spitzer c2d (Evans et al. 2009, J/ApJS/181/321)
*                                classification (1)
      real*8        RAdeg_6    (nr__6) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_6    (nr__6) ! (deg) Declination in decimal degrees (J2000)
*Note (1): Classification from Evans et al. (2009, J/ApJS/181/321) as follows:
*       YSOc = Candidates for YSOs. Detections in all four IRAC bands and MIPS-1;
*              see selection criteria in section 3.1;
*        red = Flux densities at 24 {mu}m that are at least 3 times the flux
*              density from the nearest available IRAC band;
*     PAH_em = Have colors indicative of a peak in the 8 {mu}m band;
*  star+dust = The SED is consistent with that of a stellar photosphere for
*              wavelengths shorter than a particular band but an excess in that
*              band of at least 3{sigma}. This band was appended to make a full
*              name such as "YSOc_star+dust(MP1)" where MP1 implies the first
*              MIPS band, at 24 {mu}m or "YSOc_star+dust(IR4)" where IR4 implies
*              the fourth IRAC band, at 8.0 {mu}m;
*     rising = Lack photometry at enough wavelengths to be classified as YSOc,
*              but were later added as YSOs based on other information. The
*              available flux densities rise significantly to longer wavelengths.

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

C  Loading file 'table4.dat'	! Starless Cores in Each Clump

C  Format for file interpretation

    1 format(A8,1X,I2,1X,A16,1X,F8.4,1X,F8.4,1X,F6.3,1X,E7.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,69
        read(1,'(A61)')ar__
        read(ar__,1)
     +  Clump(i__),Field(i__),Name(i__),RAdeg(i__),DEdeg(i__),
     +  Mass(i__),Reff(i__)
c    ..............Just test output...........
        write(6,1)
     +  Clump(i__),Field(i__),Name(i__),RAdeg(i__),DEdeg(i__),
     +  Mass(i__),Reff(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Protostellar Cores in Each Clump

C  Format for file interpretation

    2 format(A8,1X,I2,1X,A16,1X,F8.4,1X,F8.4,1X,F6.3,1X,E7.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,42
        read(1,'(A61)')ar__1
        read(ar__1,2)
     +  Clump_1(i__),Field_1(i__),Name_1(i__),RAdeg_1(i__),
     +  DEdeg_1(i__),Mass_1(i__),Reff_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  Clump_1(i__),Field_1(i__),Name_1(i__),RAdeg_1(i__),
     +  DEdeg_1(i__),Mass_1(i__),Reff_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Class 0 in Each Clump

C  Format for file interpretation

    3 format(A8,1X,I2,1X,A7,1X,I1,1X,I2,1X,F4.1,A1,I2,1X,I2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,28
        read(1,'(A38)')ar__2
        read(ar__2,3)
     +  Clump_2(i__),Field_2(i__),Name_2(i__),RAh(i__),RAm(i__),
     +  RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(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(i__) .GT. -180) RAdeg_2(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg_2(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c    ..............Just test output...........
        write(6,3)
     +  Clump_2(i__),Field_2(i__),Name_2(i__),RAh(i__),RAm(i__),
     +  RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(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'	! Class I in Each Clump

C  Format for file interpretation

    4 format(A8,1X,I2,1X,A19,1X,A19,1X,F8.5,1X,F8.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,57
        read(1,'(A69)')ar__3
        read(ar__3,4)
     +  Clump_3(i__),Field_3(i__),Name_3(i__),Class(i__),RAdeg_3(i__),
     +  DEdeg_3(i__)
c    ..............Just test output...........
        write(6,4)
     +  Clump_3(i__),Field_3(i__),Name_3(i__),Class(i__),RAdeg_3(i__),
     +  DEdeg_3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! Class Flat in Each Clump

C  Format for file interpretation

    5 format(A8,1X,I2,1X,A19,1X,A19,1X,F8.5,1X,F8.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,26
        read(1,'(A69)')ar__4
        read(ar__4,5)
     +  Clump_4(i__),Field_4(i__),Name_4(i__),Class_1(i__),
     +  RAdeg_4(i__),DEdeg_4(i__)
c    ..............Just test output...........
        write(6,5)
     +  Clump_4(i__),Field_4(i__),Name_4(i__),Class_1(i__),
     +  RAdeg_4(i__),DEdeg_4(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! Class II in Each Clump

C  Format for file interpretation

    6 format(A8,1X,I2,1X,A19,1X,A19,1X,F8.5,1X,F8.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,102
        read(1,'(A69)')ar__5
        read(ar__5,6)
     +  Clump_5(i__),Field_5(i__),Name_5(i__),Class_2(i__),
     +  RAdeg_5(i__),DEdeg_5(i__)
c    ..............Just test output...........
        write(6,6)
     +  Clump_5(i__),Field_5(i__),Name_5(i__),Class_2(i__),
     +  RAdeg_5(i__),DEdeg_5(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table10.dat'	! Class III in Each Clump

C  Format for file interpretation

    7 format(A8,1X,I2,1X,A19,1X,A19,1X,F8.5,1X,F8.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table10.dat')
      write(6,*) '....Loading file: table10.dat'
      do i__=1,9
        read(1,'(A69)')ar__6
        read(ar__6,7)
     +  Clump_6(i__),Field_6(i__),Name_6(i__),Class_3(i__),
     +  RAdeg_6(i__),DEdeg_6(i__)
c    ..............Just test output...........
        write(6,7)
     +  Clump_6(i__),Field_6(i__),Name_6(i__),Class_3(i__),
     +  RAdeg_6(i__),DEdeg_6(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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