- Timestamp:
- Jun 12, 2016, 10:20:20 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r820 r821 14926 14926 sublat = np.float(values.split(',')[2]) 14927 14927 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': 14929 14931 lonname = 'nav_lon' 14930 14932 latname = 'nav_lat' … … 14992 14994 newattr = set_attributek(newvar,'lon',sublon,'R') 14993 14995 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 14994 14999 onewnc.sync() 14995 15000
Note: See TracChangeset
for help on using the changeset viewer.