SCM

[#1675] Error in Extract from Polygon in Cluster Mode

Date:
2011-11-29 13:36
Priority:
3
State:
Open
Submitted by:
Julian Zeidler (julianzeidler)
Assigned to:
Nobody (None)
Hardware:
None
Product:
None
Operating System:
Linux
Component:
None
Version:
None
Severity:
normal
Resolution:
None
URL:
Summary:
Error in Extract from Polygon in Cluster Mode

Detailed description
Hi Robert,

Sorry I found another one ;-)
I am trying to aggregate all high Res Pixels underlying a medium resolution image
When i am in ClusterMode the following Code gives me an Error:

polys<-rasterToPolygons(mediumres, na.rm=FALSE, n=4)
mediumres[]<-extract(highres, polys, weights=FALSE, fun=mean).

I get:

|
| | 0%Using cluster with 6 nodes
Error in .local(x, y, ...) : cluster error at polygon: 1

It works fine without a Cluster ( Even if it does take a long time)
Maybe I am missing a more elegant solution to aggregating the data

As always R and Raster are up to date.
Best Julian

Comments:

Message  ↓
Date: 2011-12-02 07:33
Sender: Robert Hijmans

Hi Julian,
Thanks for reporting, but can not (yet) reproduce this problem.
Anyhow, I would use "aggregate" to aggregate the data. Unless you are doing a 'irregular' aggregation, in which case I would aggregate to something very close and then use resample.

Attached Files:

Changes

No Changes Have Been Made to This Item

Thanks to:
Vienna University of Economics and Business Powered By FusionForge