FORTRAN Generation
(/./ftp/cats/J/A_A/584/A92)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/584/A92 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 2026-May-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/A+A/584/A92   Galactic Cold Cores. IV. Cold sub-mm sources (Montillaud+, 2015)
*================================================================================
*Galactic Cold Cores.
*IV. Cold sub-millimetre sources: catalogue and statistical analysis.
*    Montillaud J., Juvela M., Rivera-Ingraham A., Malinen J., Pelkonen V.-M.,
*    Ristorcelli I., Montier L., Marshall D.J., Marton G., Pagani L., Toth L.V.,
*    Zahorecz S., Ysard N., McGehee P., Paladini R., Falgarone E.,
*    Bernard J.-P., Motte F., Zavagno A., Doi Y.
*    <Astron. Astrophys. 584, A92 (2015)>
*    =2015A&A...584A..92M        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table1.dat'	! General properties of Herschel fields

      integer*4 nr__
      parameter (nr__=116)	! Number of records
      character*265 ar__   	! Full-size record

      character*13  Field      (nr__) ! Field name
      real*4        Dist       (nr__) ! (kpc) ?=- Adopted distance
      real*4        E_Dist     (nr__) ! (kpc) ? Error on Dist (upper value)
      real*4        e_Dist_1   (nr__) ! (kpc) ? Error on Dist (lower value)
      character*1   Flag       (nr__) ! [0/2] Reliability flag on Dist (1)
      real*4        RG         (nr__) ! (kpc) ?=- Galactic radius (galactocentric distance)
      integer*4     AltG       (nr__) ! (pc) ?=- Galactic altitude
      real*4        T0_1       (nr__) ! (K) 0.1th percentile dust temperature in the field
      real*4        T90        (nr__) ! (K) 90th percentile dust temperature in the field
      real*4        Nh2        (nr__) ! (cm-2) Median H_2_ column index in the field
      real*4        Mass       (nr__) ! (Msun) ?=- Total mass in the field
      real*4        C90        (nr__) ! (Msun) ?=- Mass at 90% completeness
      real*4        C50        (nr__) ! (Msun) ?=- Mass at 90% completeness
      character*176 Assoc      (nr__) ! Associated clouds and masers (2)
*Note (1): Reliability flag as follows:
*     0 = weak
*     1 = medium
*     2 = high level of confidence
*Note (2): the names of clouds from the LDN, MBM and TGU catalogues that lie
*  within 1.5 degrees of the field, in order of increasing distance from the
*  centre of the field. Known masers are also reported. We added horizontal lines
*  to mark the 90, 180 and 270 values of galactic longitude.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'gccscat.dat'	! The GCC source catalogue

      integer*4 nr__1
      parameter (nr__1=4466)	! Number of records
      character*571 ar__1  	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      integer*4     ID         (nr__1) ! Source number in this catalogue
      character*13  Field_1    (nr__1) ! Name of the Herschel field where sources 
*                                     were extracted (GLLL.l+BB.bb)
      real*4        Dist_1     (nr__1) ! (kpc) Adopted distance
      real*4        E_Dist_2   (nr__1) ! (kpc) Upper distance uncertainty
      real*4        e_Dist_3   (nr__1) ! (kpc) Lower distance uncertainty
      character*1   Dflag      (nr__1) ! [0/2] Distance quality flag (1)
      real*8        RAdeg      (nr__1) ! (deg) Right ascension (J2000)
      real*8        DEdeg      (nr__1) ! (deg) Declination (J2000)
      real*8        GLON       (nr__1) ! (deg) Galactic longitude
      real*8        GLAT       (nr__1) ! (deg) Galactic latitude
      real*4        SIGGLO     (nr__1) ! Global significance of the source
*                                     extraction (2)
      character*1   FG         (nr__1) ! [0/3] getsources quality flag (2)(3)
      real*4        GOOD       (nr__1) ! Goodness of the extraction (2)
      real*4        SIGMONO1   (nr__1) ! Monochromatic significance of the source
