Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/691/A53 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-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 (nr__) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*29 Name (nr__) ! Identifier name for the planet-host star
character*8 HD (nr__) ! ? HD Number
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 Vmag (nr__) ! (mag) ? Visual magnitude
real*4 e_Vmag (nr__) ! (mag) ? Error on visual magnitude
character*8 PlxFlag (nr__) ! Flag indicating source of parallax
* (GAIADR3, GAIAeDR3, Simbad or noPlx)
real*8 Teff (nr__) ! (K) ? Effective temperature
real*4 e_Teff (nr__) ! (K) ? Error on effective temperature
real*4 logg (nr__) ! ([cm/s2]) ? Spectroscopic surface gravity
real*4 e_logg (nr__) ! ([cm/s2]) ? Error on Spectroscopic surface gravity
real*4 Vt (nr__) ! (km/s) ? Microturbulence
real*4 e_Vt (nr__) ! (km/s) ? Error on Microturbulence
real*4 v_Fe_H_ (nr__) ! ([-]) ? Iron abundance (proxy for metallicity)
real*4 e__Fe_H_ (nr__) ! ([-]) ? Error on iron abundance
character*42 Ref (nr__) ! Source of the spectroscopic parameters
character*112 RefLink (nr__) ! URL address to reference
integer*4 SWFlag (nr__) ! [0/1] Homogeneous flag
character*10 Update (nr__) ! Date of last update on entry
character*35 Comment (nr__) ! Relevant comments for entry
character*7 Database (nr__) ! Planet host from exo.eu and/or NASA archive
integer*8 GaiaDR2 (nr__) ! ? GAIA DR2 source id
integer*8 GaiaDR3 (nr__) ! ? GAIA DR3 source id
real*8 Plx (nr__) ! (mas) ?=- Parallax
real*8 e_Plx (nr__) ! (mas) ?=- Errors on parallax
real*8 Gmag (nr__) ! (mag) ?=- GAIA G magnitude
real*8 e_Gmag (nr__) ! (mag) ?=- Error on GAIA G magnitude
real*8 RPmag (nr__) ! (mag) ?=- GAIA red pass magnitude
real*8 e_RPmag (nr__) ! (mag) ?=- Error on red pass magnitude
real*8 BPmag (nr__) ! (mag) ?=- GAIA blue pass magnitude
real*8 e_BPmag (nr__) ! (mag) ?=- Error on blue pass magnitude
real*8 FG (nr__) ! (e-/s) ?=- Mean flux of GAIA G band
real*8 e_FG (nr__) ! (e-/s) ?=- Error on mean flux of GAIA G band
real*8 Gflstd (nr__) ! ?=- GAIA photometry activity index
real*8 logg_g (nr__) ! ([cm/s2]) ?=- Derived GAIA DR3 surface gravity
character*1 n_logg_g (nr__) ! [I] I for infinity
real*8 e_logg_g (nr__) ! ([cm/s2]) ?=- Error on derived GAIA eDR3
* surface gravity
real*8 Mass_t (nr__) ! (Msun) ?=- Derived stellar mass
character*1 n_Mass_t (nr__) ! [I] I for infinity
real*8 e_Mass_t (nr__) ! (Msun) ?=- Error on derived stellar mass
real*8 Radius_t (nr__) ! (Rsun) ?=- Derived stellar radius
real*8 e_Radius_t (nr__) ! (Rsun) ?=- Error on derived stellar radius
character*41 specbase (nr__) ! Base name of spectra filename
real*8 Dist (nr__) ! (pc) ?=- Distance - inverted from Parallax
real*8 RAEdeg (nr__) ! (deg) ? Right Ascension (exo.eu)
real*8 DEEdeg (nr__) ! (deg) ? Declination (exo.eu)
real*8 RANdeg (nr__) ! (deg) ? Right Ascension (NASA archive)
real*8 DENdeg (nr__) ! (deg) ? Declination (NASA archive)
real*8 Dist_b (nr__) ! (pc) ?=- Distance from Bailer-Jones et al.
* (2021, Cat. I/352)
real*4 e_Dist_b (nr__) ! (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(i__),HD(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),Vmag(i__),e_Vmag(i__),PlxFlag(i__),
+ Teff(i__),e_Teff(i__),logg(i__),e_logg(i__),Vt(i__),e_Vt(i__),
+ v_Fe_H_(i__),e__Fe_H_(i__),Ref(i__),RefLink(i__),SWFlag(i__),
+ Update(i__),Comment(i__),Database(i__),GaiaDR2(i__),
+ GaiaDR3(i__),Plx(i__),e_Plx(i__),Gmag(i__),e_Gmag(i__),
+ RPmag(i__),e_RPmag(i__),BPmag(i__),e_BPmag(i__),FG(i__),
+ e_FG(i__),Gflstd(i__),logg_g(i__),n_logg_g(i__),e_logg_g(i__),
+ Mass_t(i__),n_Mass_t(i__),e_Mass_t(i__),Radius_t(i__),
+ e_Radius_t(i__),specbase(i__),Dist(i__),RAEdeg(i__),
+ DEEdeg(i__),RANdeg(i__),DENdeg(i__),Dist_b(i__),e_Dist_b(i__)
if(ar__(65:70) .EQ. '') Vmag(i__) = rNULL__
if(ar__(72:76) .EQ. '') e_Vmag(i__) = rNULL__
if(ar__(87:93) .EQ. '') Teff(i__) = rNULL__
if(ar__(95:100) .EQ. '') e_Teff(i__) = rNULL__
if(ar__(102:106) .EQ. '') logg(i__) = rNULL__
if(ar__(108:112) .EQ. '') e_logg(i__) = rNULL__
if(ar__(114:118) .EQ. '') Vt(i__) = rNULL__
if(ar__(120:124) .EQ. '') e_Vt(i__) = rNULL__
if(ar__(126:131) .EQ. '') v_Fe_H_(i__) = rNULL__
if(ar__(133:137) .EQ. '') e__Fe_H_(i__) = rNULL__
if(ar__(352:370) .EQ. '') GaiaDR2(i__) = iNULL__
if(ar__(372:390) .EQ. '') GaiaDR3(i__) = iNULL__
if (idig(ar__(392:411)).EQ.0) Plx(i__) = rNULL__
if (idig(ar__(413:431)).EQ.0) e_Plx(i__) = rNULL__
if (idig(ar__(433:451)).EQ.0) Gmag(i__) = rNULL__
if (idig(ar__(453:461)).EQ.0) e_Gmag(i__) = rNULL__
if (idig(ar__(463:481)).EQ.0) RPmag(i__) = rNULL__
if (idig(ar__(483:491)).EQ.0) e_RPmag(i__) = rNULL__
if (idig(ar__(493:511)).EQ.0) BPmag(i__) = rNULL__
if (idig(ar__(513:531)).EQ.0) e_BPmag(i__) = rNULL__
if (idig(ar__(533:548)).EQ.0) FG(i__) = rNULL__
if (idig(ar__(550:573)).EQ.0) e_FG(i__) = rNULL__
if (idig(ar__(575:593)).EQ.0) Gflstd(i__) = rNULL__
if (idig(ar__(595:613)).EQ.0) logg_g(i__) = rNULL__
if (idig(ar__(615:633)).EQ.0) e_logg_g(i__) = rNULL__
if (idig(ar__(635:653)).EQ.0) Mass_t(i__) = rNULL__
if (idig(ar__(655:675)).EQ.0) e_Mass_t(i__) = rNULL__
if (idig(ar__(677:695)).EQ.0) Radius_t(i__) = rNULL__
if (idig(ar__(697:715)).EQ.0) e_Radius_t(i__) = rNULL__
if (idig(ar__(759:782)).EQ.0) Dist(i__) = rNULL__
if(ar__(784:803) .EQ. '') RAEdeg(i__) = rNULL__
if(ar__(805:824) .EQ. '') DEEdeg(i__) = rNULL__
if(ar__(826:845) .EQ. '') RANdeg(i__) = rNULL__
if(ar__(847:866) .EQ. '') DENdeg(i__) = rNULL__
if (idig(ar__(868:888)).EQ.0) Dist_b(i__) = rNULL__
if (idig(ar__(890:910)).EQ.0) e_Dist_b(i__) = rNULL__
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)
+ Name(i__),HD(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),Vmag(i__),e_Vmag(i__),PlxFlag(i__),
+ Teff(i__),e_Teff(i__),logg(i__),e_logg(i__),Vt(i__),e_Vt(i__),
+ v_Fe_H_(i__),e__Fe_H_(i__),Ref(i__),RefLink(i__),SWFlag(i__),
+ Update(i__),Comment(i__),Database(i__),GaiaDR2(i__),
+ GaiaDR3(i__),Plx(i__),e_Plx(i__),Gmag(i__),e_Gmag(i__),
+ RPmag(i__),e_RPmag(i__),BPmag(i__),e_BPmag(i__),FG(i__),
+ e_FG(i__),Gflstd(i__),logg_g(i__),n_logg_g(i__),e_logg_g(i__),
+ Mass_t(i__),n_Mass_t(i__),e_Mass_t(i__),Radius_t(i__),
+ e_Radius_t(i__),specbase(i__),Dist(i__),RAEdeg(i__),
+ DEEdeg(i__),RANdeg(i__),DENdeg(i__),Dist_b(i__),e_Dist_b(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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