FORTRAN Generation
(/./ftp/cats/J/MNRAS/455/3413)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/455/3413 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.



++++Only one proper motion (pm) found for: table6.dat table7.dat
      program load_ReadMe
C=============================================================================
C  F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2026-Aug-12
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/455/3413 New white dwarf and subdwarf stars in SDSS DR12 (Kepler+, 2016)
*================================================================================
*New white dwarf and subdwarf stars in the Sloan Digital Sky Survey
*Data Release 12.
*    Kepler S.O., Pelisoli I., Koester D., Ourique G., Romero A.D., Reindl N.,
*    Kleinman S.J., Eisenstein D.J., Valois A.D.M., Amaral L.A.
*   <Mon. Not. R. Astron. Soc., 455, 3413-3423 (2016)>
*   =2016MNRAS.455.3413K    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table6.dat'	! New white dwarf stars

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

C  Position composed of: GLON GLAT
      character*15  PMF         ! SDSS Plate-MJD-Fiber
      character*19  SDSS        ! SDSS object name (HHMMSS.ss+DDMMSS.s)
      integer*4     S_N         ! SDSS g-band signal-to-noise ratio
      real*4        umag        ! (mag) SDSS u-band PSF magnitude
      real*4        e_umag      ! (mag) rms uncertainty on umag
      real*4        gmag        ! (mag) SDSS g-band PSF magnitude
      real*4        e_gmag      ! (mag) rms uncertainty on gmag
      real*4        rmag        ! (mag) SDSS r-band PSF magnitude
      real*4        e_rmag      ! (mag) rms uncertainty on rmag
      real*4        imag        ! (mag) SDSS i-band PSF magnitude
      real*4        e_imag      ! (mag) rms uncertainty on imag
      real*4        zmag        ! (mag) SDSS z-band PSF magnitude
      real*4        e_zmag      ! (mag) rms uncertainty on zmag
      real*4        E_B_V       ! (mag) Colour excess
      real*8        pm          ! (mas/yr) USNO proper motion
      real*4        GLON        ! (deg) Galactic longitude
      real*4        GLAT        ! (deg) Galactic latitude
      character*9   SpType      ! Human classification
*                                    (: for uncertain classification)
      integer*4     Teff        ! (K) ? Effective temperature
      integer*4     e_Teff      ! (K) ? rms uncertainty on Teff
      real*4        logg        ! ([cm/s2]) ? Surface gravity
      real*4        e_logg      ! ([cm/s2]) ? rms uncertainty on logg (1)
      integer*4     Teff_3D     ! (K) ? Teff for pure DAs and DBs
      integer*4     e_Teff_3D   ! (K) ? rms uncertainty on Teff(3D)
      real*4        logg_3D     ! ([cm/s2]) ? Surface gravity for pure DAs and DBs (2)
      real*4        e_logg_3D   ! ([cm/s2]) ? rms uncertainty on logg(3D)
      real*8        Mass        ! (Msun) ? Calculated mass, corrected to 3D convection
      real*8        e_Mass      ! (Msun) ? rms uncertainty on Mass
      character*160 Com         ! Comments (3)
*Note (1): Where e_logg=0/000, we have assumed logg=8.0, not fitted the
*  surface gravity.
*Note (2): The temperatures and surface gravities are corrected to the 3D
*  convection models of Tremblay et al. (2013A&A...559A.104T).
*Note (3): The Ca/He for DZs and C/He abundances for DQs, calculated assuming
*  logg=8.0, are indicated by -log(Ca/He) or -log(C/He).

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

C  Declarations for 'table7.dat'	! New classification of known white dwarf stars

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

C  Position composed of: GLON GLAT
      character*15  PMF_1       ! SDSS Plate-MJD-Fiber
      character*19  SDSS_1      ! SDSS object name (HHMMSS.ss+DDMMSS.s)
      integer*4     S_N_1       ! SDSS g-band signal-to-noise ratio
      real*4        umag_1      ! (mag) SDSS u-band PSF magnitude
      real*4        e_umag_1    ! (mag) rms uncertainty on umag
      real*4        gmag_1      ! (mag) SDSS g-band PSF magnitude
      real*4        e_gmag_1    ! (mag) rms uncertainty on gmag
      real*4        rmag_1      ! (mag) SDSS r-band PSF magnitude
      real*4        e_rmag_1    ! (mag) rms uncertainty on rmag
      real*4        imag_1      ! (mag) SDSS i-band PSF magnitude
      real*4        e_imag_1    ! (mag) rms uncertainty on imag
      real*4        zmag_1      ! (mag) SDSS z-band PSF magnitude
      real*4        e_zmag_1    ! (mag) rms uncertainty on zmag
      real*4        E_B_V_1     ! (mag) Colour excess
      real*8        pm_1        ! (mas/yr) USNO proper motion
      real*4        GLON_1      ! (deg) Galactic longitude
      real*4        GLAT_1      ! (deg) Galactic latitude
      character*9   SpType_1    ! Human classification
