Changeset 721 in lmdz_wrf


Ignore:
Timestamp:
Apr 26, 2016, 4:55:06 PM (9 years ago)
Author:
lfita
Message:

Speeding it up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r720 r721  
    1891918919                quit(-1)
    1892018920
    18921             if ilatlon[0] >= 0 and ilatlon[1] >= 0:
    18922                 newvar[ilatlon[0],ilatlon[1]] = ovar[iv]
    18923                 newvarin[ilatlon[0],ilatlon[1]] = iv
    18924                 newvarinpt[iv] = 1
    18925                 newvarindiff[iv] = mindiffLl
     18921# Speeding itup
     18922#            if ilatlon[0] >= 0 and ilatlon[1] >= 0:
     18923#                newvar[ilatlon[0],ilatlon[1]] = ovar[iv]
     18924#                newvarin[ilatlon[0],ilatlon[1]] = iv
     18925#                newvarinpt[iv] = 1
     18926#                newvarindiff[iv] = mindiffLl
     18927            newvar[ilatlon[0],ilatlon[1]] = ovar[iv]
     18928            newvarin[ilatlon[0],ilatlon[1]] = iv
     18929            newvarinpt[iv] = 1
     18930            newvarindiff[iv] = mindiffLl
     18931
    1892618932#                print 'Lluis iv:', newvarin[ilatlon[0],ilatlon[1]],                  \
    1892718933#                  'localized:', newvarinpt[iv], 'values:',                           \
Note: See TracChangeset for help on using the changeset viewer.