Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/469/621 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 2024-Apr-20 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/MNRAS/469/621 VST ATLAS white dwarf candidates cat. (Gentile Fusillo+, 2017) *================================================================================ *A catalogue of white dwarf candidates in VST ATLAS. * Gentile Fusillo N.P., Raddi R., Gansicke B.T., Hermes J.J., Pala A.F., * Fuchs J.T., Chehade B., Metcalfe N., Shanks T. * <Mon. Not. R. Astron. Soc. 469, 621 (2017)> * =2017MNRAS.469..621G (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'catalog.dat' ! Catalogue of VST ATLAS white dwarfs candidates integer*4 nr__ parameter (nr__=11407) ! Number of records character*331 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg character*20 ATLAS (nr__) ! VTS-ATLAS object name * (JHHMMSS.ss+DDMMSS.ss) character*15 ATLAS_ID (nr__) ! Unique ID identifying the photometric * source in ATLAS real*8 RAdeg (nr__) ! (deg) Right ascension (J2000) real*8 DEdeg (nr__) ! (deg) Declination (J2000) real*4 Pwd (nr__) ! The probability of being a WD computed for * this object real*8 umag (nr__) ! (mag) ATLAS u band magnitude real*4 e_umag (nr__) ! (mag) ATLAS u band magnitude uncertainty real*8 gmag (nr__) ! (mag) ATLAS g band magnitude real*4 e_gmag (nr__) ! (mag) ATLAS g band magnitude uncertainty real*8 rmag (nr__) ! (mag) ATLAS r band magnitude real*4 e_rmag (nr__) ! (mag) ATLAS r band magnitude uncertainty real*8 imag (nr__) ! (mag) ATLAS i band magnitude real*4 e_imag (nr__) ! (mag) ATLAS i band magnitude uncertainty real*8 zmag (nr__) ! (mag) ATLAS z band magnitude real*4 e_zmag (nr__) ! (mag) ATLAS z band magnitude uncertainty real*8 MJD (nr__) ! Modified Julian date of ATLAS observation real*4 pmRA (nr__) ! (mas/yr) APOP proper motion in right ascension real*4 e_pmRA (nr__) ! (mas/yr) APOP proper motion in right ascension * uncertainty real*4 pmDE (nr__) ! (mas/yr) APOP proper motion in declination real*4 e_pmDE (nr__) ! (mas/yr) APOP proper motion in declination * uncertainty character*4 HClass (nr__) ! Classification of the object based on * inspection of its available spectrum character*3 SpType1 (nr__) ! Currently available primary Simbad * classifications character*12 SpType2 (nr__) ! Currently available secondary Simbad * classifications integer*8 Gaia_ID (nr__) ! ?=- Gaia DR1 source ID real*4 Gmag_1 (nr__) ! (mag) ?=- Gaia DR1 G-band mean magnitude C============================================================================= C Loading file 'catalog.dat' ! Catalogue of VST ATLAS white dwarfs candidates C Format for file interpretation 1 format( + 5X,A20,1X,A15,1X,F15.11,1X,F15.11,1X,E8.6,1X,F13.10,1X,E16.14, + 1X,F13.10,1X,E16.14,1X,F14.11,1X,E16.14,1X,F14.11,1X,E16.14, + 1X,F14.11,1X,E16.14,1X,F13.7,1X,F6.1,1X,F6.2,1X,F6.1,1X,F6.2, + 1X,A4,1X,A3,1X,A12,1X,I19,1X,F6.3) C Effective file loading open(unit=1,status='old',file= +'catalog.dat') write(6,*) '....Loading file: catalog.dat' do i__=1,11407 read(1,'(A331)')ar__ read(ar__,1) + ATLAS(i__),ATLAS_ID(i__),RAdeg(i__),DEdeg(i__),Pwd(i__), + umag(i__),e_umag(i__),gmag(i__),e_gmag(i__),rmag(i__), + e_rmag(i__),imag(i__),e_imag(i__),zmag(i__),e_zmag(i__), + MJD(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),e_pmDE(i__), + HClass(i__),SpType1(i__),SpType2(i__),Gaia_ID(i__),Gmag_1(i__) if (Gaia_ID(i__) .EQ. 45) Gaia_ID(i__) = iNULL__ if (idig(ar__(326:331)).EQ.0) Gmag_1(i__) = rNULL__ c ..............Just test output........... write(6,1) + ATLAS(i__),ATLAS_ID(i__),RAdeg(i__),DEdeg(i__),Pwd(i__), + umag(i__),e_umag(i__),gmag(i__),e_gmag(i__),rmag(i__), + e_rmag(i__),imag(i__),e_imag(i__),zmag(i__),e_zmag(i__), + MJD(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),e_pmDE(i__), + HClass(i__),SpType1(i__),SpType2(i__),Gaia_ID(i__),Gmag_1(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end C Locate position of first digit in string; or return 0 integer function idig(c) character*(*) c character*1 c1 integer lc,i lc=len(c) idig=0 do i=1,lc if(c(i:i).ne.' ') go to 1 end do 1 if(i.gt.lc) return c1=c(i:i) if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1 if(i.gt.lc) return c1=c(i:i) if(c1.ge.'0'.and.c1.le.'9') idig=i return end