Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_AS/105/429 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-Oct-07
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/A+AS/105/429 Optical position of radio stars (Carrasco+ 1994)
*================================================================================
*Optical positions of the radio stars observed with the Repsold Meridian Circle
*at Cerro Calan, National Observatory
* CARRASCO G., LOYOLA P.
* <Astron. Astrophys. Suppl. Ser. 105, 429 (1994)>
* =1994A&AS..105..429C
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1' ! Radio stars positions for the epoch of
observation and equinox J2000.0
integer*4 nr__
parameter (nr__=50) ! Number of records
character*78 ar__ ! Full-size record
C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension J2000.0
real*8 DEdeg ! (deg) Declination J2000.0
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 Seq ! Internal number
integer*4 HD ! HD designation
real*4 V ! (mag) Visual magnitude
character*3 Sp ! Spectral type
integer*4 RAh ! (h) Right ascension J2000.0
integer*4 RAm ! (min) Right ascension J2000.0
real*4 RAs ! (s) Right ascension J2000.0
integer*4 EPA ! (yr) Epoch-1900 of right ascension (x 100)
integer*4 NRA ! Number of accepted observations
* in right ascension
integer*4 e_RA ! (0.001s) rms uncertainty on right ascension
character*1 DE_ ! Declination sign
integer*4 DEd ! (deg) Declination J2000.0
integer*4 DEm ! (arcmin) Declination J2000.0
real*4 DEs ! (arcsec) Declination J2000.0
integer*4 EPD ! (yr) Epoch-1900 of declination (x 100)
integer*4 NDE ! Number of accepted observations in declination
integer*4 e_DE ! (0.01arcsec) rms uncertainty on declination
character*10 Name ! Name of the star
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2' ! Differences in alpha and delta "Cerro Calan-FK5"
integer*4 nr__1
parameter (nr__1=24) ! Number of records
character*47 ar__1 ! Full-size record
integer*4 Seq_1 ! Identification number, as in table1
integer*4 FK5 ! FK5 designation
real*4 RA ! (h) Right ascension
real*4 DE ! (deg) Declination
integer*4 DeltaRA ! (0.01arcsec) Cerro Calan-FK5 difference in alpha
integer*4 DeltaDE ! (0.01arcsec) Cerro Calan-FK5 difference in delta
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3' ! Differences in alpha and delta
"Cerro Calan-San Fernando" and
"Cerro Calan-Carlsberg"
integer*4 nr__2
parameter (nr__2=31) ! Number of records
character*56 ar__2 ! Full-size record
integer*4 Seq_2 ! Identification number, as in table1
character*11 Name_1 ! Usual name
real*4 RA_1 ! (h) Right ascension
real*4 DE_1 ! (deg) Declination
integer*4 DRAsf ! (0.01arcsec) Cerro Calan-San Fernando difference in alpha
integer*4 DRAca ! (0.01arcsec) []? Cerro Calan-Carlsberg difference in alpha
integer*4 DDEsf ! (0.01arcsec) Cerro Calan-San Fernando difference in delta
integer*4 DDEca ! (0.01arcsec) []? Cerro Calan-Carlsberg difference in delta
C=============================================================================
C Loading file 'table1' ! Radio stars positions for the epoch of
* observation and equinox J2000.0
C Format for file interpretation
1 format(
+ I2,1X,I6,1X,F3.1,1X,A3,1X,I2,1X,I2,1X,F6.3,1X,I4,1X,I2,1X,I2,
+ 2X,A1,I2,1X,I2,1X,F5.2,1X,I4,1X,I2,1X,I2,2X,A10)
C Effective file loading
open(unit=1,status='old',file=
+'table1')
write(6,*) '....Loading file: table1'
do i__=1,50
read(1,'(A78)')ar__
read(ar__,1)
+ Seq,HD,V,Sp,RAh,RAm,RAs,EPA,NRA,e_RA,DE_,DEd,DEm,DEs,EPD,NDE,
+ e_DE,Name
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)
+ Seq,HD,V,Sp,RAh,RAm,RAs,EPA,NRA,e_RA,DE_,DEd,DEm,DEs,EPD,NDE,
+ e_DE,Name
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2' ! Differences in alpha and delta "Cerro Calan-FK5"
C Format for file interpretation
2 format(I2,7X,I4,3X,F5.2,5X,F5.1,4X,I3,6X,I3)
C Effective file loading
open(unit=1,status='old',file=
+'table2')
write(6,*) '....Loading file: table2'
do i__=1,24
read(1,'(A47)')ar__1
read(ar__1,2)Seq_1,FK5,RA,DE,DeltaRA,DeltaDE
c ..............Just test output...........
write(6,2)Seq_1,FK5,RA,DE,DeltaRA,DeltaDE
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3' ! Differences in alpha and delta
* "Cerro Calan-San Fernando" and
* "Cerro Calan-Carlsberg"
C Format for file interpretation
3 format(I2,3X,A11,2X,F5.2,3X,F5.1,4X,I3,2X,I3,4X,I4,2X,I3)
C Effective file loading
open(unit=1,status='old',file=
+'table3')
write(6,*) '....Loading file: table3'
do i__=1,31
read(1,'(A56)')ar__2
read(ar__2,3)Seq_2,Name_1,RA_1,DE_1,DRAsf,DRAca,DDEsf,DDEca
if(ar__2(41:43) .EQ. '') DRAca = iNULL__
if(ar__2(54:56) .EQ. '') DDEca = iNULL__
c ..............Just test output...........
write(6,3)Seq_2,Name_1,RA_1,DE_1,DRAsf,DRAca,DDEsf,DDEca
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end