FORTRAN Generation
(/./ftp/cats/J/MNRAS/367/1478)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/367/1478 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/MNRAS/367/1478    Interstellar NaI, TiII & CaIIK obs.        (Hunter+, 2006)
*================================================================================
*Early-type stars observed in the ESO UVES Paranal Observatory Project -
*I. Interstellar NaI UV, TiII and CaII K observations.
*    Hunter I., Smoker J.V., Keenan F.P., Ledoux C., Jehin E., Cabanac R.,
*    Melo C., Bagnulo S.
*   <Mon. Not. R. Astron. Soc., 367, 1478-1514 (2006)>
*   =2006MNRAS.367.1478H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! The stellar sample and basic parameters

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

C  Position composed of: GLON GLAT
      integer*4     HD         (nr__) ! HD number
      real*4        GLON       (nr__) ! (deg) Galactic longitude
      real*4        GLAT       (nr__) ! (deg) Galactic latitude
      character*15  SpType     (nr__) ! MK spectral type
      real*4        VMAG       (nr__) ! (mag) Absolute V magnitude
      real*4        B_V        (nr__) ! (mag) B-V colour index
      real*4        E_B_V      (nr__) ! (mag) Reddening
      integer*4     Dist       (nr__) ! (pc) Distance (1)
      character*1   r_Dist     (nr__) ! [a-f] Distance reference (2)
      integer*4     z          (nr__) ! (pc) Distance above the plane
*Note (1): Distances for the majority of the stars were calculated
*     spectroscopically and errors are of the order of 25 per cent,
*     excluding systematic errors. For some objects the distance was taken
*     from the literature, references to which are given in r_Dist.
*Note (2): References as follows:
*      a = Diplas & Savage (1994, Cat. <J/ApJS/93/211>)
*      b = Fruscione et al. (1994, Cat. <J/ApJS/94/127>)
*      c = Hoekzema et al.  (1993, Cat. <J/A+AS/98/505>)
*      d = Winkler (1997MNRAS.287..481W)
*      e = Conti & Vacca (1990AJ....100..431C)
*      f = Conti et al. (1983ApJ...274..302C)

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

C  Declarations for 'table3.dat'	! Component table

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

      integer*4     HD_1       (nr__1) ! HD number
      character*2   n_HD       (nr__1) ! Note on Name (1)
      integer*4     m_HD       (nr__1) ! Component number
      real*4        vNaI1      (nr__1) ! (km/s) ?=- NaI (3302.37) LSR velocity
      real*4        e_vNaI1    (nr__1) ! (km/s) ?=- rms uncertainty on vNaI1
      real*4        bNaI1      (nr__1) ! ?=- NaI (3302.37) Gaussian velocity
*                                       dispersion parameter
      real*4        e_bNaI1    (nr__1) ! ?=- rms uncertainty on bNaI1
      character*1   l_EWNaI1   (nr__1) ! Limit flag on EWNaI1
      real*4        EWNaI1     (nr__1) ! (0.1nm) ?=- NaI (3302.37) equivalent width
      real*4        e_EWNaI1   (nr__1) ! (0.1nm) ?=- rms uncertainty on EWNaI1
      character*1   l_logNNaI1 (nr__1) ! Limit flag on logNNaI1
      real*4        logNNaI1   (nr__1) ! ([cm-2]) ?=- NaI (3302.37) column density
      real*4        e_logNNaI1 (nr__1) ! ([cm-2]) ? rms uncertainty on logNNaI1
      real*4        vNaI2      (nr__1) ! (km/s) ?=- NaI (3302.98) LSR velocity
      real*4        e_vNaI2    (nr__1) ! (km/s) ?=- rms uncertainty on vNaI2
      real*4        bNaI2      (nr__1) ! ?=- NaI (3302.98) Gaussian velocity
*                                       dispersion parameter
      real*4        e_bNaI2    (nr__1) ! ?=- rms uncertainty on bNaI2
      character*1   l_EWNaI2   (nr__1) ! Limit flag on EWNaI2
      real*4        EWNaI2     (nr__1) ! (0.1nm) ?=- NaI (3302.98) equivalent width
      real*4        e_EWNaI2   (nr__1) ! (0.1nm) ? rms uncertainty on EWNaI2
      character*1   l_logNNaI2 (nr__1) ! Limit flag on logNNaI2
      real*4        logNNaI2   (nr__1) ! ([cm-2]) ?=- NaI (3302.98) column density
      real*4        e_logNNaI2 (nr__1) ! ([cm-2]) ? rms uncertainty on logNNaI2
      real*4        vTiII      (nr__1) ! (km/s) ?=- TiII (3383.76) LSR velocity
      real*4        e_vTiII    (nr__1) ! (km/s) ?=- rms uncertainty on vTiII
      real*4        bTiII      (nr__1) ! ?=- TiII (3383.76) Gaussian velocity
