Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/518/A1 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-19 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/518/A1 Galactic massive stars with AstraLux (Maiz Apellaniz, 2010) *================================================================================ *High-resolution imaging of Galactic massive stars with AstraLux: *I. 138 fields with delta > -25 degrees. * Maiz Apellaniz J. * <Astron. Astrophys. 518, A1 (2010)> * =2010A&A...518A...1M C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! List and properties of the detected pairs in the ACS/HRC data integer*4 nr__ parameter (nr__=15) ! Number of records character*74 ar__ ! Full-size record character*17 Name (nr__) ! System name character*6 Filt (nr__) ! Filter used for observations character*5 m_Name (nr__) ! Pair identification within system real*8 MJD (nr__) ! (d) Modified Julian Date of the observation real*4 Sep (nr__) ! (arcsec) Separation real*4 e_Sep (nr__) ! (arcsec) rms uncertainty in separation real*4 PA (nr__) ! (deg) Orientation real*4 e_PA (nr__) ! (deg) rms uncertainty in orientation real*4 dmag (nr__) ! (mag) Magnitude difference real*4 e_dmag (nr__) ! (mag) rms uncertainty in magnitude difference c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! List and properties of the detected pairs in the AstraLux data integer*4 nr__1 parameter (nr__1=142) ! Number of records character*105 ar__1 ! Full-size record character*17 Name_1 (nr__1) ! System name character*10 WDS (nr__1) ! Washington Double Star (B/wds) identification character*5 m_WDS (nr__1) ! Pair identification within system real*8 MJD_1 (nr__1) ! (d) Modified Julian Date of the observation real*4 Sep_1 (nr__1) ! (arcsec) Separation of the components real*4 e_Sep_1 (nr__1) ! (arcsec) rms uncertainty in separation real*4 PA_1 (nr__1) ! (deg) Orientation (N to E) real*4 e_PA_1 (nr__1) ! (deg) rms uncertainty in orientation character*1 f_WDS (nr__1) ! [y/n] Pair in WDS? (yes/no) character*1 u_dVT (nr__1) ! [a] Quality flag (1) real*4 dVT (nr__1) ! (mag) ?=- Tycho-2 V magnitude difference real*4 dz (nr__1) ! (mag) SDSS z magnitude difference (AstraLux) real*4 e_dz (nr__1) ! (mag) rms uncertainty in SDSS z magnitude difference character*1 u_dH (nr__1) ! [a] Quality flag (1) real*4 dH (nr__1) ! (mag) ?=- 2MASS H magnitude difference character*1 u_dK (nr__1) ! [ab] Quality flag (1) real*4 dK (nr__1) ! (mag) ?=- 2MASS K magnitude difference *Note (1): Flags as follows: * a = Large (>0.2 mag) photometric uncertainty * b = Low photometric quality (X flag) C============================================================================= C Loading file 'table2.dat' ! List and properties of the detected pairs in * the ACS/HRC data C Format for file interpretation 1 format( + A17,1X,A6,1X,A5,1X,F8.2,1X,F6.3,1X,F5.3,1X,F6.2,1X,F4.2,1X, + F4.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,15 read(1,'(A74)')ar__ read(ar__,1) + Name(i__),Filt(i__),m_Name(i__),MJD(i__),Sep(i__),e_Sep(i__), + PA(i__),e_PA(i__),dmag(i__),e_dmag(i__) c ..............Just test output........... write(6,1) + Name(i__),Filt(i__),m_Name(i__),MJD(i__),Sep(i__),e_Sep(i__), + PA(i__),e_PA(i__),dmag(i__),e_dmag(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! List and properties of the detected pairs in * the AstraLux data C Format for file interpretation 2 format( + A17,1X,A10,1X,A5,1X,F8.2,1X,F6.3,1X,F5.3,1X,F6.2,1X,F4.2,1X, + A1,1X,A1,1X,F5.2,1X,F5.2,1X,F4.2,1X,A1,1X,F5.2,1X,A1,1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,142 read(1,'(A105)')ar__1 read(ar__1,2) + Name_1(i__),WDS(i__),m_WDS(i__),MJD_1(i__),Sep_1(i__), + e_Sep_1(i__),PA_1(i__),e_PA_1(i__),f_WDS(i__),u_dVT(i__), + dVT(i__),dz(i__),e_dz(i__),u_dH(i__),dH(i__),u_dK(i__),dK(i__) if (idig(ar__1(74:78)).EQ.0) dVT(i__) = rNULL__ if (idig(ar__1(93:97)).EQ.0) dH(i__) = rNULL__ if (idig(ar__1(101:105)).EQ.0) dK(i__) = rNULL__ c ..............Just test output........... write(6,2) + Name_1(i__),WDS(i__),m_WDS(i__),MJD_1(i__),Sep_1(i__), + e_Sep_1(i__),PA_1(i__),e_PA_1(i__),f_WDS(i__),u_dVT(i__), + dVT(i__),dz(i__),e_dz(i__),u_dH(i__),dH(i__),u_dK(i__),dK(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end C Locate position of first digit in string; or return 0 integer function idig(c) character*(*) c character*1 c1 integer lc,i lc=len(c) idig=0 do i=1,lc if(c(i:i).ne.' ') go to 1 end do 1 if(i.gt.lc) return c1=c(i:i) if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1 if(i.gt.lc) return c1=c(i:i) if(c1.ge.'0'.and.c1.le.'9') idig=i return end