Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/126/472 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-17 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/AJ/126/472 High proper motion stars in USNO-B (Gould, 2003) *================================================================================ *Completeness of USNO-B for high proper motion stars. * Gould A. * <Astron. J. 126, 472 (2003)> * =2003AJ....126..472G C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Binary Sample integer*4 nr__ parameter (nr__=1092) ! Number of records character*101 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg integer*4 NLTT (nr__) ! The NLTT (Cat. <I/98>) number integer*4 UCode (nr__) ! The USNO-B (Cat. <I/284>) validity code (1) real*8 RAdeg (nr__) ! (deg) Right ascension in decimal degrees (J2000) real*8 DEdeg (nr__) ! (deg) Declination in decimal degrees (J2000) real*8 pmRA (nr__) ! (arcsec/yr) The revised NLTT (Cat. <J/ApJ/582/1011>) * right ascension proper motion real*8 pmDE (nr__) ! (arcsec/yr) The revised NLTT declination proper motion real*4 pmRAU (nr__) ! (arcsec/yr) The USNO-B right ascension proper motion real*4 pmDEU (nr__) ! (arcsec/yr) The USNO-B declination proper motion real*4 Vmag (nr__) ! (mag) The revised NLTT V-band magnitude real*4 V_J (nr__) ! (mag) The revised NLTT (V-J) color integer*4 NCode (nr__) ! The revised NLTT source code (2) real*4 NSep (nr__) ! (arcsec) ? NLTT notes binary separation (3) real*4 NPA (nr__) ! (deg) ? NLTT notes binary position angle (3) real*4 rNSep (nr__) ! (arcsec) ? Revised NLTT position binary separation (3) real*4 rNPA (nr__) ! (deg) ? Revised NLTT position binary position * angle (3) *Note (1): USNO-B validity code as follows: * -1 = Not used * 0 = Not in USNO-B * 1 = Bad USNO-B proper motion with USNO-B companion * 2 = Bad USNO-B proper motion without USNO-B companion * 3 = Good USNO-B proper motion *Note (2): Revised NLTT source code as follows: * 555 = Identified in USNO-A (Cat. <I/252>) and 2MASS (Cat. <II/246>) * 576 = Identified in 2MASS (Cat. <II/246>) as an NLTT * (Cat. <J/ApJ/582/1011>) common proper motion companion to * another revised NLTT star * 566 = Identified in 2MASS (Cat. <II/246>) only based on the predicted * NLTT (Cat. <J/ApJ/582/1011>) position * 222 = Identified in Tycho-2 (Cat. <I/259>) * 121 = Identified in Hipparcos (Cat. <I/239>) and Tycho-2 (Cat. <I/259>) * 111 = Identified in Hipparcos (Cat. <I/239>) *Note (3): Revised NLTT position binary position angle of second component * relative to the first. C============================================================================= C Loading file 'table1.dat' ! Binary Sample C Format for file interpretation 1 format( + I5,1X,I2,1X,F9.5,1X,F9.5,1X,F7.4,1X,F7.4,1X,F6.3,1X,F6.3,1X, + F5.2,1X,F5.2,1X,I3,1X,F6.1,1X,F5.1,1X,F6.1,1X,F5.1) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,1092 read(1,'(A101)')ar__ read(ar__,1) + NLTT(i__),UCode(i__),RAdeg(i__),DEdeg(i__),pmRA(i__), + pmDE(i__),pmRAU(i__),pmDEU(i__),Vmag(i__),V_J(i__),NCode(i__), + NSep(i__),NPA(i__),rNSep(i__),rNPA(i__) if(ar__(76:81) .EQ. '') NSep(i__) = rNULL__ if(ar__(83:87) .EQ. '') NPA(i__) = rNULL__ if(ar__(89:94) .EQ. '') rNSep(i__) = rNULL__ if(ar__(96:100) .EQ. '') rNPA(i__) = rNULL__ c ..............Just test output........... write(6,1) + NLTT(i__),UCode(i__),RAdeg(i__),DEdeg(i__),pmRA(i__), + pmDE(i__),pmRAU(i__),pmDEU(i__),Vmag(i__),V_J(i__),NCode(i__), + NSep(i__),NPA(i__),rNSep(i__),rNPA(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end