*                                      dispersion parameter
      real*4        e_bTiII    (nr__1) ! ?=- rms uncertainty on bTiII
      character*1   l_EWTiII   (nr__1) ! Limit flag on EWTiII
      real*4        EWTiII     (nr__1) ! (0.1nm) ?=- TiII (3383.76) equivalent width
      real*4        e_EWTiII   (nr__1) ! (0.1nm) ? rms uncertainty on EWTiII
      character*1   l_logNTiII (nr__1) ! Limit flag on logNTiII
      real*4        logNTiII   (nr__1) ! ([cm-2]) ?=- TiII (3383.76) column density
      real*4        e_logNTiII (nr__1) ! ([cm-2]) ? rms uncertainty on logNTiII
      real*4        vCaII      (nr__1) ! (km/s) ?=- CaII (3393.66) LSR velocity
      real*4        e_vCaII    (nr__1) ! (km/s) ? rms uncertainty on vCaII
      real*4        bCaII      (nr__1) ! ?=- CaII (3393.66) Gaussian velocity
*                                      dispersion parameter
      real*4        e_bCaII    (nr__1) ! ?=- rms uncertainty on bCaII
      character*1   l_EWCaII   (nr__1) ! Limit flag on EWCaII
      real*4        EWCaII     (nr__1) ! (0.1nm) ?=- CaII (3393.66) equivalent width
      real*4        e_EWCaII   (nr__1) ! (0.1nm) ? rms uncertainty on EWCaII
      character*1   l_logNCaII (nr__1) ! Limit flag on logNCaII
      real*4        logNCaII   (nr__1) ! ([cm-2]) ?=- CaII (3393.66) column density
      real*4        e_logNCaII (nr__1) ! ([cm-2]) ? rms uncertainty on logNCaII
      real*4        Vell       (nr__1) ! (km/s) Lower value of velocity range over which
*                                    upper limits were estimated
      real*4        Velu       (nr__1) ! (km/s) Upper value of velocity range over which
*                                    upper limits were estimated
*Note (1): Notes as follows:
*      a = Poor baseline fitting at 3302{AA}. No sodium components fitted.
*      b = Stellar contamination removed in Ti and Ca.
*      c = Stellar Ca line has been fitted and removed.
*      d = Ca heavily contaminated by stellar profile, only component
*          velocities given.
*      e = Components 3-5 and 10 may be stellar.
*      f = Ti heavily contaminated by stellar profile, not fitted.
*      g = Stellar lines of unknown width.
*      h = Sodium lines are in poor agreement.
*      i = LSR velocity of star unknown.

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

C  Declarations for 'table4.dat'	! *Total column density

      integer*4 nr__2
      parameter (nr__2=74)	! Number of records
      character*130 ar__2  	! Full-size record

      integer*4     HD_2       (nr__2) ! HD number
      integer*4     S_NNaI1    (nr__2) ! NaI (3302.37) S/N
      character*1   l_logNNaI1p(nr__2) ! Limit flag on logNNaI1p
      real*4        logNNaI1p  (nr__2) ! ([cm-2]) NaI (3302.37) total column density
*                                     from table 3
      real*4        e_logNNaI1p(nr__2) ! ([cm-2]) ? rms uncertainty on logNNaI1p
      character*1   l_logNNaI1A(nr__2) ! Limit flag on logNNaI1A
      real*4        logNNaI1A  (nr__2) ! ([cm-2]) NaI (3302.37) total column density
*                                     derived by AOD method
      real*4        e_logNNaI1A(nr__2) ! ([cm-2]) ? rms uncertainty on logNNaI1A
      integer*4     S_NNaI2    (nr__2) ! NaI (3302.98) S/N
      character*1   l_logNNaI2p(nr__2) ! Limit flag on logNNaI2p
      real*4        logNNaI2p  (nr__2) ! ([cm-2]) NaI (3302.98) total column density
