Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/691/A53 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.
program load_ReadMe
C=============================================================================
C F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2026-Apr-23
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/A+A/691/A53 SWEET-Cat. Planetary mass-radius relation (Sousa+, 2024)
*================================================================================
*SWEET-Cat: A view on the planetary mass-radius relation.
* Sousa S.G., Adibekyan V., Delgado-Mena E., Santos N.C., Rojas-Ayala B.,
* Barros S.C., Demangeon O.D.S., Hoyer S., Israelian G., Mortier A.,
* Soares B.M.T., Tsantaki M.
* <Astron. Astrophys. 691, A53 (2024)>
* =2024A&A...691A..53S (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'catalog.dat' ! Copy of SWEET-Cat table, Version of August 2024
integer*4 nr__
parameter (nr__=4106) ! Number of records
character*910 ar__ ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension J2000
real*8 DEdeg ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*29 Name ! Identifier name for the planet-host star
character*8 HD ! ? HD Number
integer*4 RAh ! (h) Right Ascension (J2000)
integer*4 RAm ! (min) Right Ascension (J2000)
real*4 RAs ! (s) Right Ascension (J2000)
character*1 DE_ ! Declination sign (J2000)
integer*4 DEd ! (deg) Declination (J2000)
integer*4 DEm ! (arcmin) Declination (J2000)
real*4 DEs ! (arcsec) Declination (J2000)
real*4 Vmag ! (mag) ? Visual magnitude
real*4 e_Vmag ! (mag) ? Error on visual magnitude
character*8 PlxFlag ! Flag indicating source of parallax
* (GAIADR3, GAIAeDR3, Simbad or noPlx)
real*8 Teff ! (K) ? Effective temperature
real*4 e_Teff ! (K) ? Error on effective temperature
real*4 logg ! ([cm/s2]) ? Spectroscopic surface gravity
real*4 e_logg ! ([cm/s2]) ? Error on Spectroscopic surface gravity
real*4 Vt ! (km/s) ? Microturbulence
real*4 e_Vt ! (km/s) ? Error on Microturbulence
real*4 v_Fe_H_ ! ([-]) ? Iron abundance (proxy for metallicity)
real*4 e__Fe_H_ ! ([-]) ? Error on iron abundance
character*42 Ref ! Source of the spectroscopic parameters
character*112 RefLink ! URL address to reference
integer*4 SWFlag ! [0/1] Homogeneous flag
character*10 Update ! Date of last update on entry
character*35 Comment ! Relevant comments for entry
character*7 Database ! Planet host from exo.eu and/or NASA archive
integer*8 GaiaDR2 ! ? GAIA DR2 source id
integer*8 GaiaDR3 ! ? GAIA DR3 source id
real*8 Plx ! (mas) ?=- Parallax
real*8 e_Plx ! (mas) ?=- Errors on parallax
real*8 Gmag ! (mag) ?=- GAIA G magnitude
real*8 e_Gmag ! (mag) ?=- Error on GAIA G magnitude
real*8 RPmag ! (mag) ?=- GAIA red pass magnitude
real*8 e_RPmag ! (mag) ?=- Error on red pass magnitude
real*8 BPmag ! (mag) ?=- GAIA blue pass magnitude
real*8 e_BPmag ! (mag) ?=- Error on blue pass magnitude
real*8 FG ! (e-/s) ?=- Mean flux of GAIA G band
real*8 e_FG ! (e-/s) ?=- Error on mean flux of GAIA G band
real*8 Gflstd ! ?=- GAIA photometry activity index
real*8 logg_g ! ([cm/s2]) ?=- Derived GAIA DR3 surface gravity
character*1 n_logg_g ! [I] I for infinity
real*8 e_logg_g ! ([cm/s2]) ?=- Error on derived GAIA eDR3
* surface gravity
real*8 Mass_t ! (Msun) ?=- Derived stellar mass
character*1 n_Mass_t ! [I] I for infinity
real*8 e_Mass_t ! (Msun) ?=- Error on derived stellar mass
real*8 Radius_t ! (Rsun) ?=- Derived stellar radius
real*8 e_Radius_t ! (Rsun) ?=- Error on derived stellar radius
character*41 specbase ! Base name of spectra filename
real*8 Dist ! (pc) ?=- Distance - inverted from Parallax
real*8 RAEdeg ! (deg) ? Right Ascension (exo.eu)
real*8 DEEdeg ! (deg) ? Declination (exo.eu)
real*8 RANdeg ! (deg) ? Right Ascension (NASA archive)
real*8 DENdeg ! (deg) ? Declination (NASA archive)
real*8 Dist_b ! (pc) ?=- Distance from Bailer-Jones et al.
* (2021, Cat. I/352)
real*4 e_Dist_b ! (pc) ?=- Error on distance from Bailer-Jones et
* al. (2021, Cat. I/352)
C=============================================================================
C Loading file 'catalog.dat' ! Copy of SWEET-Cat table, Version of August 2024
C Format for file interpretation
1 format(
+ A29,1X,A8,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,F6.3,
+ 1X,F5.2,1X,A8,1X,F7.1,1X,F6.1,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,
+ 1X,F6.3,1X,F5.3,1X,A42,1X,A112,1X,I1,1X,A10,1X,A35,1X,A7,1X,
+ I19,1X,I19,1X,F20.16,1X,F19.16,1X,F19.16,1X,F9.6,1X,F19.16,1X,
+ F9.6,1X,F19.16,1X,F19.16,1X,F16.5,1X,F24.16,1X,F19.16,1X,
+ F19.16,A1,F19.16,1X,F19.16,A1,F21.16,1X,F19.16,1X,F19.16,1X,
+ A41,1X,F24.16,1X,F20.16,1X,F20.16,1X,F20.16,1X,F20.16,1X,
+ F21.15,1X,E21.16)
C Effective file loading
open(unit=1,status='old',file=
+'catalog.dat')
write(6,*) '....Loading file: catalog.dat'
do i__=1,4106
read(1,'(A910)')ar__
read(ar__,1)
+ Name,HD,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,e_Vmag,PlxFlag,Teff,
+ e_Teff,logg,e_logg,Vt,e_Vt,v_Fe_H_,e__Fe_H_,Ref,RefLink,
+ SWFlag,Update,Comment,Database,GaiaDR2,GaiaDR3,Plx,e_Plx,Gmag,
+ e_Gmag,RPmag,e_RPmag,BPmag,e_BPmag,FG,e_FG,Gflstd,logg_g,
+ n_logg_g,e_logg_g,Mass_t,n_Mass_t,e_Mass_t,Radius_t,
+ e_Radius_t,specbase,Dist,RAEdeg,DEEdeg,RANdeg,DENdeg,Dist_b,
+ e_Dist_b
if(ar__(65:70) .EQ. '') Vmag = rNULL__
if(ar__(72:76) .EQ. '') e_Vmag = rNULL__
if(ar__(87:93) .EQ. '') Teff = rNULL__
if(ar__(95:100) .EQ. '') e_Teff = rNULL__
if(ar__(102:106) .EQ. '') logg = rNULL__
if(ar__(108:112) .EQ. '') e_logg = rNULL__
if(ar__(114:118) .EQ. '') Vt = rNULL__
if(ar__(120:124) .EQ. '') e_Vt = rNULL__
if(ar__(126:131) .EQ. '') v_Fe_H_ = rNULL__
if(ar__(133:137) .EQ. '') e__Fe_H_ = rNULL__
if(ar__(352:370) .EQ. '') GaiaDR2 = iNULL__
if(ar__(372:390) .EQ. '') GaiaDR3 = iNULL__
if (idig(ar__(392:411)).EQ.0) Plx = rNULL__
if (idig(ar__(413:431)).EQ.0) e_Plx = rNULL__
if (idig(ar__(433:451)).EQ.0) Gmag = rNULL__
if (idig(ar__(453:461)).EQ.0) e_Gmag = rNULL__
if (idig(ar__(463:481)).EQ.0) RPmag = rNULL__
if (idig(ar__(483:491)).EQ.0) e_RPmag = rNULL__
if (idig(ar__(493:511)).EQ.0) BPmag = rNULL__
if (idig(ar__(513:531)).EQ.0) e_BPmag = rNULL__
if (idig(ar__(533:548)).EQ.0) FG = rNULL__
if (idig(ar__(550:573)).EQ.0) e_FG = rNULL__
if (idig(ar__(575:593)).EQ.0) Gflstd = rNULL__
if (idig(ar__(595:613)).EQ.0) logg_g = rNULL__
if (idig(ar__(615:633)).EQ.0) e_logg_g = rNULL__
if (idig(ar__(635:653)).EQ.0) Mass_t = rNULL__
if (idig(ar__(655:675)).EQ.0) e_Mass_t = rNULL__
if (idig(ar__(677:695)).EQ.0) Radius_t = rNULL__
if (idig(ar__(697:715)).EQ.0) e_Radius_t = rNULL__
if (idig(ar__(759:782)).EQ.0) Dist = rNULL__
if(ar__(784:803) .EQ. '') RAEdeg = rNULL__
if(ar__(805:824) .EQ. '') DEEdeg = rNULL__
if(ar__(826:845) .EQ. '') RANdeg = rNULL__
if(ar__(847:866) .EQ. '') DENdeg = rNULL__
if (idig(ar__(868:888)).EQ.0) Dist_b = rNULL__
if (idig(ar__(890:910)).EQ.0) e_Dist_b = rNULL__
RAdeg = rNULL__
DEdeg = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh .GT. -180) RAdeg=RAh*15.
if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
if(DEd .GE. 0) DEdeg=DEd
if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c ..............Just test output...........
write(6,1)
+ Name,HD,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,e_Vmag,PlxFlag,Teff,
+ e_Teff,logg,e_logg,Vt,e_Vt,v_Fe_H_,e__Fe_H_,Ref,RefLink,
+ SWFlag,Update,Comment,Database,GaiaDR2,GaiaDR3,Plx,e_Plx,Gmag,
+ e_Gmag,RPmag,e_RPmag,BPmag,e_BPmag,FG,e_FG,Gflstd,logg_g,
+ n_logg_g,e_logg_g,Mass_t,n_Mass_t,e_Mass_t,Radius_t,
+ e_Radius_t,specbase,Dist,RAEdeg,DEEdeg,RANdeg,DENdeg,Dist_b,
+ e_Dist_b
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
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