FORTRAN Generation
(/./ftp/cats/J/ApJ/831/64)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/831/64 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-18
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/ApJ/831/64   Mass-metallicity relation for giant planets   (Thorngren+, 2016)
*================================================================================
*The mass-metallicity relation for giant planets.
*    Thorngren D.P., Fortney J.J., Murray-Clay R.A., Lopez E.D.
*   <Astrophys. J., 831, 64-64 (2016)>
*   =2016ApJ...831...64T    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Planet data and results

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

      integer*4     Ref        (nr__) ! Sequence/Reference (see refs.dat file)
      character*12  Note       (nr__) ! Notes on System (1)
      character*12  Name       (nr__) ! Planet name
      real*4        Mass       (nr__) ! (Mjup) [0.06/10.1] Planet mass, Jupiter masses
      real*4        e_Mass     (nr__) ! (Mjup) [0.01/0.7] Lower uncertainty on Mass
      real*4        E_Mass_1   (nr__) ! (Mjup) Upper uncertainty on Mass
      real*4        Rad        (nr__) ! (Rjup) [0.3/1.1] Planet radius, Jupiter radii
      real*4        e_Rad      (nr__) ! (Rjup) [0/0.2] Lower uncertainty on Rad
      real*4        E_Rad_1    (nr__) ! (Rjup) Upper uncertainty on Rad
      real*4        ageLower   (nr__) ! (Gyr) [0.1/8] Lower bound on age, Gyr
      real*4        ageUpper   (nr__) ! (Gyr) [1/17] Upper bound on age, Gyr
      real*4        Flux       (nr__) ! (mW/m2) Flux, Planet time-averaged insolation
      real*4        v_Fe_H_    (nr__) ! ([Sun]) [-0.4/0.5] Metallicity
      real*4        e__Fe_H_   (nr__) ! ([Sun]) [0.03/0.3] Lower uncertainty on [Fe/H]
      real*4        E__Fe_H__1 (nr__) ! ([Sun]) Upper uncertainty on [Fe/H]
      real*4        Metal      (nr__) ! (Mgeo) [0/663] Metal Mass, Earth masses
      real*4        e_Metal    (nr__) ! (Mgeo) [0/110] Lower uncertainty on Metal
      real*4        E_Metal_1  (nr__) ! (Mgeo) [1/134] Upper uncertainty on Metal
      real*4        zpl        (nr__) ! [0/1] Planet bulk metal abundance
      real*4        e_zpl      (nr__) ! [0/0.2] Lower uncertainty on zpl
      real*4        E_zpl_1    (nr__) ! Upper uncertainty on zpl
      real*4        zpzs       (nr__) ! [0/133] Planet / Stellar bulk metal abundance
      real*4        e_zpzs     (nr__) ! [0/71] Lower uncertainty on zpzs
      real*4        E_zpzs_1   (nr__) ! [0.4/41] Upper uncertainty on zpzs
*Note (1): Comments on Planets:
*  adjusted     = Results adjusted to reflect the fact that a certain portion of
*                 their samples could not be modeled
*                 (see Section 4 for discussion).
*  circumbinary = indicates circumbinary planets.

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

C  Declarations for 'refs.dat'	! References

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

      integer*4     Ref_1      (nr__1) ! Reference code
      character*19  BibCode    (nr__1) ! Bibcode of the reference
      character*20  Auth       (nr__1) ! First author's name
      character*93  Comm       (nr__1) ! Comment

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

C  Loading file 'table1.dat'	! Planet data and results

C  Format for file interpretation

    1 format(
     +  I2,1X,A12,1X,A12,1X,F5.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,
     +  F4.2,1X,F3.1,1X,F4.1,1X,E8.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,F6.2,
     +  1X,F6.2,1X,F6.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F6.2,1X,F5.2,1X,
     +  F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,47
        read(1,'(A148)')ar__
        read(ar__,1)
     +  Ref(i__),Note(i__),Name(i__),Mass(i__),e_Mass(i__),
     +  E_Mass_1(i__),Rad(i__),e_Rad(i__),E_Rad_1(i__),ageLower(i__),
     +  ageUpper(i__),Flux(i__),v_Fe_H_(i__),e__Fe_H_(i__),
     +  E__Fe_H__1(i__),Metal(i__),e_Metal(i__),E_Metal_1(i__),
     +  zpl(i__),e_zpl(i__),E_zpl_1(i__),zpzs(i__),e_zpzs(i__),
     +  E_zpzs_1(i__)
c    ..............Just test output...........
        write(6,1)
     +  Ref(i__),Note(i__),Name(i__),Mass(i__),e_Mass(i__),
     +  E_Mass_1(i__),Rad(i__),e_Rad(i__),E_Rad_1(i__),ageLower(i__),
     +  ageUpper(i__),Flux(i__),v_Fe_H_(i__),e__Fe_H_(i__),
     +  E__Fe_H__1(i__),Metal(i__),e_Metal(i__),E_Metal_1(i__),
     +  zpl(i__),e_zpl(i__),E_zpl_1(i__),zpzs(i__),e_zpzs(i__),
     +  E_zpzs_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    2 format(I2,1X,A19,1X,A20,1X,A93)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,47
        read(1,'(A137)')ar__1
        read(ar__1,2)Ref_1(i__),BibCode(i__),Auth(i__),Comm(i__)
c    ..............Just test output...........
        write(6,2)Ref_1(i__),BibCode(i__),Auth(i__),Comm(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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