Changeset 2736 in lmdz_wrf for trunk/tools/UWyoming_snd_nc.py


Ignore:
Timestamp:
Oct 28, 2019, 8:34:25 PM (5 years ago)
Author:
lfita
Message:

Adding another condition to continuing transforming data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/UWyoming_snd_nc.py

    r2060 r2736  
    160160        else:
    161161            # Numeric values
    162 
    163             if gen.IsNumber(lvals[0], 'R') and lvals[1] != 'hPa':
     162            if gen.IsNumber(lvals[0], 'R') and len(lvals) > 1 and lvals[1] != 'hPa':
    164163                Sline = line.replace('\n', '').replace('\t', '')
    165164                linvals = gen.getting_fixedline(Sline,[7,14,21,28,35,42,49,56,63,70],\
Note: See TracChangeset for help on using the changeset viewer.