Changeset 1410 in lmdz_wrf


Ignore:
Timestamp:
Jan 16, 2017, 6:32:03 PM (8 years ago)
Author:
lfita
Message:

Adding a chekcing' boundaries for gridline' in 'curve_section'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1409 r1410  
    1862818628        cyunit = '1'
    1862918629
     18630    # Checking consistency with values
     18631    if values.split(',')[0]== 'gridline':
     18632        if iBL >= dimx or iUR >= dimx:
     18633            print errormsg
     18634            print '  ' + fname + ': wrong iBL or iUR !!'
     18635            print '    x-curve range must lay between 0,',dimx-1
     18636            print '    provided values iBL:', iBL, 'iUR:', iUR
     18637            quit(-1)
     18638        if jBL >= dimy or jUR >= dimy:
     18639            print errormsg
     18640            print '  ' + fname + ': wrong jBL or jUR !!'
     18641            print '    x-curve range must lay between 0,',dimy-1
     18642            print '    provided values jBL:', jBL, 'jUR:', jUR
     18643            quit(-1)
     18644
    1863018645    # Getting curve-values
    1863118646    loccurve, curvewgts, Nwgts, curveloc3x3, exctloccurve = gen.curvelocalize_2D(    \
Note: See TracChangeset for help on using the changeset viewer.