Changeset 2348 in lmdz_wrf for trunk


Ignore:
Timestamp:
Feb 18, 2019, 5:42:22 PM (6 years ago)
Author:
lfita
Message:

Getting the right variable-dimensions from vardims, instead of using 'getkey' !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r2347 r2348  
    2786727867    print '    slicespacedim:', slicespacedim, 'sdimy, sdimx:', sdimy, sdimx
    2786827868
    27869     print 'Lluis: dimvars ________'
    27870     gen.printing_dictionary(dimvars)
    27871     print 'slicespacedim:', slicespacedim
     27869    # This should work !
    2787227870    #olon1D = onc.variables[gen.dictionary_key(dimvars, slicespacedim[1])]
    2787327871    #olat1D = onc.variables[gen.dictionary_key(dimvars, slicespacedim[0])]
     
    2969029688            print infmsg
    2969129689            print '  ' + fname + ": variable '" + varn + "' with coordinates " +     \
    29692               "attribtue:" + coords + " !!"
     29690              "attribute:" + coords + " !!"
    2969329691            print '  adding coordinates if they are not yet in file'
    2969429692            cordv = coords.split(' ')
Note: See TracChangeset for help on using the changeset viewer.