Conversion of standardized ReadMe file for
file /./ftp/cats/I/10 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-May-18
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/10 General Catalogue of Stellar Trigonometric Parallaxes (Jenkins 1952-1963)
*================================================================================
*General Catalogue of Stellar Trigonometric Parallaxes
* Jenkins L.F.
* <Yale University Observatory (1952,1963)>
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'catalog.dat' ! Absolute trigonometric parallaxes for 6398 stars
integer*4 nr__
parameter (nr__=7330) ! Number of records
character*66 ar__ ! Full-size record
C B1900 position composed of: RAh RAm DE- DEd DEm
real*8 RAdeg (nr__) ! (deg) Right Ascension B1900
real*8 DEdeg (nr__) ! (deg) Declination B1900
C ---------------------------------- ! (position vector(s) in degrees)
real*4 GCTP (nr__) ! Star number (1)
character*1 n_GCTP (nr__) ! [01234S] Multiple or supplement (2)
integer*4 DM (nr__) ! ? Durchmusterung (BD, CD, CPD) designation
integer*4 RAh (nr__) ! (h) Right Ascension B1900 (hours)
real*4 RAm (nr__) ! (min) Right Ascension B1900 (minutes)
character*1 DE_ (nr__) ! Declination B1900 (sign)
integer*4 DEd (nr__) ! (deg) Declination B1900 (degrees)
integer*4 DEm (nr__) ! (arcmin) Declination B1900 (minutes)
real*4 mag (nr__) ! (mag) ? Magnitude (visual ou photographic, see n_mag)
character*1 n_mag (nr__) ! [PV*] Photographic or Visual magnitude (3)
character*3 Sp (nr__) ! Spectral type
integer*4 HD (nr__) ! ? HD number (Cat. III/135)
character*9 Oname (nr__) ! Other name
integer*4 pmRA (nr__) ! (mas/yr) ? Proper motion in RA (*cos(Dec))
integer*4 pmDE (nr__) ! (mas/yr) ? Proper motion in Declination
integer*4 plx (nr__) ! (mas) ? Absolute trigonometric parallax
integer*4 e_plx (nr__) ! (mas) ? Probable error on plx
*Note (1): Numbers with a non-zero fraction like 16.1 were assigned to stars
* added in the 1963 supplement; the numbers ending with '.0' are stars
* from the 1952 edition.
*Note (2): The 'S' indicates data from the 1963 Supplement edition.
* Numeric values were assigned to components of multiple systems.
*Note (3): the asterisk (*) indicates variable stars; 'P' stands for
* photographic (blue), and V for visual.
C=============================================================================
C Loading file 'catalog.dat' ! Absolute trigonometric parallaxes for 6398 stars
C Format for file interpretation
1 format(
+ F6.1,A1,I8,I2,F4.1,A1,I2,I2,1X,F4.1,A1,A3,I6,A9,I5,I5,I4,I2)
C Effective file loading
open(unit=1,status='old',file=
+'catalog.dat')
write(6,*) '....Loading file: catalog.dat'
do i__=1,7330
read(1,'(A66)')ar__
read(ar__,1)
+ GCTP(i__),n_GCTP(i__),DM(i__),RAh(i__),RAm(i__),DE_(i__),
+ DEd(i__),DEm(i__),mag(i__),n_mag(i__),Sp(i__),HD(i__),
+ Oname(i__),pmRA(i__),pmDE(i__),plx(i__),e_plx(i__)
if(ar__(8:15) .EQ. '') DM(i__) = iNULL__
if(ar__(28:31) .EQ. '') mag(i__) = rNULL__
if(ar__(36:41) .EQ. '') HD(i__) = iNULL__
if(ar__(51:55) .EQ. '') pmRA(i__) = iNULL__
if(ar__(56:60) .EQ. '') pmDE(i__) = iNULL__
if(ar__(61:64) .EQ. '') plx(i__) = iNULL__
if(ar__(65:66) .EQ. '') e_plx(i__) = iNULL__
RAdeg(i__) = rNULL__
DEdeg(i__) = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,1)
+ GCTP(i__),n_GCTP(i__),DM(i__),RAh(i__),RAm(i__),DE_(i__),
+ DEd(i__),DEm(i__),mag(i__),n_mag(i__),Sp(i__),HD(i__),
+ Oname(i__),pmRA(i__),pmDE(i__),plx(i__),e_plx(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end