Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/428/339 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 2024-Apr-18 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/428/339 Capodimonte Deep Field (Alcala+, 2004) *================================================================================ *The Capodimonte Deep Field: *Presentation of the survey and first follow-up studies. * Alcala J.M., Pannella M., Puddu E., Radovich M., Silvotti R., Arnaboldi M., * Capaccioli M., Covone G., Dall'Ora M., De Lucia G., Grado A., Longo G., * Mercurio A., Musella I., Napolitano N., Pavlov M., Rifatto A., Ripepi V., * Scaramella R. * <Astron. Astrophys. 428, 339 (2004)> * =2004A&A...428..339A C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea1.dat' ! Coordinates and broad-band AB magnitudes for 173 objects in the OACDF2 integer*4 nr__ parameter (nr__=173) ! Number of records character*93 ar__ ! Full-size record C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg (nr__) ! (deg) Right Ascension J2000.0 real*8 DEdeg (nr__) ! (deg) Declination J2000.0 C ---------------------------------- ! (position vector(s) in degrees) character*15 OACDF (nr__) ! OACDF source name (based on J2000 position) integer*4 RAh (nr__) ! (h) Right ascension (J2000.0) integer*4 RAm (nr__) ! (min) Right ascension (J2000.0) real*4 RAs (nr__) ! (s) Right ascension (J2000.0) character*1 DE_ (nr__) ! Declination sign (J2000.0) integer*4 DEd (nr__) ! (deg) Declination (J2000.0) integer*4 DEm (nr__) ! (arcmin) Declination (J2000.0) real*4 DEs (nr__) ! (arcsec) Declination (J2000.0) real*4 B_AB_mag (nr__) ! (mag) AB magnitude in the B band (1) real*4 e_B_AB_mag (nr__) ! (mag) Error on AB magnitude in the B band real*4 V_AB_mag (nr__) ! (mag) ? AB magnitude in the V band (1) real*4 e_V_AB_mag (nr__) ! (mag) ? Error on AB magnitude in the V band real*4 R_AB_mag (nr__) ! (mag) ? AB magnitude in the R band (1) real*4 e_R_AB_mag (nr__) ! (mag) ? Error on AB magnitude in the R band real*4 I_AB_mag (nr__) ! (mag) AB magnitude in the I band (1) real*4 e_I_AB_mag (nr__) ! (mag) Error on AB magnitude in the I band *Note (1): The broad-band AB magnitudes can be transformed into the * Johnson-Cousins system by applying the following expressions: * V = 0.870V_AB_ + 0.130R_AB_ - 0.030 * Rc = 1.030R_AB_ - 0.030V_AB_ - 0.221 * Ic = 0.907I_AB_ + 0.093V_AB_ - 0.462 * B = 1.311B_AB_ - 0.311V + 0.122 c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea2.dat' ! Intermediate-band AB magnitudes for 173 objects in the OACDF2 integer*4 nr__1 parameter (nr__1=173) ! Number of records character*101 ar__1 ! Full-size record character*15 OACDF_1 (nr__1) ! OACDF source name (based on J2000 position) real*4 M753mag (nr__1) ! (mag) AB mag. in the (753+/-18)nm intermediate band real*4 e_M753mag (nr__1) ! (mag) Error on AB mag. in the 753nm intermediate band real*4 M770mag (nr__1) ! (mag) AB mag. in the (770+/-19)nm intermediate band real*4 e_M770mag (nr__1) ! (mag) Error on AB mag. in the 770nm intermediate band real*4 M791mag (nr__1) ! (mag) ? AB mag. in the (791+/-25)nm intermediate band real*4 e_M791mag (nr__1) ! (mag) ? Error on AB mag. in the 791nm intermediate band real*4 M816mag (nr__1) ! (mag) AB mag. in the (816+/-20)nm intermediate band real*4 e_M816mag (nr__1) ! (mag) Error on AB mag. in the 816nm intermediate band real*4 M837mag (nr__1) ! (mag) AB mag. in the (837+/-20)nm intermediate band real*4 e_M837mag (nr__1) ! (mag) Error on AB mag. in the 837nm intermediate band real*4 M884mag (nr__1) ! (mag) ? AB mag. in the (884+/-39)nm intermediate band real*4 e_M884mag (nr__1) ! (mag) ? Error on AB mag. in the 884nm intermediate band real*4 M913mag (nr__1) ! (mag) AB mag. in the (913+/-27)nm intermediate band real*4 e_M913mag (nr__1) ! (mag) Error on AB mag. in the 913nm intermediate band c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea3.dat' ! Spectral types and redshifts of 173 objects in the OACDF2 integer*4 nr__2 parameter (nr__2=173) ! Number of records character*69 ar__2 ! Full-size record character*15 OACDF_2 (nr__2) ! OACDF source name (based on J2000 position) character*19 Type (nr__2) ! Object type description real*4 zspec (nr__2) ! ? spectroscopic redshift character*1 u_zspec (nr__2) ! [?] sign for dubious spectroscopic redshift character*20 Com (nr__2) ! Comments on individual objects C============================================================================= C Loading file 'tablea1.dat' ! Coordinates and broad-band AB magnitudes for 173 * objects in the OACDF2 C Format for file interpretation 1 format( + A15,2X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,2X,F5.2,1X, + F4.2,2X,F5.2,1X,F4.2,2X,F5.2,1X,F4.2,2X,F5.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'tablea1.dat') write(6,*) '....Loading file: tablea1.dat' do i__=1,173 read(1,'(A93)')ar__ read(ar__,1) + OACDF(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),B_AB_mag(i__),e_B_AB_mag(i__),V_AB_mag(i__), + e_V_AB_mag(i__),R_AB_mag(i__),e_R_AB_mag(i__),I_AB_mag(i__), + e_I_AB_mag(i__) if(ar__(57:61) .EQ. '') V_AB_mag(i__) = rNULL__ if(ar__(63:66) .EQ. '') e_V_AB_mag(i__) = rNULL__ if(ar__(69:73) .EQ. '') R_AB_mag(i__) = rNULL__ if(ar__(75:78) .EQ. '') e_R_AB_mag(i__) = rNULL__ RAdeg(i__) = rNULL__ DEdeg(i__) = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15. if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4. if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240. if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__) if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60. if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + OACDF(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),B_AB_mag(i__),e_B_AB_mag(i__),V_AB_mag(i__), + e_V_AB_mag(i__),R_AB_mag(i__),e_R_AB_mag(i__),I_AB_mag(i__), + e_I_AB_mag(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'tablea2.dat' ! Intermediate-band AB magnitudes for 173 objects * in the OACDF2 C Format for file interpretation 2 format( + A15,2X,F5.2,1X,F4.2,2X,F5.2,1X,F4.2,2X,F5.2,1X,F4.2,2X,F5.2, + 1X,F4.2,2X,F5.2,1X,F4.2,2X,F5.2,1X,F4.2,2X,F5.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'tablea2.dat') write(6,*) '....Loading file: tablea2.dat' do i__=1,173 read(1,'(A101)')ar__1 read(ar__1,2) + OACDF_1(i__),M753mag(i__),e_M753mag(i__),M770mag(i__), + e_M770mag(i__),M791mag(i__),e_M791mag(i__),M816mag(i__), + e_M816mag(i__),M837mag(i__),e_M837mag(i__),M884mag(i__), + e_M884mag(i__),M913mag(i__),e_M913mag(i__) if(ar__1(42:46) .EQ. '') M791mag(i__) = rNULL__ if(ar__1(48:51) .EQ. '') e_M791mag(i__) = rNULL__ if(ar__1(78:82) .EQ. '') M884mag(i__) = rNULL__ if(ar__1(84:87) .EQ. '') e_M884mag(i__) = rNULL__ c ..............Just test output........... write(6,2) + OACDF_1(i__),M753mag(i__),e_M753mag(i__),M770mag(i__), + e_M770mag(i__),M791mag(i__),e_M791mag(i__),M816mag(i__), + e_M816mag(i__),M837mag(i__),e_M837mag(i__),M884mag(i__), + e_M884mag(i__),M913mag(i__),e_M913mag(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'tablea3.dat' ! Spectral types and redshifts of 173 objects in * the OACDF2 C Format for file interpretation 3 format(A15,2X,A19,2X,F5.3,1X,A1,3X,A20) C Effective file loading open(unit=1,status='old',file= +'tablea3.dat') write(6,*) '....Loading file: tablea3.dat' do i__=1,173 read(1,'(A69)')ar__2 read(ar__2,3) + OACDF_2(i__),Type(i__),zspec(i__),u_zspec(i__),Com(i__) if(ar__2(39:43) .EQ. '') zspec(i__) = rNULL__ c ..............Just test output........... write(6,3) + OACDF_2(i__),Type(i__),zspec(i__),u_zspec(i__),Com(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end