- Timestamp:
- Jun 18, 2016, 2:35:15 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r870 r871 1566 1566 ncvars = ncf.variables 1567 1567 allvars='' 1568 ivar = 0 1568 1569 for var in ncvars: 1569 1570 print var 1570 allvars=allvars + ':' + var 1571 1571 if ivar == 0: 1572 allvars = var 1573 else: 1574 allvars = allvars + ':' + var 1575 ivar = ivar + 1 1572 1576 print ' # allvars= ' + allvars 1573 1577 ncf.close() … … 1589 1593 ncdims = ncf.dimensions 1590 1594 alldims='' 1595 idim = 0 1591 1596 for dim in ncdims: 1592 1597 print dim 1593 alldims=alldims + ':' + dim 1598 if idim == 0: 1599 alldims=dim 1600 else: 1601 alldims = alldims + ':' + dim 1602 idim = idim + 1 1594 1603 1595 1604 print ' # alldims= ' + alldims
Note: See TracChangeset
for help on using the changeset viewer.