CDS.headStuff2
FORTRAN Generation
Conversion of standardized ReadMe file for
catalog 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-25 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/422/1023 Nearby visual double stars UBVRI photometry (Strigachev+, 2004) *================================================================================ *Multicolour CCD measurements of nearby visual double stars. II. * Strigachev A., Lampens P. * <Astron. Astrophys. 422, 1023 (2004)> * =2004A&A...422.1023S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! Astrometric results and comparison of the relative positions with the Hipparcos data integer*4 nr__ parameter (nr__=31) ! Number of records character*106 ar__ ! Full-size record integer*4 HIP (nr__) ! HIP (<I/239>) number integer*4 n_HIP (nr__) ! ? Last two digit of the second HIP number * when double real*8 Epoch (nr__) ! (yr) Epoch in Bessel year real*4 rho (nr__) ! (arcsec) Angular separation real*4 e_rho (nr__) ! (arcsec) rms uncertainty on rho real*4 theta (nr__) ! (deg) Position angle (measured from North to East) real*4 e_theta (nr__) ! (deg) rms uncertainty on theta real*4 Drho (nr__) ! (arcsec) Angular separation difference (our - HIP) character*1 n_Drho (nr__) ! [1] Note on Drho (1) real*4 Dtheta (nr__) ! (deg) Position angle difference (our - HIP) character*1 n_Dtheta (nr__) ! [1] Note on Dtheta (1) real*4 Dpos (nr__) ! (arcsec) Position difference (our - HIP) character*1 n_Dpos (nr__) ! [1] Note on Dpos (1) character*31 Rem (nr__) ! Remarks *Note (1): 1: Comparison of the position with respect to the position at * epoch 2002.318 by Mason et al., 2004, Cat. <J/AJ/127/539> c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table5.dat' ! Differential photometry integer*4 nr__1 parameter (nr__1=28) ! Number of records character*62 ar__1 ! Full-size record integer*4 HIP_1 (nr__1) ! HIP (<I/239>) number integer*4 n_HIP_1 (nr__1) ! ? Last two digit of the second HIP number * when double real*4 DVmag (nr__1) ! (mag) Magnitude difference of the components in V real*4 e_DVmag (nr__1) ! (mag) rms uncertainty on e_DVmag real*4 D_B_V (nr__1) ! (mag) ? B-V colour index difference of the components real*4 e_D_B_V (nr__1) ! (mag) ? rms uncertainty on D(B-V) real*4 D_V_R (nr__1) ! (mag) ? V-R colour index difference of the components real*4 e_D_V_R (nr__1) ! (mag) ? rms uncertainty on D(V-R) real*4 D_V_I (nr__1) ! (mag) ? V-I colour index difference of the components real*4 e_D_V_I (nr__1) ! (mag) ? rms uncertainty on D(V-I) C============================================================================= C Loading file 'table4.dat' ! Astrometric results and comparison of the * relative positions with the Hipparcos data C Format for file interpretation 1 format( + I6,1X,I2,1X,F9.4,1X,F6.3,1X,F5.3,1X,F6.2,1X,F4.2,1X,F6.3,1X, + A1,2X,F6.2,1X,A1,2X,F6.3,1X,A1,2X,A31) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,31 read(1,'(A106)')ar__ read(ar__,1) + HIP(i__),n_HIP(i__),Epoch(i__),rho(i__),e_rho(i__),theta(i__), + e_theta(i__),Drho(i__),n_Drho(i__),Dtheta(i__),n_Dtheta(i__), + Dpos(i__),n_Dpos(i__),Rem(i__) if(ar__(8:9) .EQ. '') n_HIP(i__) = iNULL__ c ..............Just test output........... write(6,1) + HIP(i__),n_HIP(i__),Epoch(i__),rho(i__),e_rho(i__),theta(i__), + e_theta(i__),Drho(i__),n_Drho(i__),Dtheta(i__),n_Dtheta(i__), + Dpos(i__),n_Dpos(i__),Rem(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table5.dat' ! Differential photometry C Format for file interpretation 2 format( + I6,1X,I2,3X,F5.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X, + F6.3,1X,F5.3) C Effective file loading open(unit=1,status='old',file= +'table5.dat') write(6,*) '....Loading file: table5.dat' do i__=1,28 read(1,'(A62)')ar__1 read(ar__1,2) + HIP_1(i__),n_HIP_1(i__),DVmag(i__),e_DVmag(i__),D_B_V(i__), + e_D_B_V(i__),D_V_R(i__),e_D_V_R(i__),D_V_I(i__),e_D_V_I(i__) if(ar__1(8:9) .EQ. '') n_HIP_1(i__) = iNULL__ if(ar__1(25:30) .EQ. '') D_B_V(i__) = rNULL__ if(ar__1(32:36) .EQ. '') e_D_B_V(i__) = rNULL__ if(ar__1(38:43) .EQ. '') D_V_R(i__) = rNULL__ if(ar__1(45:49) .EQ. '') e_D_V_R(i__) = rNULL__ if(ar__1(51:56) .EQ. '') D_V_I(i__) = rNULL__ if(ar__1(58:62) .EQ. '') e_D_V_I(i__) = rNULL__ c ..............Just test output........... write(6,2) + HIP_1(i__),n_HIP_1(i__),DVmag(i__),e_DVmag(i__),D_B_V(i__), + e_D_B_V(i__),D_V_R(i__),e_D_V_R(i__),D_V_I(i__),e_D_V_I(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end