Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/409/361 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-09
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+A/409/361 Extension of ICRF for selected areas down to V=16 (Camargo+, 2003)
*================================================================================
*Extension of the ICRF for selected areas down to the 16th magnitude - II.
* Camargo J.I.B., Ducourant C., Teixeira R., Le Campion J.-F., Rapaport M.,
* Benevides-Soares P.
* <Astron. Astrophys. 409, 361 (2003)>
* =2003A&A...409..361C
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'catalog.dat' ! Bordeaux and Valinhos meridian circle catalogue
integer*4 nr__
parameter (nr__=546459) ! Number of records
character*172 ar__ ! Full-size record
C Position composed of: RAh RAm RAs DE- DEd DEm DEs
integer*4 RAh ! (h) Right Ascension (hours) ICRS, epoch EpRA-1900
integer*4 RAm ! (min) Right Ascension (minutes) ICRS
real*4 RAs ! (s) Right Ascension (seconds) ICRS
character*1 DE_ ! Declination (sign) ICRS, epoch EpDE-1900
integer*4 DEd ! (deg) Declination (degrees) ICRS, epoch EpDE-1900
integer*4 DEm ! (arcmin) Declination (minutes) ICRS
real*4 DEs ! (arcsec) Declination (seconds) ICRS
integer*4 pmRA ! (mas/yr) Proper motion mu_alpha*cos(dec) ICRS
integer*4 pmDE ! (mas/yr) Proper motion mu_delta ICRS
real*4 VmagC ! (mag) V magnitude as obtained from BMC (Bordeaux)
* or VMC (Valinhos)
real*8 BTmag ! (mag) ? B magnitude as obtained from the Tycho-2
real*8 VTmag ! (mag) ? V magnitude as obtained from the Tycho-2
real*8 Jmag ! (mag) ?=-99.999 J magnitude from the 2MASS (1)
real*8 Hmag ! (mag) ?=-99.999 H magnitude from the 2MASS (1)
real*8 Kmag ! (mag) ?=-99.999 K magnitude from the 2MASS (1)
real*4 EpRA_1900 ! (yr) RA epoch minus 1900
real*4 EpDE_1900 ! (yr) DE epoch minus 1900
real*8 DT ! (yr) Largest time interval for proper motion
* determination
integer*4 e_RAs ! (mas) Standard error in RA*cos(dec) for EpRA
integer*4 e_DEs ! (mas) Standard error in DE for EpDE
integer*4 e_pmRA ! (mas/yr) Standard error in pmRA
integer*4 e_pmDE ! (mas/yr) Standard error in pmDE
integer*4 Nobs ! Number of meridian observations
integer*4 HIP ! ? HIPPARCOS (Cat. <I/239>) Catalogue number
character*12 TYC ! ? Tycho-2 number (see Note (1) in <I/259>)
character*1 f_TYC ! [*] Presence in Tycho-1 catalogue (2)
integer*4 AC2000_2 ! ? AC2000.2 (Cat. <I/275>) number
character*1 C1 ! [BV] Current epoch catalogue:
* [B]ordeaux or [V]alinhos (3)
character*1 C2 ! [A] A: use of AC2000.2 data, Cat. <I/275>
character*1 C3 ! [U] U: use of USNO-A2.0 data, Cat. <I/252>
character*1 C4 ! [P] P: use of PPM data,
* PPM North <I/146>, PPN South <I/1993>
character*1 C5 ! [T] T: use of TAC-2 data, Zacharias &
* Zacharias, 1999AJ....118.2503Z
character*1 C6 ! [C] C: use of CPC-2 data, Cat. <I/265>
character*1 C7 ! [E] ESO plate measurements (4)
*Note (1): 2MASS 2nd Incremental Data Release
*Note (2): Presence in Tycho-1 catalogue:
* '*' = Object not present in Tycho-1 catalogue (Cat. <I/239>)
* ' ' = Object present in Tycho-1 catalogue
*Note (3): Example:
* The character sequence "V U E" indicates that proper motion and mean
* position for a given star was obtained from the Valinhos meridian
* circle, USNO-A2.0 and ESO plates
*Note (4): Measured with the MAMA measuring machine
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Approximate central coordinates of the meridian
strips
integer*4 nr__1
parameter (nr__1=242) ! Number of records
character*81 ar__1 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension J2000
real*8 DEdeg ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*1 Zone ! [VB] V: Valinhos zones, B: Bordeaux zones
character*21 TARG ! ICRF name or other identifier of the target object
integer*4 Nobj ! Total number of selected objects in the region: 3 or
* more observations in each coordinate with
* {sigma}RA*cos(DE) and {sigma}DE<=250mas
integer*4 DaCd ! (mas) Mean, in units of milliarcseconds in RA*cos(DE),
* for the positional precision in RA of the objects
* computed in the column (Nobj)
integer*4 Dd ! (mas) Mean, in units of milliarcseconds, for the
* positional precision in DE for the objects computed
* in the column (Nobj)
integer*4 RAh_1 ! (h) Approximate strip central right ascension (J2000) (5)
integer*4 RAm_1 ! (min) Approximate strip central right ascension (J2000) (5)
real*4 RAs_1 ! (s) Approximate strip central right ascension (J2000) (5)
character*1 DE__1 ! Approximate strip central declination (J2000) (5)
integer*4 DEd_1 ! (deg) Approximate strip central declination (J2000) (5)
integer*4 DEm_1 ! (arcmin) Approximate strip central declination (J2000) (5)
integer*4 DEs_1 ! (arcsec) Approximate strip central declination (J2000) (5)
real*4 Vmag ! (mag) ? V magnitude as given in the ICRF (Cat. <I/251>)
integer*4 Nobs_1 ! ? Number of observations of the target region
*Note (5): Zones dimensions are typically 28' in declination and 80min in
* right ascension to the Bordeaux meridian circle strips and 13' in
* declination and 40min in right ascension to the Valinhos meridian
* circle strips.
C=============================================================================
C Loading file 'catalog.dat' ! Bordeaux and Valinhos meridian circle catalogue
C Format for file interpretation
1 format(
+ I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,I4,1X,I4,2X,F5.2,
+ 2X,F7.3,F7.3,1X,F7.3,1X,F7.3,1X,F7.3,4X,F6.3,3X,F6.3,2X,F7.3,
+ 3X,I2,2X,I2,1X,I2,1X,I2,4X,I2,2X,I6,1X,A12,A1,4X,I7,1X,A1,A1,
+ A1,A1,A1,A1,A1)
C Effective file loading
open(unit=1,status='old',file=
+'catalog.dat')
write(6,*) '....Loading file: catalog.dat'
do i__=1,546459
read(1,'(A172)')ar__
read(ar__,1)
+ RAh,RAm,RAs,DE_,DEd,DEm,DEs,pmRA,pmDE,VmagC,BTmag,VTmag,Jmag,
+ Hmag,Kmag,EpRA_1900,EpDE_1900,DT,e_RAs,e_DEs,e_pmRA,e_pmDE,
+ Nobs,HIP,TYC,f_TYC,AC2000_2,C1,C2,C3,C4,C5,C6,C7
if(ar__(45:51) .EQ. '') BTmag = rNULL__
if(ar__(52:58) .EQ. '') VTmag = rNULL__
if(ar__(134:139) .EQ. '') HIP = iNULL__
if(ar__(158:164) .EQ. '') AC2000_2 = iNULL__
c ..............Just test output...........
write(6,1)
+ RAh,RAm,RAs,DE_,DEd,DEm,DEs,pmRA,pmDE,VmagC,BTmag,VTmag,Jmag,
+ Hmag,Kmag,EpRA_1900,EpDE_1900,DT,e_RAs,e_DEs,e_pmRA,e_pmDE,
+ Nobs,HIP,TYC,f_TYC,AC2000_2,C1,C2,C3,C4,C5,C6,C7
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table1.dat' ! Approximate central coordinates of the meridian
* strips
C Format for file interpretation
2 format(
+ A1,1X,A21,4X,I5,3X,I3,1X,I3,3X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,
+ I2,1X,I2,6X,F4.1,3X,I2)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,242
read(1,'(A81)')ar__1
read(ar__1,2)
+ Zone,TARG,Nobj,DaCd,Dd,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,
+ DEs_1,Vmag,Nobs_1
if(ar__1(72:75) .EQ. '') Vmag = rNULL__
if(ar__1(79:80) .EQ. '') Nobs_1 = 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_1 .GT. -180) RAdeg=RAh_1*15.
if(RAm_1 .GT. -180) RAdeg=RAdeg+RAm_1/4.
if(RAs_1 .GT. -180) RAdeg=RAdeg+RAs_1/240.
if(DEd_1 .GE. 0) DEdeg=DEd_1
if(DEm_1 .GE. 0) DEdeg=DEdeg+DEm_1/60.
if(DEs_1 .GE. 0) DEdeg=DEdeg+DEs_1/3600.
if(DE__1.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c ..............Just test output...........
write(6,2)
+ Zone,TARG,Nobj,DaCd,Dd,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,
+ DEs_1,Vmag,Nobs_1
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end