Conversion of standardized ReadMe file for
file /./ftp/cats/VII/20 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 2024-Mar-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. VII/20 Catalogue of HII Regions (Sharpless 1959) *================================================================================ *Catalogue of HII Regions * Sharpless S. * <Astrophys. J. Suppl. Ser. 4, 257 (1959)> * =1959ApJS....4..257S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'catalog.dat' ! The Sharpless (Sh 2) Catalogue integer*4 nr__ parameter (nr__=313) ! Number of records character*57 ar__ ! Full-size record C 1900.0 position composed of: RAh RAm RAds DE- DEd DEm DEs real*8 RAdeg ! (deg) Right Ascension 1900.0 real*8 DEdeg ! (deg) Declination 1900.0 C ---------------------------------- ! (position vector(s) in degrees) integer*4 Sh2 ! [1/313]+ Sharpless HII catalog number integer*4 GlLund ! (0.1deg) [0/3600[ Galactic longitude based on * Lund pole integer*4 GbLund ! (0.1deg) [-900/+900] Galactic latitude based on * Lund pole integer*4 GLon ! (0.1deg) [0/3600[ Galactic longitude (1) integer*4 GLat ! (0.1deg) [-900/+900] Galactic latitude (1) integer*4 RAh ! (h) Hours RA, 1900.0 integer*4 RAm ! (min) Minutes RA, 1900.0 integer*4 RAds ! (0.1s) Deci-seconds RA, 1900.0 character*1 DE_ ! Sign Dec, 1900.0 integer*4 DEd ! (deg) Degrees Dec, 1900.0 integer*4 DEm ! (arcmin) Minutes Dec, 1900.0 integer*4 DEs ! (arcsec) Seconds Dec, 1900.0 integer*4 RA1950h ! (h) Right Ascension (hours) 1950 (1) integer*4 RA1950m ! (min) Right Ascension (minutes) 1950 (1) integer*4 RA1950ds ! (0.1s) Right Ascension (deci-seconds) 1950 (1) character*1 DE1950_ ! Declination (sign) 1950 (1) integer*4 DE1950d ! (deg) Declination (degrees) 1950 (1) integer*4 DE1950m ! (arcmin) Declination (minutes) 1950 (1) integer*4 DE1950s ! (arcsec) Declination (seconds) 1950 (1) integer*4 Diam ! (arcmin) Maximun angular diameter of H II region integer*4 Form ! [1/3] Classification as to form: * 1=circular; 2=elliptical; 3=irregular integer*4 Struct ! [1/3] Classification as to structure, * from 1=amorphous to 3=filamentary integer*4 Bright ! [1/3] Classification as to brightness, * from 1=faintest to 3=brightest integer*4 Stars ! Number of associated stars with the * H II region *Note (1): Not in the original publication C============================================================================= C Loading file 'catalog.dat' ! The Sharpless (Sh 2) Catalogue C Format for file interpretation 1 format( + I4,I4,I4,I4,I4,I2,I2,I3,A1,I2,I2,I2,I2,I2,I3,A1,I2,I2,I2,I4, + I1,I1,I1,I2) C Effective file loading open(unit=1,status='old',file= +'catalog.dat') write(6,*) '....Loading file: catalog.dat' do i__=1,313 read(1,'(A57)')ar__ read(ar__,1) + Sh2,GlLund,GbLund,GLon,GLat,RAh,RAm,RAds,DE_,DEd,DEm,DEs, + RA1950h,RA1950m,RA1950ds,DE1950_,DE1950d,DE1950m,DE1950s,Diam, + Form,Struct,Bright,Stars 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(RAds .GT. -180) RAdeg=RAdeg+RAds/2400. 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) + Sh2,GlLund,GbLund,GLon,GLat,RAh,RAm,RAds,DE_,DEd,DEm,DEs, + RA1950h,RA1950m,RA1950ds,DE1950_,DE1950d,DE1950m,DE1950s,Diam, + Form,Struct,Bright,Stars write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= stop end