Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJS/120/265 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-19 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/ApJS/120/265 HST photometry of M4 (Ibata+, 1999) *================================================================================ *Hubble Space Telescope photometry of the globular cluster M4. * Ibata R.A., Richer H.B., Fahlman G.G., Bolte M., Bond H.E., Hesser J.E., * Pryor C., Stetson P.B. * <Astrophys. J. Suppl. Ser. 120, 265 (1999)> * =1999ApJS..120..265I C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table5.dat' ! The photometry integer*4 nr__ parameter (nr__=4708) ! Number of records character*126 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg integer*4 IRF (nr__) ! Identification number (Cl* NGC 61621 IRF NNNN) character*1 Field (nr__) ! [016] Field number (1) integer*4 Chip (nr__) ! [1/4] Chip number (2) integer*4 Class (nr__) ! [0] Visual classification (3) real*4 xpos (nr__) ! (pix) x position (4) real*4 ypos (nr__) ! (pix) y position (4) real*8 RAdeg (nr__) ! (deg) Right ascension (J2000) real*8 DEdeg (nr__) ! (deg) Declination (J2000) real*8 F336W (nr__) ! (mag) ?=999.990 F336W magnitude real*8 Umag (nr__) ! (mag) ?=999.990 U magnitude real*4 e_Umag (nr__) ! (mag) ?=99.990 rms uncertainty on Umag real*4 v2_Umag (nr__) ! ?=99.990 {chi}-value associated to Umag real*4 F555W (nr__) ! (mag) F555W magnitude real*4 Vmag (nr__) ! (mag) Johnson V magnitude real*4 e_Vmag (nr__) ! (mag) rms uncertainty on Vmag real*4 v2_Vmag (nr__) ! {chi}-value associated to Vmag real*4 F814W (nr__) ! (mag) F814W magnitude real*4 Imag (nr__) ! (mag) Kron-Cousins I magnitude real*4 e_Imag (nr__) ! (mag) rms uncertainty on Imag real*4 v2_Imag (nr__) ! {chi}-value associated to Imag *Note (1): the fields are: * 0: first field centered at 16h 23min 20s, -26{deg} 31' 30" (J2000), * approximately at the center of M4; * 1: second field centered at 16h 23min 42s, -26{deg} 30' 48" (J2000), * about one core radius (=50.1") * 6: third field centered at 16h 23min 56s, -26{deg} 32' 27" (J2000), * approximately six core radii from the center. *Note (2): 1: PC chip; 2: WF1 chip; 3: WF2 chip; 4: WF3 chip *Note (3): 0: the object is "clearly a star" * 1: undecided *Note (4): Pixel position of the object in the coordinate system of the * first-observed F814W frame in that field C============================================================================= C Loading file 'table5.dat' ! The photometry C Format for file interpretation 1 format( + I4,1X,A1,1X,I1,1X,I1,1X,F6.2,1X,F6.2,1X,F9.5,1X,F9.5,1X,F7.3, + 1X,F7.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X, + F6.3,1X,F6.3,1X,F5.3,1X,F5.3) C Effective file loading open(unit=1,status='old',file= +'table5.dat') write(6,*) '....Loading file: table5.dat' do i__=1,4708 read(1,'(A126)')ar__ read(ar__,1) + IRF(i__),Field(i__),Chip(i__),Class(i__),xpos(i__),ypos(i__), + RAdeg(i__),DEdeg(i__),F336W(i__),Umag(i__),e_Umag(i__), + v2_Umag(i__),F555W(i__),Vmag(i__),e_Vmag(i__),v2_Vmag(i__), + F814W(i__),Imag(i__),e_Imag(i__),v2_Imag(i__) c ..............Just test output........... write(6,1) + IRF(i__),Field(i__),Chip(i__),Class(i__),xpos(i__),ypos(i__), + RAdeg(i__),DEdeg(i__),F336W(i__),Umag(i__),e_Umag(i__), + v2_Umag(i__),F555W(i__),Vmag(i__),e_Vmag(i__),v2_Vmag(i__), + F814W(i__),Imag(i__),e_Imag(i__),v2_Imag(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end