Changeset 650 in lmdz_wrf


Ignore:
Timestamp:
Sep 23, 2015, 11:25:51 AM (10 years ago)
Author:
lfita
Message:

Adding slicing of dimensions on `slice_variable'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/tools/nc_var_tools.py ΒΆ

    r634 r650  
    1252712527            dimnslice.append(vardims[idd])
    1252812528
    12529     varvalues = varobj[tuple(varvalsdim)]
     12529    print 'orig shape:',varobj[:].shape,'sliced:',varobj[tuple(varvalsdim)].shape
     12530    varvalues = np.squeeze(varobj[tuple(varvalsdim)])
     12531    print 'varvalues shape:',varvalues.shape
    1253012532
    1253112533    return varvalues, dimnslice
Note: See TracChangeset for help on using the changeset viewer.