Changeset 2845 in lmdz_wrf for trunk/tools/nc_var_tools.py


Ignore:
Timestamp:
Jul 7, 2020, 5:04:46 AM (4 years ago)
Author:
lfita
Message:

Removing empty last value in 'setvals_asci'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r2833 r2845  
    85888588                vals = line.replace('\n','').replace('\t','').split(' ')
    85898589                if vartype != '|S1':
     8590                    if len(vals[len(vals)-1]) == 0: vals.pop(len(vals)-1)
    85908591                    if len(vals) != values.shape[1]:
    85918592                        print errormsg
Note: See TracChangeset for help on using the changeset viewer.