Conversion of standardized ReadMe file for
file /./ftp/cats/I/285 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 2026-Jun-10
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. I/285 The GPM catalog (Rybka+, 1997-2001)
*================================================================================
*GPM - a catalog of absolute proper motions of stars with respect to galaxies.
* Rybka S.P., Yatsenko A.I.
* <Main Astronomical Observatory of the National Academy of Sciences,
* Kiev, Ukraine, (2001)>
* =1997KFNT...13e..70R
* +1999KFNT...15a..79R
* +2000KFNT...16a..69R
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'gpm.dat' ! The GPM Catalogue
integer*4 nr__
parameter (nr__=52805) ! Number of records
character*73 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 KSZ (nr__) ! *Region number
real*8 RAdeg (nr__) ! (deg) Right Ascension J2000 at "Epoch"
real*8 DEdeg (nr__) ! (deg) Declination J2000 at "Epoch"
integer*4 u_Pos (nr__) ! *[1]? Discrepancy flag for Positions
real*8 Epoch (nr__) ! (yr) *? Epoch of Positions
real*4 pmRA (nr__) ! (mas/yr) Absolute proper motion in RA*cos(DE)
real*4 pmDE (nr__) ! (mas/yr) Absolute proper motion in DE
real*4 Bmag (nr__) ! (mag) Blue magnitude in Johnson B band
integer*4 u_Bmag (nr__) ! *[1]? Discrepancy flag for Photometry
real*4 B_V (nr__) ! (mag) *?=-9.99 Johnson B-V colour
integer*4 TYC1 (nr__) ! *? Tycho identifier 1
integer*4 TYC2 (nr__) ! *? Tycho identifier 2
integer*4 TYC3 (nr__) ! *? Tycho identifier 3
*Note on KSZ:
* Numbers from 1 to 205 are given according to the KSZ plan,
* numbers larger than 205 are NGC numbers of the nearest
* galaxies from region center.
*Note on u_Pos :
* blank: typical quality for positions, the standard error = 250 mas
* 1 : extremely low quality for positions, the standard error may be
* larger than 18 arcseconds
*Note on Epoch:
* blank: extremely low quality for positions
*Note on u_Bmag :
* blank: typical quality for photometry, the standard error=0.22 mag
* 1 : low quality for photometry, the standard error=0.35 mag
*Note on B-V:
* B-V = -9.99 if no data
*Note on TYC1, TYC2, TYC3:
* Tyc1 is the GSC region number, Tyc2 is the running number within the
* region, Tyc3 is a component identifier (normally 1)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'region.dat' ! Index to the GPM regions
integer*4 nr__1
parameter (nr__1=185) ! Number of records
character*37 ar__1 ! Full-size record
C J2000.0 position composed of: RAdeg DEdeg
integer*4 KSZ_1 (nr__1) ! The KSZ region number
integer*4 RecNo (nr__1) ! The record number for the first star in each
* GPM region
integer*4 Nstar (nr__1) ! The number of stars in the GPM region
real*8 RAdeg_1 (nr__1) ! (deg) Region center RA (J2000.0)
real*8 DEdeg_1 (nr__1) ! (deg) Region center DE (J2000.0)
C=============================================================================
C Loading file 'gpm.dat' ! The GPM Catalogue
C Format for file interpretation
1 format(
+ I4,1X,F10.6,F10.6,1X,I1,1X,F7.2,F6.1,F6.1,1X,F4.1,1X,I1,1X,
+ F5.2,1X,I4,1X,I5,1X,I1)
C Effective file loading
open(unit=1,status='old',file=
+'gpm.dat')
write(6,*) '....Loading file: gpm.dat'
do i__=1,52805
read(1,'(A73)')ar__
read(ar__,1)
+ KSZ(i__),RAdeg(i__),DEdeg(i__),u_Pos(i__),Epoch(i__),
+ pmRA(i__),pmDE(i__),Bmag(i__),u_Bmag(i__),B_V(i__),TYC1(i__),
+ TYC2(i__),TYC3(i__)
if(ar__(27:27) .EQ. '') u_Pos(i__) = iNULL__
if(ar__(29:35) .EQ. '') Epoch(i__) = rNULL__
if(ar__(54:54) .EQ. '') u_Bmag(i__) = iNULL__
if(ar__(62:65) .EQ. '') TYC1(i__) = iNULL__
if(ar__(67:71) .EQ. '') TYC2(i__) = iNULL__
if(ar__(73:73) .EQ. '') TYC3(i__) = iNULL__
c ..............Just test output...........
write(6,1)
+ KSZ(i__),RAdeg(i__),DEdeg(i__),u_Pos(i__),Epoch(i__),
+ pmRA(i__),pmDE(i__),Bmag(i__),u_Bmag(i__),B_V(i__),TYC1(i__),
+ TYC2(i__),TYC3(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'region.dat' ! Index to the GPM regions
C Format for file interpretation
2 format(I4,1X,I5,1X,I4,1X,F10.6,F10.6)
C Effective file loading
open(unit=1,status='old',file=
+'region.dat')
write(6,*) '....Loading file: region.dat'
do i__=1,185
read(1,'(A37)')ar__1
read(ar__1,2)
+ KSZ_1(i__),RecNo(i__),Nstar(i__),RAdeg_1(i__),DEdeg_1(i__)
c ..............Just test output...........
write(6,2)
+ KSZ_1(i__),RecNo(i__),Nstar(i__),RAdeg_1(i__),DEdeg_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end