Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/695/1591 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-Oct-11
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/ApJ/695/1591 Spectrophotometry in PEARS fields (Pirzkal+, 2009)
*================================================================================
*Spectrophotometrically identified stars in the PEARS-N and PEARS-S fields.
* Pirzkal N., Burgasser A.J., Malhotra S., Holwerda B.W., Sahu K.C.,
* Rhoads J.E., Xu C., Bochanski J.J., Walsh J.R., Windhorst R.A., Hathi N.P.,
* Cohen S.H.
* <Astrophys. J., 695, 1591-1603 (2009)>
* =2009ApJ...695.1591P
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! M0 and later stars in PEARS-N with z_850_<25
integer*4 nr__
parameter (nr__=51) ! Number of records
character*85 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
character*7 v_PBM2009_ ! Star identification
real*8 RAdeg ! (deg) Right ascension in decimal degrees (J2000)
real*8 DEdeg ! (deg) Declination in decimal degrees (J2000)
real*4 zmag ! (mag) HST/ACS F850LP (z_850_) magnitude (1)
real*4 e_zmag ! (mag) mag uncertainty
real*4 B_V ! (mag) ? HST/ACS (B-V) color index (435-606um)
real*4 e_B_V ! (mag) ? B-V uncertainty
real*4 V_i ! (mag) HST/ACS (V-i) color index (606-775um)
real*4 e_V_i ! (mag) V-i uncertainty
real*4 i_z ! (mag) HST/ACS (i-z) color index (775-850um)
real*4 e_i_z ! (mag) i-z uncertainty
character*4 SpT ! MK spectral type
*Note (1): the printed paper indicates a blue magnitude (F435W) for table1,
* but both tables do give the z_850_ magnitude
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! M0 and later stars in PEARS-S with z_850_<25
integer*4 nr__1
parameter (nr__1=63) ! Number of records
character*85 ar__1 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
character*7 v_PBM2009__1 ! Star identification
real*8 RAdeg_1 ! (deg) Right ascension in decimal degrees (J2000)
real*8 DEdeg_1 ! (deg) Declination in decimal degrees (J2000)
real*4 zmag_1 ! (mag) HST/ACS F850LP (z_850_) magnitude (1)
real*4 e_zmag_1 ! (mag) mag uncertainty
real*4 B_V_1 ! (mag) ? HST/ACS (B-V) color index (435-606um)
real*4 e_B_V_1 ! (mag) ? B-V uncertainty
real*4 V_i_1 ! (mag) HST/ACS (V-i) color index (606-775um)
real*4 e_V_i_1 ! (mag) V-i uncertainty
real*4 i_z_1 ! (mag) HST/ACS (i-z) color index (775-850um)
real*4 e_i_z_1 ! (mag) i-z uncertainty
character*4 SpT_1 ! MK spectral type
*Note (1): the printed paper indicates a blue magnitude (F435W) for table1,
* but both tables do give the z_850_ magnitude
C=============================================================================
C Loading file 'table1.dat' ! M0 and later stars in PEARS-N with z_850_<25
C Format for file interpretation
1 format(
+ A7,1X,F13.9,1X,F13.9,1X,F5.2,1X,F5.3,1X,F4.2,1X,F5.3,1X,F4.2,
+ 1X,F5.3,1X,F4.2,1X,F5.3,1X,A4)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,51
read(1,'(A85)')ar__
read(ar__,1)
+ v_PBM2009_,RAdeg,DEdeg,zmag,e_zmag,B_V,e_B_V,V_i,e_V_i,i_z,
+ e_i_z,SpT
if(ar__(49:52) .EQ. '') B_V = rNULL__
if(ar__(54:58) .EQ. '') e_B_V = rNULL__
c ..............Just test output...........
write(6,1)
+ v_PBM2009_,RAdeg,DEdeg,zmag,e_zmag,B_V,e_B_V,V_i,e_V_i,i_z,
+ e_i_z,SpT
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! M0 and later stars in PEARS-S with z_850_<25
C Format for file interpretation
2 format(
+ A7,1X,F13.9,1X,F13.9,1X,F5.2,1X,F5.3,1X,F4.2,1X,F5.3,1X,F4.2,
+ 1X,F5.3,1X,F4.2,1X,F5.3,1X,A4)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,63
read(1,'(A85)')ar__1
read(ar__1,2)
+ v_PBM2009__1,RAdeg_1,DEdeg_1,zmag_1,e_zmag_1,B_V_1,e_B_V_1,
+ V_i_1,e_V_i_1,i_z_1,e_i_z_1,SpT_1
if(ar__1(49:52) .EQ. '') B_V_1 = rNULL__
if(ar__1(54:58) .EQ. '') e_B_V_1 = rNULL__
c ..............Just test output...........
write(6,2)
+ v_PBM2009__1,RAdeg_1,DEdeg_1,zmag_1,e_zmag_1,B_V_1,e_B_V_1,
+ V_i_1,e_V_i_1,i_z_1,e_i_z_1,SpT_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end