Conversion of standardized ReadMe file for
file /./ftp/cats/I/193 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 2026-Sep-12
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/193 Positions and Proper Motions - South (Bastian+ 1993)
*================================================================================
*Catalogue of Positions and Proper Motions - South
* Bastian U., Roeser S.
* <Astronomisches Rechen-Institut, Heidelberg (1993)>
* =1994yCat.1193....0B
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'ppm2.dat' ! Catalogue as an easily readable table
integer*4 nr__
parameter (nr__=197179) ! Number of records
character*131 ar__ ! Full-size record
C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs (Epoch=J2000.0,)
real*8 RAdeg ! (deg) Right Ascension J2000.0, Epoch=J2000.0,
real*8 DEdeg ! (deg) Declination J2000.0, Epoch=J2000.0,
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 PPM ! *[181732/378910]+ Designation of the star
character*9 DM ! *Durchmusterung, BD or CD
real*4 Mag ! (mag) *Magnitude, Visual if Flag5 is 'V'
character*2 Sp ! *Spectral type
integer*4 RAh ! (h) Right Ascension for the Equinox=J2000.0 and
* Epoch=J2000.0, on the system of FK5
integer*4 RAm ! (min) Right Ascension J2000 (minutes)
real*4 RAs ! (s) Right Ascension J2000 (seconds)
character*1 DE_ ! Declination J2000 (sign)
integer*4 DEd ! (deg) Declination for the equinox and epoch
* J2000.0, on the system of FK5
integer*4 DEm ! (arcmin) Declination J2000 (minutes)
real*4 DEs ! (arcsec) Declination J2000 (seconds)
real*8 pmRA ! (s/yr) *Proper motion in RA, J2000
real*4 pmDE ! (arcsec/yr) *Proper motion in DE, J2000
integer*4 Npos ! *Number of individual positions used
integer*4 e_RA ! (10mas) *Mean error of RA
integer*4 e_DE ! (10mas) *Mean error of DE
real*4 e_pmRA ! (mas/yr) *Mean error of pmRA
real*4 e_pmDE ! (mas/yr) *Mean error of pmDE
real*4 EpRA_1900 ! (yr) *Weighted mean epoch, RA and pmRA
real*4 EpDE_1900 ! (yr) *Weighted mean epoch, DE and pmDE
integer*4 SAO ! [1/258997]? SAO Designation
integer*4 HD ! [1/359083]? Henry Draper Designation
character*9 CPD ! Cape Photographic Durchmusterung Designation
character*1 Flag1 ! *'P' - problem, 'C' - comment
character*1 Flag2 ! *'D' - double star
character*1 Flag3 ! * - not used
character*1 Flag4 ! *'F' - member of FK5
character*1 Flag5 ! *'R' - remark, 'V' - V Mag (CPC-2)
*Note on PPM:
* Designation of the star in PPM South starting with No. 181732,
* see chapter 3 of the author's description file "desc.txt".
*Note on DM:
* Designation of the star in the Bonner Durchmusterung (for zones from
* -02 to -22 degrees) or in the Cordoba Durchmusterung (zones -23 to
* -89 degrees).
*Note on Mag and Sp:
* See chapter 3 of description file "desc.txt".
*Note on pmRA:
* Proper motion in right ascension for epoch and equinox J2000.0,
* on the system of FK5 given in seconds of time per Julian year.
*Note on pmDE:
* Proper motion in Declination for epoch and equinox J2000.0,
* on the system of FK5 given in seconds of arc per Julian year.
*Note on Npos:
* Number of individual published positions used for the
* derivation of the position and proper motion given.
*Note on e_RA:
* Mean error of right ascension at the mean epoch of right ascension EpRA,
* multiplied by the cosine of declination, given in units of 0.01
* seconds of arc.
*Note on e_DE:
* Mean error of declination at the mean epoch of declination EpDE, given
* in units of 0.01 seconds of arc.
*Note on e_pmRA:
* Mean error of the proper motion in right ascension, multiplied by
* the cosine of declination, given in units of 0.001 seconds of arc
* per Julian year.
*Note on e_pmDE:
* mean error of the proper motion in declination given in units of
* 0.001 seconds of arc per Julian year
*Note on EpRA-1900:
* Weighted mean epoch of the measured positions used for the
* derivation of RA and pmRA, given in years since 1900.0.
*Note on EpDE-1900:
* Weighted mean epoch of the measured positions used for the
* derivation of DE and pmDE, given in years since 1900.0.
*Note on Flag1:
* P - problem case, preferably not to be used as astrometric reference star.
* C - a critical comment is given in the List of Critical Comments.
* Not to be used as astrometric reference star.
*Note on Flag2:
* D - double star, preferably not to be used as astrometric reference star.
*Note on Flag3:
* Not used, void for consistency with PPM (north).
*Note on Flag4:
* F - member of FK5, mostly bright stars, original FK5 data are given.
*Note on Flag5:
* R - a remark is given in the List of Remarks on Individual Stars.
* V - the magnitude is a photographic V magnitude copied from CPC-2.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'ppma2.dat' ! Catalogue in format of old PPM North
integer*4 nr__1
parameter (nr__1=197179) ! Number of records
character*138 ar__1 ! Full-size record
integer*4 PPM_1 ! PPM number
real*4 Mag_1 ! (mag) Magnitude
character*2 Sp_1 ! Spectral type
character*1 Flag1_1 ! *Problem flag
real*8 RA50 ! (rad) Right ascension for Equinox=B9150 and
* Epoch=B1950, FK4 system
real*8 Dec50 ! (rad) Declination for Equinox=B9150 and
* Epoch=B1950, FK4 system
real*8 PMA50 ! (0.01rad/a) Proper motion in RA in FK4 system,
* radians/tropical century
real*8 PMD50 ! (0.01rad/a) Proper motion in DE in FK4 system,
* radians/tropical century
real*8 R_A_ ! (rad) Right ascension for Equinox=B9150 and
* Epoch=J2000, FK5 system
real*8 Dec_ ! (rad) Declination for Equinox=J2000 and
* Epoch=J2000, FK5 system
real*8 PMA ! (0.01rad/a) Proper motion in R.A. in FK5 system,
* radians/tropical century
real*8 PMD ! (0.01rad/a) Proper motion in Dec. in FK5 system,
* radians/tropical century
*Note on Flag1:
* P - problem case, preferably not to be used as astrometric
* reference star.
* C - a critical comment is given in the List of Critical Comments.
* Not to be used as astrometric reference star.
C=============================================================================
C Loading file 'ppm2.dat' ! Catalogue as an easily readable table
C Format for file interpretation
1 format(
+ 1X,I6,2X,A9,1X,F4.1,1X,A2,1X,I2,1X,I2,1X,F6.3,2X,A1,I2,1X,I2,
+ 1X,F5.2,2X,F7.4,1X,F6.3,1X,I2,1X,I2,1X,I2,1X,F4.1,1X,F4.1,1X,
+ F5.2,1X,F5.2,1X,I6,1X,I6,2X,A9,1X,A1,A1,A1,A1,A1)
C Effective file loading
open(unit=1,status='old',file=
+'ppm2.dat')
write(6,*) '....Loading file: ppm2.dat'
do i__=1,197179
read(1,'(A131)')ar__
read(ar__,1)
+ PPM,DM,Mag,Sp,RAh,RAm,RAs,DE_,DEd,DEm,DEs,pmRA,pmDE,Npos,e_RA,
+ e_DE,e_pmRA,e_pmDE,EpRA_1900,EpDE_1900,SAO,HD,CPD,Flag1,Flag2,
+ Flag3,Flag4,Flag5
if(ar__(102:107) .EQ. '') SAO = iNULL__
if(ar__(109:114) .EQ. '') HD = iNULL__
RAdeg = rNULL__
DEdeg = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh .GT. -180) RAdeg=RAh*15.
if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
if(DEd .GE. 0) DEdeg=DEd
if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c ..............Just test output...........
write(6,1)
+ PPM,DM,Mag,Sp,RAh,RAm,RAs,DE_,DEd,DEm,DEs,pmRA,pmDE,Npos,e_RA,
+ e_DE,e_pmRA,e_pmDE,EpRA_1900,EpDE_1900,SAO,HD,CPD,Flag1,Flag2,
+ Flag3,Flag4,Flag5
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'ppma2.dat' ! Catalogue in format of old PPM North
C Format for file interpretation
2 format(
+ 4X,I6,F6.1,2X,A2,1X,A1,1X,D15.8,1X,D15.8,1X,D12.5,1X,D12.5,1X,
+ D15.8,1X,D15.8,1X,D12.5,1X,D12.5)
C Effective file loading
open(unit=1,status='old',file=
+'ppma2.dat')
write(6,*) '....Loading file: ppma2.dat'
do i__=1,197179
read(1,'(A138)')ar__1
read(ar__1,2)
+ PPM_1,Mag_1,Sp_1,Flag1_1,RA50,Dec50,PMA50,PMD50,R_A_,Dec_,PMA,
+ PMD
c ..............Just test output...........
write(6,2)
+ PPM_1,Mag_1,Sp_1,Flag1_1,RA50,Dec50,PMA50,PMD50,R_A_,Dec_,PMA,
+ PMD
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end