Changes between Initial Version and Version 1 of Ticket #2820, comment 5
- Timestamp:
- 12/16/15 01:13:08 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2820, comment 5
initial v1 12 12 v.what.rast test_interpolation col=idw_vect rast=vsurfidw 13 13 v.what.rast test_interpolation col=idw_rast rast=rsurfidw 14 v.db.update test_interpolation col=owncal value=$(v.distance -p -a from=test_interpol @user1 to=precip_30ynormals@PERMANENT dmax=102000 upload=dist,to_attr to_column=annual --quiet | tail -n +2 | awk -F'|' 'BEGIN{sumvals=0;sumweights=0} {weight=1/$3^2;sumweights+=weight; sumvals+=weight*$4} END{print sumvals/sumweights}')14 v.db.update test_interpolation col=owncal value=$(v.distance -p -a from=test_interpolation@user1 to=precip_30ynormals@PERMANENT dmax=102000 upload=dist,to_attr to_column=annual --quiet | tail -n +2 | awk -F'|' 'BEGIN{sumvals=0;sumweights=0} {weight=1/$3^2;sumweights+=weight; sumvals+=weight*$4} END{print sumvals/sumweights}') 15 15 v.db.select test_interpolation 16 16 }}}