*                                     extraction at 160 microns (2)
      integer*4     FM1        (nr__1) ! ? Monochromatic quality flag for the source
*                                     extraction at 160um (2) (4)
      real*4        FXPBEST1   (nr__1) ! (Jy/beam) ?=0 Peak flux value in the source at 160um
*                                     (Jansky/beam) (2) (5)
      real*4        e_FXPBEST1 (nr__1) ! (Jy/beam) ?=0 Uncertainty on the peak flux value in
*                                     the source at 160um (Jansky/beam) (2) (5)
      real*4        FXTBEST1   (nr__1) ! (Jy) ?=0 Total flux value in the source 
*                                     at 160um (2)
      real*4        e_FXTBEST1 (nr__1) ! (Jy) ?=0 Uncertainty on the total flux value in 
*                                     the source at 160um (2)
      real*4        AFWHM1     (nr__1) ! (arcsec) FWHM of the source major axis at 160um (2)
      real*4        BFWHM1     (nr__1) ! (arcsec) FWHM of the source minor axis at 160um (2)
      real*4        PA1        (nr__1) ! (deg) Position angle of the source major axis at
*                                     160um (2) (6)
      real*4        SIGMONO2   (nr__1) ! Monochromatic significance of the source
*                                     extraction at 250 microns (2)
      character*1   FM2        (nr__1) ! [0/2] Monochromatic quality flag for the
*                                   source extraction at 250um (2) (4)
      real*4        FXPBEST2   (nr__1) ! (Jy/beam) ?=0 Peak flux value in the source at 250um
*                                     (Jansky/beam) (2) (5)
      real*4        e_FXPBEST2 (nr__1) ! (Jy/beam) ?=0 Uncertainty on the peak flux value in 
*                                     the source at 250um (Jansky/beam) (2) (5)
      real*4        FXTBEST2   (nr__1) ! (Jy) ?=0 Total flux value in the source at 
*                                     250um (2)
      real*4        e_FXTBEST2 (nr__1) ! (Jy) ?=0 Uncertainty on the total flux value in 
*                                     the source at 250um (2)
      real*4        AFWHM2     (nr__1) ! (arcsec) FWHM of the source major axis at 250um (2)
      real*4        BFWHM2     (nr__1) ! (arcsec) FWHM of the source minor axis at 250um (2)
      real*4        PA2        (nr__1) ! (deg) Position angle of the source major axis 
*                                     at 250um (2) (6)
      real*4        SIGMONO3   (nr__1) ! Monochromatic significance of the source
*                                     extraction at 350 microns (2)
      character*1   FM3        (nr__1) ! [0/1] Monochromatic quality flag for the
*                                     source extraction at 350um (2) (4)
      real*4        FXPBEST3   (nr__1) ! (Jy/beam) ?=0 Peak flux value in the source at 350um
*                                     (Jansky/beam) (2) (5)
      real*4        e_FXPBEST3 (nr__1) ! (Jy/beam) ?=0 Uncertainty on the peak flux value in 
*                                     the source at 350um (Jansky/beam) (2) (5)
      real*4        FXTBEST3   (nr__1) ! (Jy) ?=0 Total flux value in the source 
*                                     at 350um (2)
      real*4        e_FXTBEST3 (nr__1) ! (Jy) ?=0 Uncertainty on the total flux value in 
*                                     the source at 350um (2)
      real*4        AFWHM3     (nr__1) ! (arcsec) FWHM of the source major axis at 350um (2)
      real*4        BFWHM3     (nr__1) ! (arcsec) FWHM of the source minor axis at 350um (2)
      real*4        PA3        (nr__1) ! (deg) Position angle of the source major axis 
*                                     at 350um (2) (6)
      real*4        SIGMONO4   (nr__1) ! Monochromatic significance of the source
