CDS.headStuff2
FORTRAN Generation
Conversion of standardized ReadMe file for
catalog 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-May-01 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. II/18 Photometric Measurements, Eggen (102,65,62) System (Magnenat 1974) *================================================================================ *Catalogue des Mesures Photometriques dans le Systeme (102, 65, 62) de Eggen: *Catalogue of Individual Measures; Catalogue of Averages * Magnenat P. * <CDS Internal Report No. 7 (1974)> C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'obs.dat' ! Observations integer*4 nr__ parameter (nr__=722) ! Number of records character*80 ar__ ! Full-size record real*8 LID ! LID coded number (see codes.dat) character*1 m_LID ! [D12] Multiplicity code: D=double, * 1=primary, 2=secondary real*4 v_102 ! (mag) m(102) magnitude (3) real*4 v_65_62 ! (mag) ? (65, 62) color index = m(62) - m(65). (3) real*8 v_102_65 ! (mag) (102, 65) color index = m(102) - m(65). (3) character*1 n_N ! [*/S] Remark about N (1) integer*4 N ! [0/15]? Number of measurements integer*4 ref ! [1/4]? ?Bibliographical reference (2) *Note (1): * * = N is a minimum number * / = N is unknown (1 is assumed) * S = a standard star *Note (2): References: * 1 = Eggen O.J. 1967, Astrophys. J. Suppl. Ser., 14, 307. ( * Narrow- and Broad-Band Photometry of Red Stars. I. Northern Giants. * (1967ApJS...14..307E) * 3 = Eggen O.J. 1968, Astrophys. J. Suppl. Ser., 16, 49. * Narrow- and Broad-Band Photometry of Red Stars. II. Dwarfs. * (1968ApJS...16...49E) * 4 = Eggen O.J., AND STOKES N.R. 1970, Astrophys. J., 161, 199. * Narrow- and Broad-Band Photometry of Red Stars. III. Southern Giants. * (1970ApJ...161..199E) *Note (3): the system consists of 3 filters: * 102: {lambda}_c_=1018.5nm, FWHM=30.2nm * 62: {lambda}_c_=623.5nm, FWHM=26.6nm * 65: {lambda}_c_=650.5nm, FWHM=2702nm C============================================================================= C Loading file 'obs.dat' ! Observations C Format for file interpretation 1 format(F11.8,A1,1X,F6.3,2X,F6.3,1X,F7.3,1X,A1,I3,37X,I3) C Effective file loading open(unit=1,status='old',file= +'II/18/obs.dat') write(6,*) '....Loading file: obs.dat' do i__=1,722 read(1,'(A80)')ar__ read(ar__,1)LID,m_LID,v_102,v_65_62,v_102_65,n_N,N,ref if(ar__(22:27) .EQ. '') v_65_62 = rNULL__ if(ar__(38:40) .EQ. '') N = iNULL__ if(ar__(78:80) .EQ. '') ref = iNULL__ c ..............Just test output........... write(6,1)LID,m_LID,v_102,v_65_62,v_102_65,n_N,N,ref c .......End.of.Just test output........... end do close(1) C============================================================================= stop end