Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/602/A99 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-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/602/A99 Photometry of EXors from Asiago plates (Jurdana-Sepic+, 2017)
*================================================================================
*Investigating the past history of EXors: the cases of V1118 Orionis,
*V1143 Orionis, and NY Orionis.
* Jurdana-Sepic R., Munari U., Antoniucci S., Giannini T., Li Causi G.,
* Lorenzetti D.
* <Astron. Astrophys. 602, A99 (2017)>
* =2017A&A...602A..99J (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'stars.dat' ! List of studied stars
integer*4 nr__
parameter (nr__=3) ! Number of records
character*53 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)
character*9 Name ! Name
integer*4 RAh ! (h) Simbad Right ascension (J2000.0)
integer*4 RAm ! (min) Simbad Right ascension (J2000.0)
real*4 RAs ! (s) Simbad Right ascension (J2000.0)
character*1 DE_ ! Simbad Declination sign (J2000.0)
integer*4 DEd ! (deg) Simbad Declination (J2000.0)
integer*4 DEm ! (arcmin) Simbad Declination (J2000.0)
real*4 DEs ! (arcsec) Simbad Declination (J2000.0)
real*4 Bmag ! (mag) Simbad B band magnitude
real*4 Vmag ! (mag) Simbad V band magnitude
character*7 SpType ! Simbad MK spectral type
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! BVRI Asiago plate photometry of NY Ori,
V1143 Ori, and V1118 Ori
integer*4 nr__1
parameter (nr__1=447) ! Number of records
character*95 ar__1 ! Full-size record
real*8 HJD ! (d) Heliocentric Julian Date
character*10 Obs_date ! ("YYYY-MM-DD") Date of observation (yyyy-mm-dd)
character*5 Obs_time ! ("h:m") Central UT of the exposure (hh:mm)
character*7 Emuls ! Emulsion
character*5 Filt ! Filter
character*2 Tel ! Telescope (1)
integer*4 Plate ! Plate number
character*1 Band1 ! [BVRI] NY Ori observed band
real*4 mag1 ! (mag) ? NY Ori magnitude in Band Band1
real*4 e_mag1 ! (mag) ? NY Ori rms uncertainty on mag1
character*1 Band2 ! [BVRI] V1143 Ori observed band
character*1 l_mag2 ! [<] V1143 Ori magnitude lower limit flag
real*4 mag2 ! (mag) ? V1143 Ori magnitude in Band Band2
real*4 e_mag2 ! (mag) ? V1143 Ori rms uncertainty on mag2
character*1 Band3 ! [BVRI] V1118 Ori observed band
character*1 n_mag3 ! [*] V1118 Ori limit flag (2)
character*1 l_mag3 ! [<] V1118 Ori magnitude lower limit flag
real*4 mag3 ! (mag) ? V1118 Ori magnitude in Band Band3
real*4 e_mag3 ! (mag) ? V1118 Ori rms uncertainty on mag3
*Note (1): the following Asiago telescopes were used:
* SP = (Schmidt Piccolo): 40/50cm diameter, 100cm focal length
* SG = (Schmidt Grande): 67/92cm diameter, 208cm focal length
*Note (2): Flag as follows:
* * = indicates that it was only possible to rule out that the source was
* going through a bright outburst at the moment of the plate exposure.
C=============================================================================
C Loading file 'stars.dat' ! List of studied stars
C Format for file interpretation
1 format(
+ A9,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,1X,F5.2,
+ 1X,A7)
C Effective file loading
open(unit=1,status='old',file=
+'stars.dat')
write(6,*) '....Loading file: stars.dat'
do i__=1,3
read(1,'(A53)')ar__
read(ar__,1)Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Bmag,Vmag,SpType
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)Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Bmag,Vmag,SpType
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table1.dat' ! BVRI Asiago plate photometry of NY Ori,
* V1143 Ori, and V1118 Ori
C Format for file interpretation
2 format(
+ F13.5,1X,A10,1X,A5,1X,A7,1X,A5,1X,A2,1X,I5,1X,A1,1X,F5.2,1X,
+ F4.2,1X,A1,1X,A1,F5.2,1X,F4.2,1X,A1,1X,A1,A1,F5.2,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,447
read(1,'(A95)')ar__1
read(ar__1,2)
+ HJD,Obs_date,Obs_time,Emuls,Filt,Tel,Plate,Band1,mag1,e_mag1,
+ Band2,l_mag2,mag2,e_mag2,Band3,n_mag3,l_mag3,mag3,e_mag3
if(ar__1(57:61) .EQ. '') mag1 = rNULL__
if(ar__1(63:66) .EQ. '') e_mag1 = rNULL__
if(ar__1(71:75) .EQ. '') mag2 = rNULL__
if(ar__1(77:80) .EQ. '') e_mag2 = rNULL__
if(ar__1(86:90) .EQ. '') mag3 = rNULL__
if(ar__1(92:95) .EQ. '') e_mag3 = rNULL__
c ..............Just test output...........
write(6,2)
+ HJD,Obs_date,Obs_time,Emuls,Filt,Tel,Plate,Band1,mag1,e_mag1,
+ Band2,l_mag2,mag2,e_mag2,Band3,n_mag3,l_mag3,mag3,e_mag3
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end