Changeset 301 in lmdz_wrf


Ignore:
Timestamp:
Feb 25, 2015, 7:06:01 PM (10 years ago)
Author:
lfita
Message:

Fixing too long output file name issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r300 r301  
    1038610386    check_arguments(fname,len(arguments.split(',')),arguments,',',8)
    1038710387
    10388     ofile = 'tevolboxtraj_' + varn.replace(',','-') + '.nc'
    1038910388
    1039010389    trajfile = values.split(',')[0].split('@')[0]
     
    1062710626# Creation of the netCDF file
    1062810627##
     10628    if len(varn) > 15:
     10629        varnS = 'multi-var'
     10630    else:
     10631        varnS = varn.replace(',','-')
     10632
     10633    ofile = 'tevolboxtraj_' + varnS + '.nc'
    1062910634    objofile = NetCDFFile(ofile, 'w')
    1063010635
Note: See TracChangeset for help on using the changeset viewer.