*                                    (: for uncertain classification)
      integer*4     Teff_1      ! (K) ? Effective temperature
      integer*4     e_Teff_1    ! (K) ? rms uncertainty on Teff
      real*4        logg_1      ! ([cm/s2]) ? Surface gravity
      real*4        e_logg_1    ! ([cm/s2]) ? rms uncertainty on logg (1)
      integer*4     Teff_3D_1   ! (K) ? Teff for pure DAs and DBs
      integer*4     e_Teff_3D_1 ! (K) ? rms uncertainty on Teff(3D)
      real*4        logg_3D_1   ! ([cm/s2]) ? Surface gravity for pure DAs and DBs (2)
      real*4        e_logg_3D_1 ! ([cm/s2]) ? rms uncertainty on logg(3D)
      real*8        Mass_1      ! (Msun) ? Calculated mass, corrected to 3D convection
      real*8        e_Mass_1    ! (Msun) ? rms uncertainty on Mass
      character*160 Com_1       ! Comments (3)
*Note (1): Where e_logg=0/000, we have assumed logg=8.0, not fitted the
*  surface gravity.
*Note (2): The temperatures and surface gravities are corrected to the 3D
*  convection models of Tremblay et al. (2013A&A...559A.104T).
*Note (3): The Ca/He for DZs and C/He abundances for DQs, calculated assuming
*  logg=8.0, are indicated by -log(Ca/He) or -log(C/He).

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

C  Loading file 'table6.dat'	! New white dwarf stars

C  Format for file interpretation

    1 format(
     +  A15,1X,A19,1X,I2,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,
     +  F6.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F7.3,1X,F5.1,
     +  1X,F5.1,1X,A9,I6,1X,I5,1X,F5.3,1X,F5.3,1X,I5,1X,I5,1X,F6.3,1X,
     +  F5.3,1X,F7.5,1X,F7.5,1X,A160)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,6647
        read(1,'(A366)')ar__
        read(ar__,1)
     +  PMF,SDSS,S_N,umag,e_umag,gmag,e_gmag,rmag,e_rmag,imag,e_imag,
     +  zmag,e_zmag,E_B_V,pm,GLON,GLAT,SpType,Teff,e_Teff,logg,e_logg,
     +  Teff_3D,e_Teff_3D,logg_3D,e_logg_3D,Mass,e_Mass,Com
        if(ar__(141:146) .EQ. '') Teff = iNULL__
        if(ar__(148:152) .EQ. '') e_Teff = iNULL__
        if(ar__(154:158) .EQ. '') logg = rNULL__
        if(ar__(160:164) .EQ. '') e_logg = rNULL__
        if(ar__(166:170) .EQ. '') Teff_3D = iNULL__
        if(ar__(172:176) .EQ. '') e_Teff_3D = iNULL__
        if(ar__(178:183) .EQ. '') logg_3D = rNULL__
        if(ar__(185:189) .EQ. '') e_logg_3D = rNULL__
        if(ar__(191:197) .EQ. '') Mass = rNULL__
        if(ar__(199:205) .EQ. '') e_Mass = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  PMF,SDSS,S_N,umag,e_umag,gmag,e_gmag,rmag,e_rmag,imag,e_imag,
     +  zmag,e_zmag,E_B_V,pm,GLON,GLAT,SpType,Teff,e_Teff,logg,e_logg,
     +  Teff_3D,e_Teff_3D,logg_3D,e_logg_3D,Mass,e_Mass,Com
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! New classification of known white dwarf stars

C  Format for file interpretation

    2 format(
     +  A15,1X,A19,1X,I2,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,
     +  F6.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F7.3,1X,F5.1,
     +  1X,F5.1,1X,A9,I6,1X,I5,1X,F5.3,1X,F5.3,1X,I5,1X,I5,1X,F6.3,1X,
     +  F5.3,1X,F7.5,1X,F7.5,1X,A160)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,409
        read(1,'(A366)')ar__1
        read(ar__1,2)
     +  PMF_1,SDSS_1,S_N_1,umag_1,e_umag_1,gmag_1,e_gmag_1,rmag_1,
     +  e_rmag_1,imag_1,e_imag_1,zmag_1,e_zmag_1,E_B_V_1,pm_1,GLON_1,
     +  GLAT_1,SpType_1,Teff_1,e_Teff_1,logg_1,e_logg_1,Teff_3D_1,
     +  e_Teff_3D_1,logg_3D_1,e_logg_3D_1,Mass_1,e_Mass_1,Com_1
        if(ar__1(141:146) .EQ. '') Teff_1 = iNULL__
        if(ar__1(148:152) .EQ. '') e_Teff_1 = iNULL__
        if(ar__1(154:158) .EQ. '') logg_1 = rNULL__
        if(ar__1(160:164) .EQ. '') e_logg_1 = rNULL__
        if(ar__1(166:170) .EQ. '') Teff_3D_1 = iNULL__
        if(ar__1(172:176) .EQ. '') e_Teff_3D_1 = iNULL__
        if(ar__1(178:183) .EQ. '') logg_3D_1 = rNULL__
        if(ar__1(185:189) .EQ. '') e_logg_3D_1 = rNULL__
        if(ar__1(191:197) .EQ. '') Mass_1 = rNULL__
        if(ar__1(199:205) .EQ. '') e_Mass_1 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  PMF_1,SDSS_1,S_N_1,umag_1,e_umag_1,gmag_1,e_gmag_1,rmag_1,
     +  e_rmag_1,imag_1,e_imag_1,zmag_1,e_zmag_1,E_B_V_1,pm_1,GLON_1,
     +  GLAT_1,SpType_1,Teff_1,e_Teff_1,logg_1,e_logg_1,Teff_3D_1,
     +  e_Teff_3D_1,logg_3D_1,e_logg_3D_1,Mass_1,e_Mass_1,Com_1
c    .......End.of.Just test output...........
      end do
      close(1)

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