- Timestamp:
- May 26, 2015, 3:35:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r437 r438 11420 11420 11421 11421 # center of the trajectory 11422 newvar = objofile.createVariable('trj_' + vn , 'f', ('time','z'),\11422 newvar = objofile.createVariable('trj_' + vnst, 'f', ('time','z'), \ 11423 11423 fill_value=fillValue) 11424 newattr = basicvardef(newvar, 'trj_' + vsname, 'value along the ' + 11424 newattr = basicvardef(newvar, 'trj_' + vsname, 'value along the ' + \ 11425 11425 'trajectory of '+ vn, vunits) 11426 11426 newvar[:] = statvarvals[:,:,0] … … 11429 11429 ist = 0 11430 11430 for statn in statnames: 11431 newvar = objofile.createVariable(statn + '_' + vn ,'f',('time','z'),\11431 newvar = objofile.createVariable(statn + '_' + vnst,'f',('time','z'),\ 11432 11432 fill_value=fillValue) 11433 11433 newattr = basicvardef(newvar, statn + '_' + vsname, vstlname[ist] + \ 11434 ' the box ('+str(boxs)+'x'+str(boxs)+') of ' + vn , vunits)11434 ' the box ('+str(boxs)+'x'+str(boxs)+') of ' + vnst, vunits) 11435 11435 newvar[:] = statvarvals[:,:,ist+1] 11436 11436 # newattr = set_attributek(newvar,'_FillValue',fillValue,'npfloat') … … 11460 11460 ist = 0 11461 11461 for statn in cstatnames: 11462 newvar = objofile.createVariable(statn + '_' + vn ,'f',('time','z'),\11462 newvar = objofile.createVariable(statn + '_' + vnst,'f',('time','z'),\ 11463 11463 fill_value=fillValue) 11464 11464 newattr = basicvardef(newvar, statn + '_' + vsname, vstlname[ist] + \ 11465 ' the circle of radius ('+ str(circler)+') of ' + vn , vunits)11465 ' the circle of radius ('+ str(circler)+') of ' + vnst, vunits) 11466 11466 newvar[:] = rstatvarvals[:,:,ist+1] 11467 11467 # newattr = set_attributek(newvar,'_FillValue',fillValue,'npfloat') … … 11654 11654 11655 11655 # center of the trajectory 11656 newvar = objofile.createVariable('trj_' + vn , 'f', ('time'), \11656 newvar = objofile.createVariable('trj_' + vnst, 'f', ('time'), \ 11657 11657 fill_value=fillValue) 11658 11658 newattr = basicvardef(newvar, 'trj_' + vsname, 'value along the ' + \ 11659 'trajectory of '+ vn , vunits)11659 'trajectory of '+ vnst, vunits) 11660 11660 newvar[:] = statvarvals[:,0] 11661 11661 … … 11663 11663 ist = 0 11664 11664 for statn in statnames: 11665 newvar = objofile.createVariable(statn + '_' + vn , 'f', ('time'),\11665 newvar = objofile.createVariable(statn + '_' + vnst, 'f', ('time'), \ 11666 11666 fill_value=fillValue) 11667 11667 newattr = basicvardef(newvar, statn + '_' + vsname, vstlname[ist] + \ 11668 ' the box ('+str(boxs)+'x'+str(boxs)+') of ' + vn , vunits)11668 ' the box ('+str(boxs)+'x'+str(boxs)+') of ' + vnst, vunits) 11669 11669 newvar[:] = statvarvals[:,ist+1] 11670 11670 # newattr = set_attributek(newvar,'_FillValue',fillValue,'npfloat') … … 11694 11694 ist = 0 11695 11695 for statn in cstatnames: 11696 newvar = objofile.createVariable(statn + '_' + vn , 'f', ('time'), \11696 newvar = objofile.createVariable(statn + '_' + vnst, 'f', ('time'), \ 11697 11697 fill_value=fillValue) 11698 11698 newattr = basicvardef(newvar, statn + '_' + vsname, vstlname[ist] + \ 11699 ' the circle of radius ('+ str(circler)+') of ' + vn , vunits)11699 ' the circle of radius ('+ str(circler)+') of ' + vnst, vunits) 11700 11700 newvar[:] = rstatvarvals[:,ist+1] 11701 11701 # newattr = set_attributek(newvar,'_FillValue',fillValue,'npfloat')
Note: See TracChangeset
for help on using the changeset viewer.