Changes between Initial Version and Version 1 of Ticket #2820, comment 5


Ignore:
Timestamp:
Dec 16, 2015, 1:13:08 AM (8 years ago)
Author:
mlennert

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2820, comment 5

    initial v1  
    1212v.what.rast test_interpolation col=idw_vect rast=vsurfidw
    1313v.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}')
     14v.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}')
    1515v.db.select test_interpolation
    1616}}}