Changeset 821 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jun 12, 2016, 10:20:20 PM (8 years ago)
Author:
lfita
Message:

Generic use of file 'routing.nc' (omitting path)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r820 r821  
    1492614926    sublat = np.float(values.split(',')[2])
    1492714927
    14928     if ncfile == 'routing.nc':
     14928    Lncfile = len(ncfile)
     14929    print Lncfile, "Lluis: '"  + ncfile[Lncfile-10:Lncfile] + "'"
     14930    if ncfile[Lncfile-10:Lncfile] == 'routing.nc':
    1492914931        lonname = 'nav_lon'
    1493014932        latname = 'nav_lat'
     
    1499214994    newattr = set_attributek(newvar,'lon',sublon,'R')
    1499314995    newattr = set_attributek(newvar,'lat',sublat,'R')
     14996    newattr = set_attributek(newvar,'icoord',isub[1],'I')
     14997    newattr = set_attributek(newvar,'jcoord',isub[0],'I')
     14998
    1499414999    onewnc.sync()
    1499515000
Note: See TracChangeset for help on using the changeset viewer.