...
Operations between geopointsets and numbers are performed on each geopoints, e.g.
Code Block |
---|
gsetplus1 = gset + 1 # add 1 to each value in each geopoints var in gset |
Operations between geopointsets are performed on each pair of geopoints, as long as they both contain the same number of geopoints, or one geopoints variable. For example:
...
If gset1
and gset2
both contain 5 geopoints, then 5 operations will be performed (gset1[1] - gset2[1]
, etc). If gset1
contains 1 geopoints, then the result will again be 5 geopoints - the difference between gset1[1] and gset2[1..5]
.
Operations between geopointsets and fieldsets are performed on each (geopoints, field) pair, as long as they both contain the same number of items, or one item. For example:
Code Block |
---|
fcobsdiff = fc_fieldset - obs_geoset |
If fc_fieldset
contains 5 fields and obs_geoset
contains 5 geopoints, then the result will be a geopointset containing 5 geopoints variables - the differences between each pair of fields and geopoints. If either variable contains just one item, then it will be used for each calculation. Otherwise, if they contain a different number of items, the computation will fail.
The Geopointset file format
...