Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/604/L4 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-Mar-28 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/604/L4 HAT-P-4 and TYC 2569-744-1 abundances and spectra (Saffe+, 2017) *================================================================================ *Signatures of rocky planet engulfment in HAT-P-4. * Saffe C., Jofre E., Martioli E., Flores M., Petrucci, R., Jaque Arancibia M. * <Astron. Astrophys. 604, L4 (2017)> * =2017A&A...604L...4S (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Line list and equivalent widths of stars A, B and Sun integer*4 nr__ parameter (nr__=531) ! Number of records character*67 ar__ ! Full-size record real*8 El (nr__) ! Element real*8 Wave (nr__) ! (0.1nm) Wavelength ({AA}) real*8 EP (nr__) ! (eV) Excitation potential real*8 loggf (nr__) ! ([-]) Oscillation strength log(gf) (dex) real*8 WA (nr__) ! (0.1pm) ? Equivalent width in HAT-P-4 (star A) (1) real*8 WB (nr__) ! (0.1pm) ? Equivalent width in TYC 2569-744-1 * (star B) (1) real*8 WSun (nr__) ! (0.1pm) ? Equivalent width in the Sun (1) *Note (1): The abundances of those lines without equivalent widths were measured * using synthetic spectra. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Differential abundances and errors for the stars A (HAT-P-4) and B (TYC 2569-744-1) integer*4 nr__1 parameter (nr__1=24) ! Number of records character*95 ar__1 ! Full-size record character*11 El_1 (nr__1) ! Element real*8 v_X_Fe_1 (nr__1) ! Abundance (A-Sun) real*8 sobs1 (nr__1) ! Observational error (A-Sun) real*8 spar1 (nr__1) ! Error due to stellar parameters (A-Sun) real*8 stot1 (nr__1) ! Total error (A-Sun) real*8 v_X_Fe_2 (nr__1) ! Abundance (B-Sun) real*8 sobs2 (nr__1) ! Observational error (B-Sun) real*8 spar2 (nr__1) ! Error due to stellar parameters (B-Sun) real*8 stot2 (nr__1) ! Total error (B-Sun) real*8 v_X_Fe_3 (nr__1) ! Abundance (B-A) real*8 sobs3 (nr__1) ! Observational error (B-A) real*8 spar3 (nr__1) ! Error due to stellar parameters (B-A) real*8 stot3 (nr__1) ! Total error (B-A) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'list.dat' ! List of fits spectra integer*4 nr__2 parameter (nr__2=2) ! Number of records character*118 ar__2 ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg (nr__2) ! (deg) Right Ascension J2000 real*8 DEdeg (nr__2) ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) character*14 Name (nr__2) ! Star name integer*4 RAh (nr__2) ! (h) Right ascension (J2000) integer*4 RAm (nr__2) ! (min) Right ascension (J2000) real*4 RAs (nr__2) ! (s) Right ascension (J2000) character*1 DE_ (nr__2) ! Declination sign (J2000) integer*4 DEd (nr__2) ! (deg) Declination (J2000) integer*4 DEm (nr__2) ! (arcmin) Declination (J2000) real*4 DEs (nr__2) ! (arcsec) Declination (J2000) integer*4 Nx (nr__2) ! Number of pixels along X-axis real*8 blambda (nr__2) ! (0.1nm) Lower value of wavelength interval real*8 Blambda_1 (nr__2) ! (0.1nm) Upper value of wavelength interval real*8 dlambda (nr__2) ! (0.1nm) Sepctral resolution integer*4 size (nr__2) ! (Kibyte) Size of FITS file character*18 FileName (nr__2) ! Name of FITS file, in subdirectory fits character*23 Title (nr__2) ! Title of the file C============================================================================= C Loading file 'table1.dat' ! Line list and equivalent widths of stars A, B * and Sun C Format for file interpretation 1 format(F8.2,F12.3,F10.3,F10.3,F9.1,F9.1,F9.1) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,531 read(1,'(A67)')ar__ read(ar__,1) + El(i__),Wave(i__),EP(i__),loggf(i__),WA(i__),WB(i__),WSun(i__) if(ar__(41:49) .EQ. '') WA(i__) = rNULL__ if(ar__(50:58) .EQ. '') WB(i__) = rNULL__ if(ar__(59:67) .EQ. '') WSun(i__) = rNULL__ c ..............Just test output........... write(6,1) + El(i__),Wave(i__),EP(i__),loggf(i__),WA(i__),WB(i__),WSun(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Differential abundances and errors for the * stars A (HAT-P-4) and B (TYC 2569-744-1) C Format for file interpretation 2 format( + A11,F7.3,F7.3,F7.3,F7.3,F7.3,F7.3,F7.3,F7.3,F7.3,F7.3,F7.3, + F7.3) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,24 read(1,'(A95)')ar__1 read(ar__1,2) + El_1(i__),v_X_Fe_1(i__),sobs1(i__),spar1(i__),stot1(i__), + v_X_Fe_2(i__),sobs2(i__),spar2(i__),stot2(i__),v_X_Fe_3(i__), + sobs3(i__),spar3(i__),stot3(i__) c ..............Just test output........... write(6,2) + El_1(i__),v_X_Fe_1(i__),sobs1(i__),spar1(i__),stot1(i__), + v_X_Fe_2(i__),sobs2(i__),spar2(i__),stot2(i__),v_X_Fe_3(i__), + sobs3(i__),spar3(i__),stot3(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'list.dat' ! List of fits spectra C Format for file interpretation 3 format( + A14,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,I6,1X,F7.2, + 1X,F7.1,1X,F9.7,1X,I3,1X,A18,1X,A23) C Effective file loading open(unit=1,status='old',file= +'list.dat') write(6,*) '....Loading file: list.dat' do i__=1,2 read(1,'(A118)')ar__2 read(ar__2,3) + Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),Nx(i__),blambda(i__),Blambda_1(i__), + dlambda(i__),size(i__),FileName(i__),Title(i__) 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,3) + Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),Nx(i__),blambda(i__),Blambda_1(i__), + dlambda(i__),size(i__),FileName(i__),Title(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end