Changeset 2832 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Apr 29, 2020, 4:07:08 PM (5 years ago)
Author:
lfita
Message:

Fixing comparing list of variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r2831 r2832  
    87358735                print '        ',i, ':', varns1[i], varns2[i]
    87368736            print '    excess of variables for file2:', varns2[N1vars:N2vars]
    8737             svarns1 = set(varns1)
    8738             svarns2 = set(varns2)
    8739 
     8737
     8738        svarns1 = set(varns1)
     8739        svarns2 = set(varns2)
    87408740        coincvarns = list(svarns1 & svarns2)
    87418741        print 'Using only:', coincvarns
    87428742        varns1 = coincvarns + []
    87438743        varns2 = coincvarns + []
     8744        N1vars = len(varns1)
     8745        N2vars = len(varns2)
    87448746 
    87458747    for iv in range(N1vars):
Note: See TracChangeset for help on using the changeset viewer.