*                                     extraction at 500 microns (2)
      character*1   FM4        (nr__1) ! [0/1] Monochromatic quality flag for the
*                                     source extraction at 500um (2) (4)
      real*4        FXPBEST4   (nr__1) ! (Jy/beam) ?=0 Peak flux value in the source at 500um
*                                     (Jansky/beam) (2) (5)
      real*4        e_FXPBEST4 (nr__1) ! (Jy/beam) ?=0 Uncertainty on the peak flux value in 
*                                     the source at 500um (Jansky/beam) (2) (5)
      real*4        FXTBEST4   (nr__1) ! (Jy) ?=0 Total flux value in the source 
*                                      at 500um (2)
      real*4        e_FXTBEST4 (nr__1) ! (Jy) ?=0 Uncertainty on the total flux value in 
*                                     the source at 500um (2)
      real*4        AFWHM4     (nr__1) ! (arcsec) FWHM of the source major axis at 500um (2)
      real*4        BFWHM4     (nr__1) ! (arcsec) FWHM of the source minor axis at 500um (2)
      real*4        PA4        (nr__1) ! (deg) Position angle of the source major axis at
*                                     500um (2) (6)
      real*4        SIGMONO5   (nr__1) ! Monochromatic significance of the source
*                                     extraction in the opacity map (tau_200) (2)
      character*1   FM5        (nr__1) ! [0/2] Monochromatic quality flag for the
*                                     source extraction in the opacity map
*                                     (tau_200) (2) (4)
      real*4        FXPBEST5   (nr__1) ! (beam-1) ?=0 Peak flux value in the source in the 
*                                     opacity map (tau_200) (beam-1) (2) (5)
      real*4        e_FXPBEST5 (nr__1) ! (beam-1) ?=0 Uncertainty on the peak flux value in 
*                                      the source in the opacity map (tau_200)
*                                     (beam-1) (2) (5)
      real*4        FXTBEST5   (nr__1) ! ?=0 Total flux value in the source in the 
*                                     opacity map (tau_200) (2)
      real*4        e_FXTBEST5 (nr__1) ! ?=0 Uncertainty on the total flux value in 
*                                      the source in the opacity map 
*                                      (tau_200) (2)
      real*4        AFWHM5     (nr__1) ! (arcsec) FWHM of the source major axis in the opacity
*                                     map (tau_200) (2)
      real*4        BFWHM5     (nr__1) ! (arcsec) FWHM of the source minor axis in the opacity
*                                     map (tau_200) (2)
      real*4        PA5        (nr__1) ! (deg) Position angle of the source major axis in 
*                                     the opacity map (tau_200) (2) (6)
      real*4        I200       (nr__1) ! (deg) Calculated surface brightness at 200um (7)
      real*4        Tdust      (nr__1) ! (K) Dust temperature (7)
      real*4        NH2_1      (nr__1) ! (cm-2) Column density (7)
      real*4        Lbol       (nr__1) ! (Lsun) Bolometric luminosity (7)
      real*4        Mass_1     (nr__1) ! (Msun) Source mass (7)
      real*8        Chi2       (nr__1) ! Chi2 of the SED fit (7)
      real*4        NH2bg      (nr__1) ! (cm-2) Background column density (7)
      real*8        aBE        (nr__1) ! Ratio of Bonnor-Ebert mass to estimated
*                                     mass (7)
      character*1   WKGalFlag  (nr__1) ! [0/3] Galactic/extragalactic flag using WISE
*                                     data and Koenig et al. 
*                                     (2012AAS...21932007K) method (8)
      character*1   XgalFlag   (nr__1) ! [0/1] Galactic/extragalactic flag after
*                                     combining all methods (9)
      character*1   StateNIR   (nr__1) ! [0/4] State of evolution derived from
*                                      near-IR data (10)
      character*1   Class      (nr__1) ! [0/9] Class of the embedded YSO (11)
      character*1   StateFIR   (nr__1) ! [0/2] State of evolution derived from
