Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/590/A116 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/590/A116 Nainital-Cape Survey. IV. (Joshi+, 2016)
*================================================================================
*The Nainital-Cape Survey.
*IV. A Search for pulsational variability in 108 chemically peculiar stars.
* Joshi S., Martinez P., Chowdhury S., Chakradhari N.K., Joshi Y.C.,
* van Heerden P., Medupe T., Kumar Y. B., Kuhn R.B.
* <Astron. Astrophys. 590, A116 (2016)>
* =2016A&A...590A.116J
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! The known roAp stars and their physical parameters
integer*4 nr__
parameter (nr__=61) ! Number of records
character*109 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 Seq ! Serial Number of a star in the table
integer*4 HD ! ? HD no. of the star
character*12 OName ! Other (popular) name of the star
integer*4 RAh ! (h) Right ascension (J2000)
integer*4 RAm ! (min) Right ascension (J2000)
integer*4 RAs ! (s) Right ascension (J2000)
character*1 DE_ ! Declination sign (J2000)
integer*4 DEd ! (deg) Declination (J2000)
integer*4 DEm ! (arcmin) Declination (J2000)
integer*4 DEs ! (arcsec) Declination (J2000)
character*13 SpType ! MK spectral type
real*4 b_y ! (mag) ?=- b-y colour index
real*4 m1 ! (mag) ?=- m1 colour index
real*4 c1 ! (mag) ?=- c1 colour index
real*4 Dm1 ! (mag) ?=- Delta m1 spectral index
real*4 Dc1 ! (mag) ?=- Delta c1 spectral index
real*4 beta ! (mag) ?=- H{beta} index
integer*4 Teff ! (K) Effective temperature of the star
character*8 Ref ! Reference detailed in refs.dat file
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Additional parameters for the known roAp stars
integer*4 nr__1
parameter (nr__1=61) ! Number of records
character*98 ar__1 ! Full-size record
integer*4 Seq_1 ! Serial Number of a star in the table
character*12 Name ! Name of the star
real*4 Vmag ! (mag) Visual magnitude of the star
real*4 plx ! (mas) ?=- Parallax of the star
real*4 Dist ! (pc) ?=- Distance of the star
real*4 VMAG_1 ! (mag) ?=- Absolute magnitude of the star
real*4 logLstar ! ([Lsun]) ?=- Luminosity of the star relative to the Sun
real*4 Ppul ! (min) Pulsation period of the star
integer*4 Deltamu ! (muHz) ?=- Frequency separation in micro-hertz units
real*4 Amax ! (mmag) ?=- Maximum photometric amplitude variation
real*4 RVmax ! (km/s) ?=- Maximum radial velocity variation
character*1 l_Prot ! Limit flag on Prot
real*4 Prot ! (d) ?=- Rotation Period of the star
real*4 logg ! ([cm/s2]) ?=- Surface gravity of the star
real*4 Mstar ! (Msun) ?=- Mass of the star relative to Sun
real*4 Rstar ! (Rsun) ?=- Radius of the star relative to Sun
real*4 B ! (kgauss) ?=- Mean longitudinal magnetic field of
* the star
real*4 vsini ! (km/s) ?=- Projected rotational velocity of the star
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Stars classified as null results during the
Nainital-Cape survey (108 stars)
integer*4 nr__2
parameter (nr__2=108) ! Number of records
character*251 ar__2 ! 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 Seq_2 ! Serial Number of a star in the table
integer*4 HD_1 ! HD no. of the star
integer*4 RAh_1 ! (h) Right ascension (J2000)
integer*4 RAm_1 ! (min) Right ascension (J2000)
integer*4 RAs_1 ! (s) Right ascension (J2000)
character*1 DE__1 ! Declination sign (J2000)
integer*4 DEd_1 ! (deg) Declination (J2000)
integer*4 DEm_1 ! (arcmin) Declination (J2000)
integer*4 DEs_1 ! (arcsec) Declination (J2000)
real*4 Vmag_2 ! (mag) Visual magnitude of the star
character*7 SpType_1 ! MK spectral type
real*4 plx_1 ! (mas) ?=- Parallax of the star
real*4 e_plx ! (mas) ?=- Error in parallax
real*4 b_y_1 ! (mag) ?=- b-y colour index
real*4 m1_1 ! (mag) ?=- m1 colour index
real*4 c1_1 ! (mag) ?=- c1 colour index
real*4 beta_1 ! (mag) ?=- H Beta index
real*4 Dm1_1 ! (mag) ?=- Delta m1 spectral index
real*4 Dc1_1 ! (mag) ?=- Delta c1 spectral index
integer*4 Teff_1 ! (K) ?=- Effective temperature of the star
real*4 logLstar_1 ! ([Lsun]) ?=- Luminosity of the star relative to the Sun
real*4 Deltat1 ! (h) Duration of observation 1
integer*4 HJD1 ! (d) Julian date (2450000+) when the star was
* observed
integer*4 Obs_Year1 ! Year when the star was observed
real*4 Deltat2 ! (h) ? Duration of observation 2
integer*4 HJD2 ! (d) ? Julian date (2450000+) when the star was
* observed
integer*4 Obs_Year2 ! ? Year when the star was observed
real*4 Deltat3 ! (h) ? Duration of observation 3
integer*4 HJD3 ! (d) ? Julian date (2450000+) when the star was
* observed
integer*4 Obs_Year3 ! ? Year when the star was observed
real*4 Deltat4 ! (h) ? Duration of observation 4
integer*4 HJD4 ! (d) ? Julian date (2450000+) when the star was
* observed
integer*4 Obs_Year4 ! ? Year when the star was observed
real*4 Deltat5 ! (h) ? Duration of observation 5
integer*4 HJD5 ! (d) ? Julian date (2450000+) when the star was
* observed
integer*4 Obs_Year5 ! ? Year when the star was observed
real*4 Deltat6 ! (h) ? Duration of observation 6
integer*4 HJD6 ! (d) ? Julian date (2450000+) when the star was
* observed
integer*4 Obs_Year6 ! ? Year when the star was observed
real*4 Deltat7 ! (h) ? Duration of observation 7
integer*4 HJD7 ! (d) ? Julian date (2450000+) when the star was
* observed
integer*4 Obs_Year7 ! ? Year when the star was observed
real*4 Deltat8 ! (h) ? Duration of observation 8
integer*4 HJD8 ! (d) ? Julian date (2450000+) when the star was
* observed
integer*4 Obs_Year8 ! ? Year when the star was observed
real*4 Deltat9 ! (h) ? Duration of observation 9
integer*4 HJD9 ! (d) ? Julian date (2450000+) when the star was
* observed
integer*4 Obs_Year9 ! ? Year when the star was observed
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'refs.dat' ! References used in table1.dat
integer*4 nr__3
parameter (nr__3=54) ! Number of records
character*80 ar__3 ! Full-size record
integer*4 Ref_1 ! Reference number
character*19 BibCode ! BibCode
character*23 Aut ! Author's name
character*32 Com ! Comments
C=============================================================================
C Loading file 'table1.dat' ! The known roAp stars and their physical parameters
C Format for file interpretation
1 format(
+ I2,3X,I6,1X,A12,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,A13,
+ 1X,F5.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,F6.3,1X,F5.3,1X,I4,1X,A8)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,61
read(1,'(A109)')ar__
read(ar__,1)
+ Seq,HD,OName,RAh,RAm,RAs,DE_,DEd,DEm,DEs,SpType,b_y,m1,c1,Dm1,
+ Dc1,beta,Teff,Ref
if(ar__(6:11) .EQ. '') HD = iNULL__
if (idig(ar__(59:63)).EQ.0) b_y = rNULL__
if (idig(ar__(65:69)).EQ.0) m1 = rNULL__
if (idig(ar__(71:75)).EQ.0) c1 = rNULL__
if (idig(ar__(77:82)).EQ.0) Dm1 = rNULL__
if (idig(ar__(84:89)).EQ.0) Dc1 = rNULL__
if (idig(ar__(91:95)).EQ.0) beta = 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)
+ Seq,HD,OName,RAh,RAm,RAs,DE_,DEd,DEm,DEs,SpType,b_y,m1,c1,Dm1,
+ Dc1,beta,Teff,Ref
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Additional parameters for the known roAp stars
C Format for file interpretation
2 format(
+ I2,1X,A12,1X,F5.2,1X,F5.2,1X,F6.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,
+ I2,1X,F5.2,1X,F4.2,A1,F6.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,
+ F5.2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,61
read(1,'(A98)')ar__1
read(ar__1,2)
+ Seq_1,Name,Vmag,plx,Dist,VMAG_1,logLstar,Ppul,Deltamu,Amax,
+ RVmax,l_Prot,Prot,logg,Mstar,Rstar,B,vsini
if (idig(ar__1(23:27)).EQ.0) plx = rNULL__
if (idig(ar__1(29:34)).EQ.0) Dist = rNULL__
if (idig(ar__1(36:39)).EQ.0) VMAG_1 = rNULL__
if (idig(ar__1(41:44)).EQ.0) logLstar = rNULL__
if (Deltamu .EQ. 45) Deltamu = iNULL__
if (idig(ar__1(55:59)).EQ.0) Amax = rNULL__
if (idig(ar__1(61:64)).EQ.0) RVmax = rNULL__
if (idig(ar__1(66:71)).EQ.0) Prot = rNULL__
if (idig(ar__1(73:76)).EQ.0) logg = rNULL__
if (idig(ar__1(78:81)).EQ.0) Mstar = rNULL__
if (idig(ar__1(83:86)).EQ.0) Rstar = rNULL__
if (idig(ar__1(88:92)).EQ.0) B = rNULL__
if (idig(ar__1(94:98)).EQ.0) vsini = rNULL__
c ..............Just test output...........
write(6,2)
+ Seq_1,Name,Vmag,plx,Dist,VMAG_1,logLstar,Ppul,Deltamu,Amax,
+ RVmax,l_Prot,Prot,logg,Mstar,Rstar,B,vsini
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Stars classified as null results during the
* Nainital-Cape survey (108 stars)
C Format for file interpretation
3 format(
+ I3,1X,I6,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,F5.2,2X,A7,
+ F5.2,1X,F4.2,1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,F6.3,
+ 1X,I6,1X,F5.2,2X,F4.2,1X,I4,1X,I4,2X,F4.2,1X,I4,1X,I4,2X,F4.2,
+ 1X,I4,1X,I4,2X,F4.2,1X,I4,1X,I4,2X,F4.2,1X,I4,1X,I4,2X,F4.2,
+ 1X,I4,1X,I4,2X,F4.2,1X,I4,1X,I4,2X,F4.2,1X,I4,1X,I4,2X,F4.2,
+ 1X,I4,1X,I4)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,108
read(1,'(A251)')ar__2
read(ar__2,3)
+ Seq_2,HD_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Vmag_2,
+ SpType_1,plx_1,e_plx,b_y_1,m1_1,c1_1,beta_1,Dm1_1,Dc1_1,
+ Teff_1,logLstar_1,Deltat1,HJD1,Obs_Year1,Deltat2,HJD2,
+ Obs_Year2,Deltat3,HJD3,Obs_Year3,Deltat4,HJD4,Obs_Year4,
+ Deltat5,HJD5,Obs_Year5,Deltat6,HJD6,Obs_Year6,Deltat7,HJD7,
+ Obs_Year7,Deltat8,HJD8,Obs_Year8,Deltat9,HJD9,Obs_Year9
if (idig(ar__2(45:49)).EQ.0) plx_1 = rNULL__
if (idig(ar__2(51:54)).EQ.0) e_plx = rNULL__
if (idig(ar__2(56:61)).EQ.0) b_y_1 = rNULL__
if (idig(ar__2(63:68)).EQ.0) m1_1 = rNULL__
if (idig(ar__2(70:74)).EQ.0) c1_1 = rNULL__
if (idig(ar__2(76:80)).EQ.0) beta_1 = rNULL__
if (idig(ar__2(82:87)).EQ.0) Dm1_1 = rNULL__
if (idig(ar__2(89:94)).EQ.0) Dc1_1 = rNULL__
if (Teff_1 .EQ. 45) Teff_1 = iNULL__
if (idig(ar__2(103:107)).EQ.0) logLstar_1 = rNULL__
if(ar__2(126:129) .EQ. '') Deltat2 = rNULL__
if(ar__2(131:134) .EQ. '') HJD2 = iNULL__
if(ar__2(136:139) .EQ. '') Obs_Year2 = iNULL__
if(ar__2(142:145) .EQ. '') Deltat3 = rNULL__
if(ar__2(147:150) .EQ. '') HJD3 = iNULL__
if(ar__2(152:155) .EQ. '') Obs_Year3 = iNULL__
if(ar__2(158:161) .EQ. '') Deltat4 = rNULL__
if(ar__2(163:166) .EQ. '') HJD4 = iNULL__
if(ar__2(168:171) .EQ. '') Obs_Year4 = iNULL__
if(ar__2(174:177) .EQ. '') Deltat5 = rNULL__
if(ar__2(179:182) .EQ. '') HJD5 = iNULL__
if(ar__2(184:187) .EQ. '') Obs_Year5 = iNULL__
if(ar__2(190:193) .EQ. '') Deltat6 = rNULL__
if(ar__2(195:198) .EQ. '') HJD6 = iNULL__
if(ar__2(200:203) .EQ. '') Obs_Year6 = iNULL__
if(ar__2(206:209) .EQ. '') Deltat7 = rNULL__
if(ar__2(211:214) .EQ. '') HJD7 = iNULL__
if(ar__2(216:219) .EQ. '') Obs_Year7 = iNULL__
if(ar__2(222:225) .EQ. '') Deltat8 = rNULL__
if(ar__2(227:230) .EQ. '') HJD8 = iNULL__
if(ar__2(232:235) .EQ. '') Obs_Year8 = iNULL__
if(ar__2(238:241) .EQ. '') Deltat9 = rNULL__
if(ar__2(243:246) .EQ. '') HJD9 = iNULL__
if(ar__2(248:251) .EQ. '') Obs_Year9 = iNULL__
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,3)
+ Seq_2,HD_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Vmag_2,
+ SpType_1,plx_1,e_plx,b_y_1,m1_1,c1_1,beta_1,Dm1_1,Dc1_1,
+ Teff_1,logLstar_1,Deltat1,HJD1,Obs_Year1,Deltat2,HJD2,
+ Obs_Year2,Deltat3,HJD3,Obs_Year3,Deltat4,HJD4,Obs_Year4,
+ Deltat5,HJD5,Obs_Year5,Deltat6,HJD6,Obs_Year6,Deltat7,HJD7,
+ Obs_Year7,Deltat8,HJD8,Obs_Year8,Deltat9,HJD9,Obs_Year9
write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'refs.dat' ! References used in table1.dat
C Format for file interpretation
4 format(I2,1X,A19,1X,A23,2X,A32)
C Effective file loading
open(unit=1,status='old',file=
+'refs.dat')
write(6,*) '....Loading file: refs.dat'
do i__=1,54
read(1,'(A80)')ar__3
read(ar__3,4)Ref_1,BibCode,Aut,Com
c ..............Just test output...........
write(6,4)Ref_1,BibCode,Aut,Com
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