Changeset 1754 in lmdz_wrf for trunk/tools
- Timestamp:
- Dec 21, 2017, 10:00:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1753 r1754 12567 12567 fname = 'getting_fixedline' 12568 12568 12569 if len(cuts) + 1 != len(types): 12570 print errormsg 12571 print ' ' + fname + ': The number of types :', len(types), 'must be +1', \ 12572 'number of cuts:', len(cuts) 12573 quit(-1) 12574 12569 12575 values = [] 12570 12576 val = line[0:cuts[0]+1] … … 12581 12587 for ic in range(1,Ncuts): 12582 12588 val = line[cuts[ic-1]:cuts[ic]+1] 12583 print 'Lluis val:', val12584 12589 if len(val.replace(' ','')) >= 1: 12585 12590 values.append(typemod(val, types[ic])) … … 12595 12600 val = line[cuts[Ncuts-1]:Lline] 12596 12601 if len(val.replace(' ','')) >= 1: 12597 values.append(typemod(val, types[Ncuts -1]))12602 values.append(typemod(val, types[Ncuts])) 12598 12603 else: 12599 12604 if types[0] == 'I': values.append(fillValueI)
Note: See TracChangeset
for help on using the changeset viewer.