Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/872/199 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-Aug-16
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/ApJ/872/199 Candidate spectrophotometric standard DA WDs (Calamida+, 2019)
*================================================================================
*Photometry and spectroscopy of faint candidate spectrophotometric standard DA
*white dwarfs.
* Calamida A., Matheson T., Saha A., Olszewski E., Narayan G., Claver J.,
* Shanahan C., Holberg J., Axelrod T., Bohlin R., Stubbs C.W., Deustua S.,
* Hubeny I., Mackenty J., Points S., Rest A., Sabbi E.
* <Astrophys. J., 872, 199 (2019)>
* =2019ApJ...872..199C
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! List of properties of the HST primary CALSPEC
standards and the 23 candidate spectrophotometric
standard DAWDs
integer*4 nr__
parameter (nr__=26) ! Number of records
character*138 ar__ ! 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*26 Name ! Star name
character*23 AName ! Alternative name
integer*4 RAh ! (h) Hour of right ascension (J2000) (1)
integer*4 RAm ! (min) Minute of right ascension (J2000)
real*4 RAs ! (s) Second of right ascension (J2000)
character*1 DE_ ! Sign of declination (J2000) (1)
integer*4 DEd ! (deg) Degree of declination (J2000) (1)
integer*4 DEm ! (arcmin) Arcminute of declination (J2000)
real*4 DEs ! (arcsec) Arcsecond of declination (J2000)
real*8 pmRA ! (mas/yr) [-38.5/77] Proper motion in RA (1)
real*4 e_pmRA ! (mas/yr) [0.1/1.5]? pmRA uncertainty
real*8 pmDE ! (mas/yr) [-203/14] Proper motion in DEC (1)
real*4 e_pmDE ! (mas/yr) [0.1/1]? pmDE uncertainty
character*6 SpT ! White dwarf spectral type (1)
real*4 Dist ! (pc) [51.9/1833]? Distance (1)
real*4 e_Dist ! (pc) [0.2/1248]? Dist uncertainty
integer*4 Teff ! (K) [9261/75000]? Effective temperature (2)
real*4 logg ! ([cm/s2]) [6.8/8.4]? Log of surface gravity (2)
*Note (1): Coordinates, proper motions, spectral type, and distance measurements
* are from GAIA DR2.
*Note (2): Effective temperature and surface gravity measurements are from
* the SDSS or the Villanova catalogs.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Pan-STARRS1 photometry for the candidate
spectrophotometric standard DA white dwarfs
integer*4 nr__1
parameter (nr__1=26) ! Number of records
character*105 ar__1 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_1 ! (deg) Right Ascension J2000
real*8 DEdeg_1 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*26 Name_1 ! Star name
integer*4 RAh_1 ! (h) Hour of right ascension (J2000)
integer*4 RAm_1 ! (min) Minute of right ascension (J2000)
real*4 RAs_1 ! (s) Second of right ascension (J2000)
character*1 DE__1 ! Sign of declination (J2000)
integer*4 DEd_1 ! (deg) Degree of declination (J2000)
integer*4 DEm_1 ! (arcmin) Arcminute of declination (J2000)
real*4 DEs_1 ! (arcsec) Arcsecond of declination (J2000)
real*4 gmag ! (mag) [12.8/19.9]? PS1 g-band (AB) magnitude
real*4 e_gmag ! (mag) [0.002/0.04]? gmag uncertainty
real*4 rmag ! (mag) [13.2/20.4]? PS1 r-band (AB) magnitude
real*4 e_rmag ! (mag) [0.001/0.06]? rmag uncertainty
real*4 imag ! (mag) [13.6/20.7]? PS1 i-band (AB) magnitude
real*4 e_imag ! (mag) [0.002/0.1]? imag uncertainty
real*4 zmag ! (mag) [13.9/20.9]? PS1 z-band (AB) magnitude
real*4 e_zmag ! (mag) [0.002/0.2]? zmag uncertainty
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! GAIA DR2 photometry for the candidate
spectrophotometric standard DA white dwarfs
integer*4 nr__2
parameter (nr__2=26) ! Number of records
character*92 ar__2 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_2 ! (deg) Right Ascension J2000
real*8 DEdeg_2 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*26 Name_2 ! Star name
integer*4 RAh_2 ! (h) Hour of right ascension (J2000)
integer*4 RAm_2 ! (min) Minute of right ascension (J2000)
real*4 RAs_2 ! (s) Second of right ascension (J2000)
character*1 DE__2 ! Sign of declination (J2000)
integer*4 DEd_2 ! (deg) Degree of declination (J2000)
integer*4 DEm_2 ! (arcmin) Arcminute of declination (J2000)
real*4 DEs_2 ! (arcsec) Arcsecond of declination (J2000)
real*4 Gmag_1 ! (mag) [11.7/20.1] Gaia G-band magnitude
real*4 e_Gmag_1 ! (mag) [0/0.01] Gmag uncertainty
real*4 RPmag ! (mag) [12/20.3] Gaia Rp-band magnitude
real*4 e_RPmag ! (mag) [0.001/0.2] RPmag uncertainty
real*4 BPmag ! (mag) [11.4/19.9] Gaia Rp-band magnitude
real*4 e_BPmag ! (mag) [0.005/0.2] BPmag uncertainty
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Log of the observations collected with the Wide
Field Camera 3 (WFC3) on board the Hubble Space
Telescope (HST) during cycles 20 and 22
integer*4 nr__3
parameter (nr__3=742) ! Number of records
character*114 ar__3 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_3 ! (deg) Right Ascension J2000
real*8 DEdeg_3 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 Cycle ! [20/22] HST Cycle number
character*26 Name_3 ! Stellar identifier
integer*4 PID ! [12967/13711] Program identifier (1)
character*9 Image ! Image name
integer*4 RAh_3 ! (h) Hour of Right Ascension (J2000)
integer*4 RAm_3 ! (min) Minute of Right Ascension (J2000)
real*4 RAs_3 ! (s) Second of Right Ascension (J2000)
character*1 DE__3 ! Sign of the Declination (J2000)
integer*4 DEd_3 ! (deg) Degree of Declination (J2000)
integer*4 DEm_3 ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs_3 ! (arcsec) Arcsecond of Declination (J2000)
character*5 Filter ! Filter
integer*4 Texp ! (s) [15/680] Exposure time
character*10 obs_date ! ("Y/M/D") Observation date
character*8 obs_time ! ("h:m:s") Observation time
character*15 Aper ! WFC3 aperture
*Note (1): Proposal IDs 12967 and 13711, PI: A. Saha.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! Log of the spectroscopic observations
integer*4 nr__4
parameter (nr__4=45) ! Number of records
character*108 ar__4 ! Full-size record
character*26 Name_4 ! Star name
character*13 Date ! ("Y/M/D") UT date of observation
character*1 f_Date ! [e] Flag on Date (1)
character*8 Tel ! Telescope name (2)
integer*4 laml ! (0.1nm) [3400/3520] Lower range of wavelength in {AA}
integer*4 lamu ! (0.1nm) [6360/8400] Upper range of wavelength in {AA}
integer*4 Res ! (0.1nm) [7/12] Resolution in {AA} (3)
real*4 PA ! (deg) [-153/1000] Position angle (4)
real*4 Airmass ! [1/2.1] Airmass
character*17 Std ! Flux standard (5)
real*4 Slit ! (arcsec) [1/1.5] Slit
character*9 Exp ! (s) Exposure time
*Note (1): Flag as follows:
* e = Spectra from Gemini were obtained in queue mode and thus could be
* observed over multiple nights. The UT date reported for these stars
* represents an average of the actual dates.
* Note that observations for SDSSJ081508 were separated by 10 months.
*Note (2): Telescope used to obtain given spectrum as follows:
* GEMINI-N = GMOS at the northern site for the Gemini Observatory;
* GEMINI-S = GMOS at the southern site for the Gemini Observatory;
* MMTO = Blue Channel spectrograph at the MMT Observatory.
*Note (3): Resolution of the spectrum as determined from the full-width at half
* maximum of sky lines present in the two-dimensional spectrum. This is,
* in general, an upper limit as the resolution for the stellar spectrum
* is determined by the seeing and the slit width. In many cases,
* especially with the wider slits used with GMOS, the resolution of the
* spectrum is better than this reported value.
*Note (4): The position angle of the observations. Spectra from the MMT were
* typically observed at the parallactic angle, while the Gemini data
* were not.
*Note (5): Flux standards used to calibrate the data:
* Feige34, BD+284211, Feige110 = Stone 1977ApJ...218..767S ;
* Massey+ 1988, III/116 ;
* Massey & Gronwall 1990ApJ...358..344M
* GD71 = Bohlin+ 1995AJ....110.1316B
* G191B2B = Oke 1974ApJS...27...21O & Massey+ 1988, III/116
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table9.dat' ! Photometry in the WFC3 UVIS and IR filters for the
3 HST primary CALSPEC standards and the 23
candidate standard DAWDs in the AB photometric
system
integer*4 nr__5
parameter (nr__5=81) ! Number of records
character*115 ar__5 ! Full-size record
character*10 Version ! Photometry software package
character*26 Name_5 ! Stellar identifier (1)
real*4 F275W ! (mag) [10.4/20.4]? HST/WFC3 F275W band AB magnitude
real*4 e_F275W ! (mag) [0.001/0.04]? Uncertainty in F275W
real*4 F336W ! (mag) [-0.04/20.1] HST/WFC3 F336W band AB magnitude
real*4 e_F336W ! (mag) [0.001/0.04] Uncertainty in F336W
real*4 F475W ! (mag) [-0.009/19.9] HST/WFC3 F475W band AB magnitude
real*4 e_F475W ! (mag) [0.001/0.007] Uncertainty in F475W
real*4 F625W ! (mag) [-0.02/20.2] HST/WFC3 F625W band AB magnitude
real*4 e_F625W ! (mag) [0.001/0.02] Uncertainty in F625W
real*4 F775W ! (mag) [0.009/20.6] HST/WFC3 F775W band AB magnitude
real*4 e_F775W ! (mag) [0.001/0.01] Uncertainty in F775W
real*4 F160W ! (mag) [-0.02/22] HST/WFC3 F160W band AB magnitude
real*4 e_F160W ! (mag) [0.001/0.03] Uncertainty in F160W
*Note (1): Offsets is the applied magnitude offsets between HST Cycle 20
* and Cycle 22, derived from Fig. 9.
C=============================================================================
C Loading file 'table1.dat' ! List of properties of the HST primary CALSPEC
* standards and the 23 candidate spectrophotometric
* standard DAWDs
C Format for file interpretation
1 format(
+ A26,1X,A23,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F6.3,1X,F7.3,
+ 1X,F5.3,1X,F8.3,1X,F5.3,1X,A6,1X,F6.1,1X,F6.1,1X,I5,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,26
read(1,'(A138)')ar__
read(ar__,1)
+ Name,AName,RAh,RAm,RAs,DE_,DEd,DEm,DEs,pmRA,e_pmRA,pmDE,
+ e_pmDE,SpT,Dist,e_Dist,Teff,logg
if(ar__(87:91) .EQ. '') e_pmRA = rNULL__
if(ar__(102:106) .EQ. '') e_pmDE = rNULL__
if(ar__(115:120) .EQ. '') Dist = rNULL__
if(ar__(122:127) .EQ. '') e_Dist = rNULL__
if(ar__(129:133) .EQ. '') Teff = iNULL__
if(ar__(135:138) .EQ. '') logg = rNULL__
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,AName,RAh,RAm,RAs,DE_,DEd,DEm,DEs,pmRA,e_pmRA,pmDE,
+ e_pmDE,SpT,Dist,e_Dist,Teff,logg
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Pan-STARRS1 photometry for the candidate
* spectrophotometric standard DA white dwarfs
C Format for file interpretation
2 format(
+ A26,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F6.3,1X,F6.3,1X,
+ F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,26
read(1,'(A105)')ar__1
read(ar__1,2)
+ Name_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,gmag,e_gmag,
+ rmag,e_rmag,imag,e_imag,zmag,e_zmag
if(ar__1(55:60) .EQ. '') gmag = rNULL__
if(ar__1(62:66) .EQ. '') e_gmag = rNULL__
if(ar__1(68:73) .EQ. '') rmag = rNULL__
if(ar__1(75:79) .EQ. '') e_rmag = rNULL__
if(ar__1(81:86) .EQ. '') imag = rNULL__
if(ar__1(88:92) .EQ. '') e_imag = rNULL__
if(ar__1(94:99) .EQ. '') zmag = rNULL__
if(ar__1(101:105) .EQ. '') e_zmag = rNULL__
RAdeg_1 = rNULL__
DEdeg_1 = rNULL__
c Derive coordinates RAdeg_1 and DEdeg_1 from input data
c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
if(DEd_1 .GE. 0) DEdeg_1=DEd_1
if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c ..............Just test output...........
write(6,2)
+ Name_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,gmag,e_gmag,
+ rmag,e_rmag,imag,e_imag,zmag,e_zmag
write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! GAIA DR2 photometry for the candidate
* spectrophotometric standard DA white dwarfs
C Format for file interpretation
3 format(
+ A26,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F6.3,1X,F6.3,1X,
+ F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,26
read(1,'(A92)')ar__2
read(ar__2,3)
+ Name_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,Gmag_1,
+ e_Gmag_1,RPmag,e_RPmag,BPmag,e_BPmag
RAdeg_2 = rNULL__
DEdeg_2 = rNULL__
c Derive coordinates RAdeg_2 and DEdeg_2 from input data
c (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15.
if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4.
if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240.
if(DEd_2 .GE. 0) DEdeg_2=DEd_2
if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60.
if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600.
if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2
c ..............Just test output...........
write(6,3)
+ Name_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,Gmag_1,
+ e_Gmag_1,RPmag,e_RPmag,BPmag,e_BPmag
write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! Log of the observations collected with the Wide
* Field Camera 3 (WFC3) on board the Hubble Space
* Telescope (HST) during cycles 20 and 22
C Format for file interpretation
4 format(
+ I2,1X,A26,1X,I5,1X,A9,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,
+ F4.1,1X,A5,1X,I3,1X,A10,1X,A8,1X,A15)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,742
read(1,'(A114)')ar__3
read(ar__3,4)
+ Cycle,Name_3,PID,Image,RAh_3,RAm_3,RAs_3,DE__3,DEd_3,DEm_3,
+ DEs_3,Filter,Texp,obs_date,obs_time,Aper
RAdeg_3 = rNULL__
DEdeg_3 = rNULL__
c Derive coordinates RAdeg_3 and DEdeg_3 from input data
c (RAdeg_3 and DEdeg_3 are set to rNULL__ when unknown)
if(RAh_3 .GT. -180) RAdeg_3=RAh_3*15.
if(RAm_3 .GT. -180) RAdeg_3=RAdeg_3+RAm_3/4.
if(RAs_3 .GT. -180) RAdeg_3=RAdeg_3+RAs_3/240.
if(DEd_3 .GE. 0) DEdeg_3=DEd_3
if(DEm_3 .GE. 0) DEdeg_3=DEdeg_3+DEm_3/60.
if(DEs_3 .GE. 0) DEdeg_3=DEdeg_3+DEs_3/3600.
if(DE__3.EQ.'-'.AND.DEdeg_3.GE.0) DEdeg_3=-DEdeg_3
c ..............Just test output...........
write(6,4)
+ Cycle,Name_3,PID,Image,RAh_3,RAm_3,RAs_3,DE__3,DEd_3,DEm_3,
+ DEs_3,Filter,Texp,obs_date,obs_time,Aper
write(6,'(6H Pos: 2F8.4)') RAdeg_3,DEdeg_3
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! Log of the spectroscopic observations
C Format for file interpretation
5 format(
+ A26,1X,A13,1X,A1,1X,A8,1X,I4,1X,I4,1X,I2,1X,F6.1,1X,F3.1,1X,
+ A17,1X,F4.2,1X,A9)
C Effective file loading
open(unit=1,status='old',file=
+'table5.dat')
write(6,*) '....Loading file: table5.dat'
do i__=1,45
read(1,'(A108)')ar__4
read(ar__4,5)
+ Name_4,Date,f_Date,Tel,laml,lamu,Res,PA,Airmass,Std,Slit,Exp
c ..............Just test output...........
write(6,5)
+ Name_4,Date,f_Date,Tel,laml,lamu,Res,PA,Airmass,Std,Slit,Exp
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table9.dat' ! Photometry in the WFC3 UVIS and IR filters for the
* 3 HST primary CALSPEC standards and the 23
* candidate standard DAWDs in the AB photometric
* system
C Format for file interpretation
6 format(
+ A10,1X,A26,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,
+ F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'table9.dat')
write(6,*) '....Loading file: table9.dat'
do i__=1,81
read(1,'(A115)')ar__5
read(ar__5,6)
+ Version,Name_5,F275W,e_F275W,F336W,e_F336W,F475W,e_F475W,
+ F625W,e_F625W,F775W,e_F775W,F160W,e_F160W
if(ar__5(39:44) .EQ. '') F275W = rNULL__
if(ar__5(46:50) .EQ. '') e_F275W = rNULL__
c ..............Just test output...........
write(6,6)
+ Version,Name_5,F275W,e_F275W,F336W,e_F336W,F475W,e_F475W,
+ F625W,e_F625W,F775W,e_F775W,F160W,e_F160W
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end