Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJS/90/83 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-Jun-08
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/ApJS/90/83 Binaries in NGC 3201 (Cote+, 1994)
*================================================================================
*A search for binaries in the globular cluster NGC 3201
* Cote P., Welch D.L., Fischer P., Da Costa G.S., Tamblyn P., Seitzer P.
* Irwin M.J.
* <Astrophys. J. Suppl. Ser. 90, 83 (1994)>
* =1994ApJS...90...83C (SIMBAD/NED Reference)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2' ! Radial velocities for photometric variables
integer*4 nr__
parameter (nr__=40) ! Number of records
character*76 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)
integer*4 VarID ! [1/19]+= Star number in this table
integer*4 RAh ! (h) Right Ascension J2000 (hours)
integer*4 RAm ! (min) Right Ascension J2000 (minutes)
real*4 RAs ! (s) Right Ascension J2000 (seconds)
character*1 DE_ ! Declination J2000 (sign)
integer*4 DEd ! (deg) Declination J2000 (degrees)
integer*4 DEm ! (arcmin) Declination J2000 (minutes)
real*4 DEs ! (arcsec) Declination J2000 (seconds)
real*8 HJD ! (d) Heliocentric Julian Date of observation
real*4 RVel ! (km/s) Radial velocity
real*4 e_RVel ! (km/s) Mean error on RVel
real*4 Period ! (d) *? Period of variability
character*2 r_RVel ! *Source of velocity
character*4 ID_Saw ! *Designation in Sawyer-Hog (1973)
*Note on Period: it is taken from
* Fourcade & Laborde (1966, Atlas y Catalogo de Estrellas Variables
* en Cumulos Globulares al sur de 29deg,
* La Plata, Asociacion Argentina de Astronomia, or
* Sawyer-Hogg (1973, Publ. Dominion Astrophys. Obs. Victoria,
* =1973PDDO....3....6S)
*Note on r_RVel: the code refers to telescope and instrument,
* see column 4 of table 1 in the printed paper
*Note on ID(Saw): Variable designation in Sawyer-Hogg's 1973 paper
* (1973PDDO....3....6S)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3' ! Radial velocities and photometry
integer*4 nr__1
parameter (nr__1=930) ! Number of records
character*119 ar__1 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_1 ! (deg) Right Ascension J2000
real*8 DEdeg_1 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 Star ! [1/420]+= Star identification number
integer*4 RAh_1 ! (h) Right ascension (J2000)
integer*4 RAm_1 ! (min) Right ascension (J2000)
real*4 RAs_1 ! (s) Right ascension (J2000)
character*1 DE__1 ! Declination sign
integer*4 DEd_1 ! (deg) Declination (J2000)
integer*4 DEm_1 ! (arcmin) Declination (J2000)
real*4 DEs_1 ! (arcsec) Declination (J2000)
real*4 Dist ! (arcmin) Distance from cluster center
real*8 HJD_1 ! (d) HJD of radial velocity observation
real*4 RV ! (km/s) Heliocentric radial velocity
real*4 e_RV ! (km/s) RV uncertainty
real*4 RVmean ! (km/s) Weighted mean heliocentric radial velocity
real*4 e_RVmean ! (km/s) RVmean uncertainty
real*4 Vmag ! (mag) Apparent V magnitude
real*4 B_V ! (mag) Apparent B-V color
integer*4 o_RV ! Number of radial velocity measurements
real*4 v2_RV ! Chi-square for radial velocities
real*4 Chi2RV ! ? Reduced chi-square for radial velocities
real*4 Prob ! [0/1]? Probability of obtaining a chi-square
* at least this large purely as a
* consequence of measurement error
character*3 Src ! Source of photometry, 'APM' or 'CCD'
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4' ! Radial velocities for NGC 3201 field stars
integer*4 nr__2
parameter (nr__2=889) ! Number of records
character*87 ar__2 ! Full-size record
C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_2 ! (deg) Right Ascension J2000.0
real*8 DEdeg_2 ! (deg) Declination J2000.0
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 ID ! [1/879]+= Identification number
character*1 n_ID ! '*' if identified as member in another run
integer*4 RAh_2 ! (h) Right ascension (J2000.0)
integer*4 RAm_2 ! (min) Right ascension (J2000.0)
real*4 RAs_2 ! (s) Right ascension (J2000.0)
character*1 DE__2 ! Declination sign
integer*4 DEd_2 ! (deg) Declination (J2000.0)
integer*4 DEm_2 ! (arcmin) Declination (J2000.0)
real*4 DEs_2 ! (arcsec) Declination (J2000.0)
real*8 Dist_1 ! (arcmin) Distance from cluster center
real*8 HJD_2 ! (d) Heliocentric Julian date of observation
real*4 RV_1 ! (km/s) Heliocentric Radial Velocity
real*4 e_RV_1 ! (km/s) rms uncertainty on RV
real*4 Vmag_1 ! (mag) []? V Magnitude
real*4 B_V_1 ! (mag) []? B-V Colour
character*3 Phot ! Source of Photometry (APM or CCD)
character*2 ObsRun ! Observing Run (1)
*Note (1): LC = Las Campanas; A1/A2 = CTIO + ARGUS
C=============================================================================
C Loading file 'table2' ! Radial velocities for photometric variables
C Format for file interpretation
1 format(
+ I2,2X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,2X,F12.4,2X,
+ F6.2,1X,F5.2,3X,F6.4,2X,A2,4X,A4)
C Effective file loading
open(unit=1,status='old',file=
+'table2')
write(6,*) '....Loading file: table2'
do i__=1,40
read(1,'(A76)')ar__
read(ar__,1)
+ VarID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,HJD,RVel,e_RVel,Period,
+ r_RVel,ID_Saw
if(ar__(59:64) .EQ. '') Period = 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)
+ VarID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,HJD,RVel,e_RVel,Period,
+ r_RVel,ID_Saw
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3' ! Radial velocities and photometry
C Format for file interpretation
2 format(
+ I3,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,1X,
+ F12.4,2X,F6.2,2X,F4.2,2X,F6.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,I2,
+ 1X,F6.2,1X,F6.2,2X,F6.4,2X,A3)
C Effective file loading
open(unit=1,status='old',file=
+'table3')
write(6,*) '....Loading file: table3'
do i__=1,930
read(1,'(A119)')ar__1
read(ar__1,2)
+ Star,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Dist,HJD_1,RV,
+ e_RV,RVmean,e_RVmean,Vmag,B_V,o_RV,v2_RV,Chi2RV,Prob,Src
if(ar__1(100:105) .EQ. '') Chi2RV = rNULL__
if(ar__1(108:113) .EQ. '') Prob = rNULL__
RAdeg_1 = rNULL__
DEdeg_1 = rNULL__
c Derive coordinates RAdeg_1 and DEdeg_1 from input data
c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
if(DEd_1 .GE. 0) DEdeg_1=DEd_1
if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c ..............Just test output...........
write(6,2)
+ Star,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Dist,HJD_1,RV,
+ e_RV,RVmean,e_RVmean,Vmag,B_V,o_RV,v2_RV,Chi2RV,Prob,Src
write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4' ! Radial velocities for NGC 3201 field stars
C Format for file interpretation
3 format(
+ I3,A1,1X,I2,1X,I2,1X,F5.2,2X,A1,I2,1X,I2,1X,F4.1,F7.2,2X,
+ F12.4,2X,F6.2,3X,F4.2,2X,F5.2,2X,F4.2,2X,A3,2X,A2)
C Effective file loading
open(unit=1,status='old',file=
+'table4')
write(6,*) '....Loading file: table4'
do i__=1,889
read(1,'(A87)')ar__2
read(ar__2,3)
+ ID,n_ID,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,Dist_1,
+ HJD_2,RV_1,e_RV_1,Vmag_1,B_V_1,Phot,ObsRun
if(ar__2(68:72) .EQ. '') Vmag_1 = rNULL__
if(ar__2(75:78) .EQ. '') B_V_1 = rNULL__
RAdeg_2 = rNULL__
DEdeg_2 = 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_2 .GT. -180) RAdeg_2=RAh_2*15.
if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4.
if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240.
if(DEd_2 .GE. 0) DEdeg_2=DEd_2
if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60.
if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600.
if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2
c ..............Just test output...........
write(6,3)
+ ID,n_ID,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,Dist_1,
+ HJD_2,RV_1,e_RV_1,Vmag_1,B_V_1,Phot,ObsRun
write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end