*                                     from table 3
      real*4        e_logNNaI2p(nr__2) ! ([cm-2]) ? rms uncertainty on logNNaI2p
      character*1   l_logNNaI2A(nr__2) ! Limit flag on logNNaI2A
      real*4        logNNaI2A  (nr__2) ! ([cm-2]) NaI (3302.98) total column density
*                                      derived by AOD method
      real*4        e_logNNaI2A(nr__2) ! ([cm-2]) ? rms uncertainty on logNNaI2A
      integer*4     S_NTiII    (nr__2) ! ?=- TiII (3383.76) S/N
      character*1   l_logNTiIIp(nr__2) ! Limit flag on logNTiIIp
      real*4        logNTiIIp  (nr__2) ! ([cm-2]) ?=- TiII (3383.76) total column density
*                                        from table 3
      real*4        e_logNTiIIp(nr__2) ! ([cm-2]) ? rms uncertainty on logNTiIIp
      character*1   l_logNTiIIA(nr__2) ! Limit flag on logNTiIIA
      real*4        logNTiIIA  (nr__2) ! ([cm-2]) ?=- TiII (3383.76) total column density
*                                        derived by AOD method
      real*4        e_logNTiIIA(nr__2) ! ([cm-2]) ? rms uncertainty on logNTiIIA
      integer*4     S_NCaII    (nr__2) ! ?=- CaII (3393.66) S/N
      real*4        logNCaIIp  (nr__2) ! ([cm-2]) ?=- CaII (3393.66) total column density
*                                        from table 3
      real*4        e_logNCaIIp(nr__2) ! ([cm-2]) ? rms uncertainty on logNCaIIp
      real*4        logNCaIIA  (nr__2) ! ([cm-2]) ?=- CaII (3393.66) total column density
*                                     derived by AOD method
      real*4        e_logNCaIIA(nr__2) ! ([cm-2]) ? rms uncertainty on logNCaIIA
      real*4        logNHI     (nr__2) ! ([cm-2]) ?=- HI total column density
      real*4        e_logNHI   (nr__2) ! ([cm-2]) ? rms uncertainty on logNHI

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

C  Loading file 'table2.dat'	! The stellar sample and basic parameters