*                                     mid-IR data (12)
      character*1   State      (nr__1) ! [0/4] Final state of evolution (13)
*Note (1): Distance quality flag as follows:
*     0 = unreliable
*     1 = reliable estimate from only one method. Needs to be compared with an
*          independent method
*     2 = reliable estimates from several independent methods
*Note (2): getsources output are described in Men'shchikov et al.,
*     2012A&A...542A..81M.
*Note (3): We report here the definition given in the output file of getsources,
*     FG: Flag identifying global properties over all wavelengths, as follows:
*     0 = isolated source (not blended with any other source in any waveband)
*     1 = blended source (footprints intersect by more than 20% in at least
*          one waveband)
*     2 = sub-structured source (the inner 25% area of its footprint contains
*          an entire footprint of at least one source)
*     3 = sub-structuring source (causing a larger source to be flagged as
*          sub-structured)
*Note (4): We report here the definition given in the output file of getsources,
*     FM: Flag identifying monochromatic properties, as follows:
*     0 = no problems identified for the source at this wavelength
*     1 = substantially larger than its characteristic size:
*          AFWHMN>sqrt(2)*SCALEN
*     2 = larger than the desired maximum of [93 120 163 202 184] arcsec:
*          AFWHMN>sqrt(2)*max(SRCMAXSIZEN,APERTUREN)
*     3 = larger than both the characteristic size and the desired
*         maximum size or aperture
*     10 = peak intensity is not measurable: FXP_BESTN/FXP_ERRON<1.0
*     20 = total flux is not measurable: FXT_BESTN/FXT_ERRON<1.0
*     30 = both total flux and peak intensity are not measurable
*    100 = sub-structured (the inner 25% area of its footprint
*         contains an entire footprint of at least one source)
*    200 = significance is low: SIG_MONON<3.5
*Note (5): The beam FWHM are 38.5 arcsec for all 160, 250, 350, and 500 microns
*     maps, and 40.0 arcsec for the opacity maps.
*Note (6): East from North
*Note (7): Derived from the modified blackbody fit of the getsources total fluxes
*     FXTBEST2, FXTBEST3, FXTBEST4, with a fixed spectral index beta=2.
*Note (8): classification of galactic vs extragalactic sources using only WISE
*     data and Koenig et al. (2012AAS...21932007K)'s method (see Sect. 4.3)
*     as follows:
*      0 = galactic source
*      1 = source contaminated by galaxies
*      2 = the source is a group of galaxies
*      3 = extragalactic source
*Note (9): final classification of galactic vs extragalactic sources as follows:
*      0 = galactic source
*      1 = extragalactic source
*Note (10): classification of starless vs protostellar sources, using only WISE
*     data and Koenig et al. (2012AAS...21932007K)'s method (see Sect. 4.4.2)
*     as follows:
*      0 = irrelevant (because the source is extragalactic)
*      1 = undetermined (the method is not conclusive)
*      2 = starless
*      3 = protostellar
*      4 = protostellar, but one WISE source within the Herschel source was
*           originally classified as extragalactic (WKGalFlag>1 but XgalFlag=0)
*Note (11): Class (I or II) of the embedded YSO derived using WISE data and
*     Koenig et al. (2012AAS...21932007K)'s method.
*     Class 0 objects are also reported on the basis of WISE 22 microns and
*     AKARI 65 microns observations (Sect. 4.4.2). If several NIR objects are
*     classified in the Herschel source, or if the object is eligible to
*     several classes, the most advanced class is reported.
*      0 = Class 0
*      1 = Class I
*      2 = Class II
*      9 = undetermined or irrelevant
*Note (12): Classification of starless vs protostellar sources, using only
*      Herschel data (see Sect. 4.4.1) as follows:
*     0 = undetermined or irrelevant
*     1 = starless
*     2 = protostellar
*Note (13): Final classification of starless vs protostellar sources, combining
*      both methods as follows:
*     0 = undetermined or irrelevant
*     1 = probable starless source (flag 1 in Sect. 4.4.3)
*     2 = reliable starless source (flag 2 in Sect. 4.4.3)
*     3 = probable protostellar source (flag 1 Sect. 4.4.3)
*     4 = reliable protostellar source (flag 2 Sect. 4.4.3)

