Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/156/275 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-Oct-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/AJ/156/275 Rotational evolution of young, binary M dwarfs (Stauffer+, 2018)
*================================================================================
*The rotational evolution of young, binary M dwarfs.
* Stauffer J., Rebull L.M., Cody A.M., Hillenbrand L.A., Pinsonneault M.,
* Barrado D., Bouvier J., David T.
* <Astron. J., 156, 275 (2018)>
* =2018AJ....156..275S (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Upper Sco M<0.32 M_{sun}_ stars with K2 periods
integer*4 nr__
parameter (nr__=257) ! Number of records
character*42 ar__ ! Full-size record
integer*4 EPIC (nr__) ! [202515599/247899959] EPIC identifier
real*4 v_V_Ks_0 (nr__) ! (mag) [5.31/6.974] Intrinsic (V-K_s_) color
real*8 P1 (nr__) ! (d) [0.0824/29.7371] First rotation period
real*8 P2 (nr__) ! (d) [0.1126/19.2487]?=-9 Second rotation period
real*4 Mass (nr__) ! (Msun) [0.112/0.32] Mass
character*1 Disk (nr__) ! [Y] Disk detected? (only in Table 4)
character*2 Cluster (nr__) ! Cluster code (H=Hyades, Pr=Praesepe) (only in
* Table 6)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! Pleiades M<0.32 M_{sun}_ stars with K2 periods
integer*4 nr__1
parameter (nr__1=286) ! Number of records
character*42 ar__1 ! Full-size record
integer*4 EPIC_1 (nr__1) ! [202515599/247899959] EPIC identifier
real*4 v_V_Ks_0_1 (nr__1) ! (mag) [5.31/6.974] Intrinsic (V-K_s_) color
real*8 P1_1 (nr__1) ! (d) [0.0824/29.7371] First rotation period
real*8 P2_1 (nr__1) ! (d) [0.1126/19.2487]?=-9 Second rotation period
real*4 Mass_1 (nr__1) ! (Msun) [0.112/0.32] Mass
character*1 Disk_1 (nr__1) ! [Y] Disk detected? (only in Table 4)
character*2 Cluster_1 (nr__1) ! Cluster code (H=Hyades, Pr=Praesepe) (only in
* Table 6)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table6.dat' ! Praesepe/Hyades M<0.32 M_{sun}_ stars with K2
periods
integer*4 nr__2
parameter (nr__2=292) ! Number of records
character*42 ar__2 ! Full-size record
integer*4 EPIC_2 (nr__2) ! [202515599/247899959] EPIC identifier
real*4 v_V_Ks_0_2 (nr__2) ! (mag) [5.31/6.974] Intrinsic (V-K_s_) color
real*8 P1_2 (nr__2) ! (d) [0.0824/29.7371] First rotation period
real*8 P2_2 (nr__2) ! (d) [0.1126/19.2487]?=-9 Second rotation period
real*4 Mass_2 (nr__2) ! (Msun) [0.112/0.32] Mass
character*1 Disk_2 (nr__2) ! [Y] Disk detected? (only in Table 4)
character*2 Cluster_2 (nr__2) ! Cluster code (H=Hyades, Pr=Praesepe) (only in
* Table 6)
C=============================================================================
C Loading file 'table4.dat' ! Upper Sco M<0.32 M_{sun}_ stars with K2 periods
C Format for file interpretation
1 format(I9,1X,F5.3,1X,F7.4,1X,F7.4,1X,F5.3,1X,A1,1X,A2)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,257
read(1,'(A42)')ar__
read(ar__,1)
+ EPIC(i__),v_V_Ks_0(i__),P1(i__),P2(i__),Mass(i__),Disk(i__),
+ Cluster(i__)
c ..............Just test output...........
write(6,1)
+ EPIC(i__),v_V_Ks_0(i__),P1(i__),P2(i__),Mass(i__),Disk(i__),
+ Cluster(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! Pleiades M<0.32 M_{sun}_ stars with K2 periods
C Format for file interpretation
2 format(I9,1X,F5.3,1X,F7.4,1X,F7.4,1X,F5.3,1X,A1,1X,A2)
C Effective file loading
open(unit=1,status='old',file=
+'table5.dat')
write(6,*) '....Loading file: table5.dat'
do i__=1,286
read(1,'(A42)')ar__1
read(ar__1,2)
+ EPIC_1(i__),v_V_Ks_0_1(i__),P1_1(i__),P2_1(i__),Mass_1(i__),
+ Disk_1(i__),Cluster_1(i__)
c ..............Just test output...........
write(6,2)
+ EPIC_1(i__),v_V_Ks_0_1(i__),P1_1(i__),P2_1(i__),Mass_1(i__),
+ Disk_1(i__),Cluster_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table6.dat' ! Praesepe/Hyades M<0.32 M_{sun}_ stars with K2
* periods
C Format for file interpretation
3 format(I9,1X,F5.3,1X,F7.4,1X,F7.4,1X,F5.3,1X,A1,1X,A2)
C Effective file loading
open(unit=1,status='old',file=
+'table6.dat')
write(6,*) '....Loading file: table6.dat'
do i__=1,292
read(1,'(A42)')ar__2
read(ar__2,3)
+ EPIC_2(i__),v_V_Ks_0_2(i__),P1_2(i__),P2_2(i__),Mass_2(i__),
+ Disk_2(i__),Cluster_2(i__)
c ..............Just test output...........
write(6,3)
+ EPIC_2(i__),v_V_Ks_0_2(i__),P1_2(i__),P2_2(i__),Mass_2(i__),
+ Disk_2(i__),Cluster_2(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end