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-02 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/15 Photometric Measurements in the UBVr 20 System (Magnenat 1973) *================================================================================ *Catalogue of Photometric Measurements in the UBVr 20 System * Magnenat P. * <CDS Internal Report No. 6 (1973)> C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'obs.dat' ! Observations of UBVr 20 colors integer*4 nr__ parameter (nr__=418) ! Number of records character*80 ar__ ! Full-size record real*8 LID ! Coded number (see codes.txt) character*1 m_LID ! [D12] Multiplicity code (1) real*4 U_B20 ! (mag) ? (U-B)20 index real*4 B_V20 ! (mag) ? (B-V)20 index real*4 V_r20 ! (mag) (V-r)20 index character*1 n_Nobs ! Remark about Nobs (2) integer*4 Nobs ! [0/29]? Number of measurements real*8 Vmag ! (mag) ? V magnitude integer*4 ref ! [9001/9010]? Reference number (see refs.dat) *Note (1): * D = a multiple system * 1 or 2 = only one component of a binary was measured *Note (2): * / = N is unknown (1 is assumed) * * = N is a minimum number * blank = N is exact C============================================================================= C Loading file 'obs.dat' ! Observations of UBVr 20 colors C Format for file interpretation 1 format(F11.8,A1,F6.3,2X,F6.3,2X,F6.3,2X,A1,I3,2X,F7.3,26X,I5) C Effective file loading open(unit=1,status='old',file= +'II/15/obs.dat') write(6,*) '....Loading file: obs.dat' do i__=1,418 read(1,'(A80)')ar__ read(ar__,1)LID,m_LID,U_B20,B_V20,V_r20,n_Nobs,Nobs,Vmag,ref if(ar__(13:18) .EQ. '') U_B20 = rNULL__ if(ar__(21:26) .EQ. '') B_V20 = rNULL__ if(ar__(38:40) .EQ. '') Nobs = iNULL__ if(ar__(43:49) .EQ. '') Vmag = rNULL__ if(ar__(76:80) .EQ. '') ref = iNULL__ c ..............Just test output........... write(6,1)LID,m_LID,U_B20,B_V20,V_r20,n_Nobs,Nobs,Vmag,ref c .......End.of.Just test output........... end do close(1) C============================================================================= stop end