Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/123/290 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 2024-Mar-29 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/123/290 UBVI CCD photometry of NGC 2516 (Sung+, 2002) *================================================================================ *The open cluster NGC 2516. I. Optical photometry. * Sung H., Bessell M.S., Lee B.-W., Lee S.-G. * <Astron. J. 123, 290 (2002)> * =2002AJ....123..290S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Photometric Data integer*4 nr__ parameter (nr__=1264) ! Number of records character*143 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 SBL ! Object running number identification (1) integer*4 RAh ! (h) Hour of Right Ascension (J2000) integer*4 RAm ! (min) Minute of Right Ascension (J2000) real*4 RAs ! (s) Second of Right Ascension (J2000) character*1 DE_ ! Sign of the Declination (J2000) integer*4 DEd ! (deg) Degree of Declination (J2000) integer*4 DEm ! (arcmin) Arcminute of Declination (J2000) real*4 DEs ! (arcsec) Arcsecond of Declination (J2000) real*4 Vmag ! (mag) The weighted mean Johnson V band magnitude real*4 V_Ic ! (mag) ? The weighted mean Johnson-Cousins (V-Ic) color real*4 B_V ! (mag) ? The weighted mean Johnson-Cousins (B-V) color real*4 U_B ! (mag) ? The weighted mean Johnson-Cousins (U-B) color real*4 e_Vmag ! (mag) ? The weighted error in Vmag real*4 e_V_Ic ! (mag) ? The weighted error in V-Ic real*4 e_B_V ! (mag) ? The weighted error in B-V real*4 e_U_B ! (mag) ? The weighted error in U-B integer*4 o_Vmag ! Number of independent measurements in Vmag integer*4 o_V_Ic ! ? Number of independent measurements in V-I integer*4 o_B_V ! ? Number of independent measurements in B-V integer*4 o_U_B ! ? Number of independent measurements in U-B character*5 BDA ! The number adopted in the open cluster database * WEBDA (http://obswww.unige.ch/wedba) real*4 Prob ! ? King (1978, J. Proc. R. Soc. New South Wales, * 111, 61) proper motion membership probability character*4 XID ! The X-ray source identification (2) character*8 SpType ! Spectral type character*29 n_SBL ! Other designation for ID (3) *Note (1): Cl* NGC 2516 SBL NNNN in Simbad *Note (2): XID numbers: * 1 to 159 are from X-ray study by Jeffries et al. (1997MNRAS.287..350J), * 160 to 173 are from Micela et al. (2000A&A...357..909M). * XID marked as `X' are from Chandra observation (Harnden et al., * 2001ApJ...547L.141H). *Note (3): Other designation: * C = Cox (1955ApJ...121..628C) * E = Eggen (1983MNRAS.204..377E) * AR = Andersen & Reiz (1983A&AS...53..181A) * D = Dachs (1970A&A.....5..312D) * DK = Dachs & Kabus (1989A&AS...78...25D) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! Photometric data for known white dwarfs in NGC 2516 integer*4 nr__1 parameter (nr__1=4) ! Number of records character*142 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 SBL_1 ! Object running number identification (1) integer*4 RAh_1 ! (h) Hour of Right Ascension (J2000) integer*4 RAm_1 ! (min) Minute of Right Ascension (J2000) real*4 RAs_1 ! (s) Second of Right Ascension (J2000) character*1 DE__1 ! Sign of the Declination (J2000) integer*4 DEd_1 ! (deg) Degree of Declination (J2000) integer*4 DEm_1 ! (arcmin) Arcminute of Declination (J2000) real*4 DEs_1 ! (arcsec) Arcsecond of Declination (J2000) real*4 Vmag_1 ! (mag) The weighted mean Johnson V band magnitude real*4 V_Ic_1 ! (mag) ? The weighted mean Johnson-Cousins (V-Ic) color real*4 B_V_1 ! (mag) ? The weighted mean Johnson-Cousins (B-V) color real*4 U_B_1 ! (mag) ? The weighted mean Johnson-Cousins (U-B) color real*4 e_Vmag_1 ! (mag) ? The weighted error in Vmag real*4 e_V_Ic_1 ! (mag) ? The weighted error in V-Ic real*4 e_B_V_1 ! (mag) ? The weighted error in B-V real*4 e_U_B_1 ! (mag) ? The weighted error in U-B integer*4 o_Vmag_1 ! Number of independent measurements in Vmag integer*4 o_V_Ic_1 ! ? Number of independent measurements in V-I integer*4 o_B_V_1 ! ? Number of independent measurements in B-V integer*4 o_U_B_1 ! ? Number of independent measurements in U-B character*5 BDA_1 ! The number adopted in the open cluster database * WEBDA (http://obswww.unige.ch/wedba) real*4 Prob_1 ! ? King (1978, J. Proc. R. Soc. New South Wales, * 111, 61) proper motion membership probability character*4 XID_1 ! The X-ray source identification (2) character*8 SpType_1 ! Spectral type character*29 n_SBL_1 ! Other designation for ID (3) *Note (1): Cl* NGC 2516 SBL NNNN in Simbad *Note (2): XID numbers: * 1 to 159 are from X-ray study by Jeffries et al. (1997MNRAS.287..350J), * 160 to 173 are from Micela et al. (2000A&A...357..909M). * XID marked as `X' are from Chandra observation (Harnden et al., * 2001ApJ...547L.141H). *Note (3): Other designation: * C = Cox (1955ApJ...121..628C) * E = Eggen (1983MNRAS.204..377E) * AR = Andersen & Reiz (1983A&AS...53..181A) * D = Dachs (1970A&A.....5..312D) * DK = Dachs & Kabus (1989A&AS...78...25D) C============================================================================= C Loading file 'table1.dat' ! Photometric Data C Format for file interpretation 1 format( + I4,1X,I1,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,F6.3, + 1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,I1,1X,I1, + 1X,I1,1X,I1,1X,A5,1X,F4.2,1X,A4,1X,A8,1X,A29) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,1264 read(1,'(A143)')ar__ read(ar__,1) + SBL,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,V_Ic,B_V,U_B,e_Vmag, + e_V_Ic,e_B_V,e_U_B,o_Vmag,o_V_Ic,o_B_V,o_U_B,BDA,Prob,XID, + SpType,n_SBL if(ar__(36:41) .EQ. '') V_Ic = rNULL__ if(ar__(43:48) .EQ. '') B_V = rNULL__ if(ar__(50:55) .EQ. '') U_B = rNULL__ if(ar__(57:61) .EQ. '') e_Vmag = rNULL__ if(ar__(63:67) .EQ. '') e_V_Ic = rNULL__ if(ar__(69:73) .EQ. '') e_B_V = rNULL__ if(ar__(75:79) .EQ. '') e_U_B = rNULL__ if(ar__(83:83) .EQ. '') o_V_Ic = iNULL__ if(ar__(85:85) .EQ. '') o_B_V = iNULL__ if(ar__(87:87) .EQ. '') o_U_B = iNULL__ if(ar__(95:98) .EQ. '') Prob = 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) + SBL,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,V_Ic,B_V,U_B,e_Vmag, + e_V_Ic,e_B_V,e_U_B,o_Vmag,o_V_Ic,o_B_V,o_U_B,BDA,Prob,XID, + SpType,n_SBL write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table4.dat' ! Photometric data for known white dwarfs in NGC 2516 C Format for file interpretation 2 format( + I4,1X,I1,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,F6.3, + 1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,I1,1X,I1, + 1X,I1,1X,I1,1X,A5,1X,F4.2,1X,A4,1X,A8,1X,A29) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,4 read(1,'(A142)')ar__1 read(ar__1,2) + SBL_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Vmag_1,V_Ic_1, + B_V_1,U_B_1,e_Vmag_1,e_V_Ic_1,e_B_V_1,e_U_B_1,o_Vmag_1, + o_V_Ic_1,o_B_V_1,o_U_B_1,BDA_1,Prob_1,XID_1,SpType_1,n_SBL_1 if(ar__1(36:41) .EQ. '') V_Ic_1 = rNULL__ if(ar__1(43:48) .EQ. '') B_V_1 = rNULL__ if(ar__1(50:55) .EQ. '') U_B_1 = rNULL__ if(ar__1(57:61) .EQ. '') e_Vmag_1 = rNULL__ if(ar__1(63:67) .EQ. '') e_V_Ic_1 = rNULL__ if(ar__1(69:73) .EQ. '') e_B_V_1 = rNULL__ if(ar__1(75:79) .EQ. '') e_U_B_1 = rNULL__ if(ar__1(83:83) .EQ. '') o_V_Ic_1 = iNULL__ if(ar__1(85:85) .EQ. '') o_B_V_1 = iNULL__ if(ar__1(87:87) .EQ. '') o_U_B_1 = iNULL__ if(ar__1(95:98) .EQ. '') Prob_1 = 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) + SBL_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Vmag_1,V_Ic_1, + B_V_1,U_B_1,e_Vmag_1,e_V_Ic_1,e_B_V_1,e_U_B_1,o_Vmag_1, + o_V_Ic_1,o_B_V_1,o_U_B_1,BDA_1,Prob_1,XID_1,SpType_1,n_SBL_1 write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end