C  Format for file interpretation

    1 format(
     +  3X,I6,2X,F6.2,1X,F6.2,2X,A15,1X,F4.2,1X,F5.2,1X,F5.2,1X,I4,A1,
     +  1X,I5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,74
        read(1,'(A70)')ar__
        read(ar__,1)
     +  HD(i__),GLON(i__),GLAT(i__),SpType(i__),VMAG(i__),B_V(i__),
     +  E_B_V(i__),Dist(i__),r_Dist(i__),z(i__)
c    ..............Just test output...........
        write(6,1)
     +  HD(i__),GLON(i__),GLAT(i__),SpType(i__),VMAG(i__),B_V(i__),
     +  E_B_V(i__),Dist(i__),r_Dist(i__),z(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Component table

C  Format for file interpretation

    2 format(
     +  3X,I6,A2,I2,1X,F6.1,1X,F3.1,1X,F4.1,1X,F4.1,2X,A1,F4.1,1X,
     +  F3.1,1X,A1,F5.2,1X,F4.2,1X,F5.1,1X,F3.1,1X,F4.1,1X,F4.1,1X,A1,
     +  F4.1,1X,F3.1,1X,A1,F5.2,1X,F4.2,1X,F6.1,1X,F4.1,1X,F4.1,1X,
     +  F4.1,1X,A1,F4.1,1X,F3.1,1X,A1,F5.2,1X,F4.2,1X,F6.1,1X,F3.1,1X,
     +  F4.1,1X,F4.1,1X,A1,F5.1,1X,F4.1,1X,A1,F5.2,1X,F4.2,1X,F6.1,1X,
     +  F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,528
        read(1,'(A201)')ar__1
        read(ar__1,2)
     +  HD_1(i__),n_HD(i__),m_HD(i__),vNaI1(i__),e_vNaI1(i__),
     +  bNaI1(i__),e_bNaI1(i__),l_EWNaI1(i__),EWNaI1(i__),
     +  e_EWNaI1(i__),l_logNNaI1(i__),logNNaI1(i__),e_logNNaI1(i__),
     +  vNaI2(i__),e_vNaI2(i__),bNaI2(i__),e_bNaI2(i__),l_EWNaI2(i__),
     +  EWNaI2(i__),e_EWNaI2(i__),l_logNNaI2(i__),logNNaI2(i__),
     +  e_logNNaI2(i__),vTiII(i__),e_vTiII(i__),bTiII(i__),
     +  e_bTiII(i__),l_EWTiII(i__),EWTiII(i__),e_EWTiII(i__),
     +  l_logNTiII(i__),logNTiII(i__),e_logNTiII(i__),vCaII(i__),
     +  e_vCaII(i__),bCaII(i__),e_bCaII(i__),l_EWCaII(i__),
     +  EWCaII(i__),e_EWCaII(i__),l_logNCaII(i__),logNCaII(i__),
     +  e_logNCaII(i__),Vell(i__),Velu(i__)
        if (idig(ar__1(15:20)).EQ.0) vNaI1(i__) =  rNULL__
        if (idig(ar__1(22:24)).EQ.0) e_vNaI1(i__) =  rNULL__
        if (idig(ar__1(26:29)).EQ.0) bNaI1(i__) =  rNULL__
        if (idig(ar__1(31:34)).EQ.0) e_bNaI1(i__) =  rNULL__
        if (idig(ar__1(38:41)).EQ.0) EWNaI1(i__) =  rNULL__
        if (idig(ar__1(43:45)).EQ.0) e_EWNaI1(i__) =  rNULL__
        if (idig(ar__1(48:52)).EQ.0) logNNaI1(i__) =  rNULL__
        if(ar__1(54:57) .EQ. '') e_logNNaI1(i__) = rNULL__
        if (idig(ar__1(59:63)).EQ.0) vNaI2(i__) =  rNULL__
        if (idig(ar__1(65:67)).EQ.0) e_vNaI2(i__) =  rNULL__
        if (idig(ar__1(69:72)).EQ.0) bNaI2(i__) =  rNULL__
        if (idig(ar__1(74:77)).EQ.0) e_bNaI2(i__) =  rNULL__
        if (idig(ar__1(80:83)).EQ.0) EWNaI2(i__) =  rNULL__
        if(ar__1(85:87) .EQ. '') e_EWNaI2(i__) = rNULL__
        if (idig(ar__1(90:94)).EQ.0) logNNaI2(i__) =  rNULL__
        if(ar__1(96:99) .EQ. '') e_logNNaI2(i__) = rNULL__
        if (idig(ar__1(101:106)).EQ.0) vTiII(i__) =  rNULL__
        if (idig(ar__1(108:111)).EQ.0) e_vTiII(i__) =  rNULL__
        if (idig(ar__1(113:116)).EQ.0) bTiII(i__) =  rNULL__
        if (idig(ar__1(118:121)).EQ.0) e_bTiII(i__) =  rNULL__
        if (idig(ar__1(124:127)).EQ.0) EWTiII(i__) =  rNULL__
        if(ar__1(129:131) .EQ. '') e_EWTiII(i__) = rNULL__
        if (idig(ar__1(134:138)).EQ.0) logNTiII(i__) =  rNULL__
        if(ar__1(140:143) .EQ. '') e_logNTiII(i__) = rNULL__
        if (idig(ar__1(145:150)).EQ.0) vCaII(i__) =  rNULL__
        if(ar__1(152:154) .EQ. '') e_vCaII(i__) = rNULL__
        if (idig(ar__1(156:159)).EQ.0) bCaII(i__) =  rNULL__
        if (idig(ar__1(161:164)).EQ.0) e_bCaII(i__) =  rNULL__
        if (idig(ar__1(167:171)).EQ.0) EWCaII(i__) =  rNULL__
        if(ar__1(173:176) .EQ. '') e_EWCaII(i__) = rNULL__
        if (idig(ar__1(179:183)).EQ.0) logNCaII(i__) =  rNULL__
        if(ar__1(185:188) .EQ. '') e_logNCaII(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  HD_1(i__),n_HD(i__),m_HD(i__),vNaI1(i__),e_vNaI1(i__),
     +  bNaI1(i__),e_bNaI1(i__),l_EWNaI1(i__),EWNaI1(i__),
     +  e_EWNaI1(i__),l_logNNaI1(i__),logNNaI1(i__),e_logNNaI1(i__),
     +  vNaI2(i__),e_vNaI2(i__),bNaI2(i__),e_bNaI2(i__),l_EWNaI2(i__),
     +  EWNaI2(i__),e_EWNaI2(i__),l_logNNaI2(i__),logNNaI2(i__),
     +  e_logNNaI2(i__),vTiII(i__),e_vTiII(i__),bTiII(i__),
     +  e_bTiII(i__),l_EWTiII(i__),EWTiII(i__),e_EWTiII(i__),
     +  l_logNTiII(i__),logNTiII(i__),e_logNTiII(i__),vCaII(i__),
     +  e_vCaII(i__),bCaII(i__),e_bCaII(i__),l_EWCaII(i__),
     +  EWCaII(i__),e_EWCaII(i__),l_logNCaII(i__),logNCaII(i__),
     +  e_logNCaII(i__),Vell(i__),Velu(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! *Total column density

C  Format for file interpretation

    3 format(
     +  3X,I6,1X,I3,1X,A1,F5.2,1X,F4.2,1X,A1,F5.2,1X,F4.2,1X,I3,1X,A1,
     +  F5.2,1X,F4.2,1X,A1,F5.2,1X,F4.2,1X,I3,1X,A1,F5.2,1X,F4.2,1X,
     +  A1,F5.2,1X,F4.2,1X,I3,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,
     +  1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,74
        read(1,'(A130)')ar__2
        read(ar__2,3)
     +  HD_2(i__),S_NNaI1(i__),l_logNNaI1p(i__),logNNaI1p(i__),
     +  e_logNNaI1p(i__),l_logNNaI1A(i__),logNNaI1A(i__),
     +  e_logNNaI1A(i__),S_NNaI2(i__),l_logNNaI2p(i__),logNNaI2p(i__),
     +  e_logNNaI2p(i__),l_logNNaI2A(i__),logNNaI2A(i__),
     +  e_logNNaI2A(i__),S_NTiII(i__),l_logNTiIIp(i__),logNTiIIp(i__),
     +  e_logNTiIIp(i__),l_logNTiIIA(i__),logNTiIIA(i__),
     +  e_logNTiIIA(i__),S_NCaII(i__),logNCaIIp(i__),e_logNCaIIp(i__),
     +  logNCaIIA(i__),e_logNCaIIA(i__),logNHI(i__),e_logNHI(i__)
        if(ar__2(22:25) .EQ. '') e_logNNaI1p(i__) = rNULL__
        if(ar__2(34:37) .EQ. '') e_logNNaI1A(i__) = rNULL__
        if(ar__2(50:53) .EQ. '') e_logNNaI2p(i__) = rNULL__
        if(ar__2(62:65) .EQ. '') e_logNNaI2A(i__) = rNULL__
        if (S_NTiII(i__) .EQ. 45) S_NTiII(i__) =  iNULL__
        if (idig(ar__2(72:76)).EQ.0) logNTiIIp(i__) =  rNULL__
        if(ar__2(78:81) .EQ. '') e_logNTiIIp(i__) = rNULL__
        if (idig(ar__2(84:88)).EQ.0) logNTiIIA(i__) =  rNULL__
        if(ar__2(90:93) .EQ. '') e_logNTiIIA(i__) = rNULL__
        if (S_NCaII(i__) .EQ. 45) S_NCaII(i__) =  iNULL__
        if (idig(ar__2(99:103)).EQ.0) logNCaIIp(i__) =  rNULL__
        if(ar__2(105:108) .EQ. '') e_logNCaIIp(i__) = rNULL__
        if (idig(ar__2(110:114)).EQ.0) logNCaIIA(i__) =  rNULL__
        if(ar__2(116:119) .EQ. '') e_logNCaIIA(i__) = rNULL__
        if (idig(ar__2(121:125)).EQ.0) logNHI(i__) =  rNULL__
        if(ar__2(127:130) .EQ. '') e_logNHI(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  HD_2(i__),S_NNaI1(i__),l_logNNaI1p(i__),logNNaI1p(i__),
     +  e_logNNaI1p(i__),l_logNNaI1A(i__),logNNaI1A(i__),
     +  e_logNNaI1A(i__),S_NNaI2(i__),l_logNNaI2p(i__),logNNaI2p(i__),
     +  e_logNNaI2p(i__),l_logNNaI2A(i__),logNNaI2A(i__),
     +  e_logNNaI2A(i__),S_NTiII(i__),l_logNTiIIp(i__),logNTiIIp(i__),
     +  e_logNTiIIp(i__),l_logNTiIIA(i__),logNTiIIA(i__),
     +  e_logNTiIIA(i__),S_NCaII(i__),logNCaIIp(i__),e_logNCaIIp(i__),
     +  logNCaIIA(i__),e_logNCaIIA(i__),logNHI(i__),e_logNHI(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