C=============================================================================

C  Loading file 'table1.dat'	! General properties of Herschel fields

C  Format for file interpretation

    1 format(
     +  A13,1X,F5.3,1X,F5.3,1X,F5.3,1X,A1,1X,F5.2,1X,I4,1X,F4.1,1X,
     +  F4.1,1X,E7.2,2X,E7.2,1X,E7.2,2X,E7.2,1X,A176)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,116
        read(1,'(A265)')ar__
        read(ar__,1)
     +  Field(i__),Dist(i__),E_Dist(i__),e_Dist_1(i__),Flag(i__),
     +  RG(i__),AltG(i__),T0_1(i__),T90(i__),Nh2(i__),Mass(i__),
     +  C90(i__),C50(i__),Assoc(i__)
        if (idig(ar__(15:19)).EQ.0) Dist(i__) =  rNULL__
        if(ar__(21:25) .EQ. '') E_Dist(i__) = rNULL__
        if(ar__(27:31) .EQ. '') e_Dist_1(i__) = rNULL__
        if (idig(ar__(35:39)).EQ.0) RG(i__) =  rNULL__
        if (AltG(i__) .EQ. 45) AltG(i__) =  iNULL__
        if (idig(ar__(65:71)).EQ.0) Mass(i__) =  rNULL__
        if (idig(ar__(73:79)).EQ.0) C90(i__) =  rNULL__
        if (idig(ar__(82:88)).EQ.0) C50(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Field(i__),Dist(i__),E_Dist(i__),e_Dist_1(i__),Flag(i__),
     +  RG(i__),AltG(i__),T0_1(i__),T90(i__),Nh2(i__),Mass(i__),
     +  C90(i__),C50(i__),Assoc(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'gccscat.dat'	! The GCC source catalogue

C  Format for file interpretation

    2 format(
     +  I4,1X,A13,1X,F5.3,1X,F5.3,1X,F5.3,1X,A1,1X,F12.8,1X,F12.8,1X,
     +  F12.8,1X,F12.8,1X,E9.3,1X,A1,1X,F4.2,1X,E9.3,1X,I3,1X,E10.3,
     +  1X,E9.3,1X,E10.3,1X,E9.3,1X,F6.2,1X,F6.2,1X,F6.2,1X,E9.3,1X,
     +  A1,1X,E9.3,1X,E9.3,1X,E9.3,1X,E9.3,1X,F6.2,1X,F6.2,1X,F6.2,1X,
     +  E9.3,1X,A1,1X,E9.3,1X,E9.3,1X,E9.3,1X,E9.3,1X,F6.2,1X,F6.2,1X,
     +  F6.2,1X,E9.3,1X,A1,1X,E9.3,1X,E9.3,1X,E9.3,1X,E9.3,1X,F6.2,1X,
     +  F6.2,1X,F6.2,1X,E9.3,1X,A1,1X,E9.3,1X,E9.3,1X,E9.3,1X,E9.3,1X,
     +  F6.2,1X,F6.2,1X,F6.2,1X,E11.5,1X,F5.2,1X,E11.5,1X,E11.5,1X,
     +  E11.5,1X,F7.5,1X,E11.5,1X,F8.2,1X,A1,1X,A1,1X,A1,1X,A1,1X,A1,
     +  1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'gccscat.dat')
      write(6,*) '....Loading file: gccscat.dat'
      do i__=1,4466
        read(1,'(A571)')ar__1
        read(ar__1,2)
     +  ID(i__),Field_1(i__),Dist_1(i__),E_Dist_2(i__),e_Dist_3(i__),
     +  Dflag(i__),RAdeg(i__),DEdeg(i__),GLON(i__),GLAT(i__),
     +  SIGGLO(i__),FG(i__),GOOD(i__),SIGMONO1(i__),FM1(i__),
     +  FXPBEST1(i__),e_FXPBEST1(i__),FXTBEST1(i__),e_FXTBEST1(i__),
     +  AFWHM1(i__),BFWHM1(i__),PA1(i__),SIGMONO2(i__),FM2(i__),
     +  FXPBEST2(i__),e_FXPBEST2(i__),FXTBEST2(i__),e_FXTBEST2(i__),
     +  AFWHM2(i__),BFWHM2(i__),PA2(i__),SIGMONO3(i__),FM3(i__),
     +  FXPBEST3(i__),e_FXPBEST3(i__),FXTBEST3(i__),e_FXTBEST3(i__),
     +  AFWHM3(i__),BFWHM3(i__),PA3(i__),SIGMONO4(i__),FM4(i__),
     +  FXPBEST4(i__),e_FXPBEST4(i__),FXTBEST4(i__),e_FXTBEST4(i__),
     +  AFWHM4(i__),BFWHM4(i__),PA4(i__),SIGMONO5(i__),FM5(i__),
     +  FXPBEST5(i__),e_FXPBEST5(i__),FXTBEST5(i__),e_FXTBEST5(i__),
     +  AFWHM5(i__),BFWHM5(i__),PA5(i__),I200(i__),Tdust(i__),
     +  NH2_1(i__),Lbol(i__),Mass_1(i__),Chi2(i__),NH2bg(i__),
     +  aBE(i__),WKGalFlag(i__),XgalFlag(i__),StateNIR(i__),
     +  Class(i__),StateFIR(i__),State(i__)
        if(ar__1(119:121) .EQ. '') FM1(i__) = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  ID(i__),Field_1(i__),Dist_1(i__),E_Dist_2(i__),e_Dist_3(i__),
     +  Dflag(i__),RAdeg(i__),DEdeg(i__),GLON(i__),GLAT(i__),
     +  SIGGLO(i__),FG(i__),GOOD(i__),SIGMONO1(i__),FM1(i__),
     +  FXPBEST1(i__),e_FXPBEST1(i__),FXTBEST1(i__),e_FXTBEST1(i__),
     +  AFWHM1(i__),BFWHM1(i__),PA1(i__),SIGMONO2(i__),FM2(i__),
     +  FXPBEST2(i__),e_FXPBEST2(i__),FXTBEST2(i__),e_FXTBEST2(i__),
     +  AFWHM2(i__),BFWHM2(i__),PA2(i__),SIGMONO3(i__),FM3(i__),
     +  FXPBEST3(i__),e_FXPBEST3(i__),FXTBEST3(i__),e_FXTBEST3(i__),
     +  AFWHM3(i__),BFWHM3(i__),PA3(i__),SIGMONO4(i__),FM4(i__),
     +  FXPBEST4(i__),e_FXPBEST4(i__),FXTBEST4(i__),e_FXTBEST4(i__),
     +  AFWHM4(i__),BFWHM4(i__),PA4(i__),SIGMONO5(i__),FM5(i__),
     +  FXPBEST5(i__),e_FXPBEST5(i__),FXTBEST5(i__),e_FXTBEST5(i__),
     +  AFWHM5(i__),BFWHM5(i__),PA5(i__),I200(i__),Tdust(i__),
     +  NH2_1(i__),Lbol(i__),Mass_1(i__),Chi2(i__),NH2bg(i__),
     +  aBE(i__),WKGalFlag(i__),XgalFlag(i__),StateNIR(i__),
     +  Class(i__),StateFIR(i__),State(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