Error while reclassifying rasterstack in R The Next CEO of Stack Overflow
Calculate the Mean mean of two numbers
Can a PhD from a non-TU9 German university become a professor in a TU9 university?
How can a day be of 24 hours?
Gödel's incompleteness theorems - what are the religious implications?
Early programmable calculators with RS-232
Read/write a pipe-delimited file line by line with some simple text manipulation
Is it okay to majorly distort historical facts while writing a fiction story?
Is it correct to say moon starry nights?
That's an odd coin - I wonder why
How can I prove that a state of equilibrium is unstable?
Finitely generated matrix groups whose eigenvalues are all algebraic
Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?
Is a linearly independent set whose span is dense a Schauder basis?
Could a dragon use hot air to help it take off?
Incomplete cube
Gauss' Posthumous Publications?
Why does sin(x) - sin(y) equal this?
Strange use of "whether ... than ..." in official text
Identify and count spells (Distinctive events within each group)
Arrows in tikz Markov chain diagram overlap
Can I hook these wires up to find the connection to a dead outlet?
Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact
Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico
Are British MPs missing the point, with these 'Indicative Votes'?
Error while reclassifying rasterstack in R
The Next CEO of Stack Overflow
I have a very large raster stack of 6253 raster layers and I want to reclassify it.
For the reclass, I have tried the following but with no success and I would really appreciate any help/hints on what I miss here.
my_rules <- c(-0.500, -0.251, 1, -0.251, -0.101, 2, -0.101,0.99,3, 0.99,0.269,4, 0.269,0.439,5, 0.439,0.659,6, 0.659,1.300,7, 1.300,2,NA)
reclmat <- matrix(my_rules, ncol=3, byrow=TRUE)
my_stack<- reclassify(my_stack, reclmat,right=FALSE)
Error in .local(x, rcl, ...) : all(rcl[, 2] >= rcl[, 1]) is not TRUE
Is this the wrong way to approach this?
r reclassify rasterstack
add a comment |
I have a very large raster stack of 6253 raster layers and I want to reclassify it.
For the reclass, I have tried the following but with no success and I would really appreciate any help/hints on what I miss here.
my_rules <- c(-0.500, -0.251, 1, -0.251, -0.101, 2, -0.101,0.99,3, 0.99,0.269,4, 0.269,0.439,5, 0.439,0.659,6, 0.659,1.300,7, 1.300,2,NA)
reclmat <- matrix(my_rules, ncol=3, byrow=TRUE)
my_stack<- reclassify(my_stack, reclmat,right=FALSE)
Error in .local(x, rcl, ...) : all(rcl[, 2] >= rcl[, 1]) is not TRUE
Is this the wrong way to approach this?
r reclassify rasterstack
add a comment |
I have a very large raster stack of 6253 raster layers and I want to reclassify it.
For the reclass, I have tried the following but with no success and I would really appreciate any help/hints on what I miss here.
my_rules <- c(-0.500, -0.251, 1, -0.251, -0.101, 2, -0.101,0.99,3, 0.99,0.269,4, 0.269,0.439,5, 0.439,0.659,6, 0.659,1.300,7, 1.300,2,NA)
reclmat <- matrix(my_rules, ncol=3, byrow=TRUE)
my_stack<- reclassify(my_stack, reclmat,right=FALSE)
Error in .local(x, rcl, ...) : all(rcl[, 2] >= rcl[, 1]) is not TRUE
Is this the wrong way to approach this?
r reclassify rasterstack
I have a very large raster stack of 6253 raster layers and I want to reclassify it.
For the reclass, I have tried the following but with no success and I would really appreciate any help/hints on what I miss here.
my_rules <- c(-0.500, -0.251, 1, -0.251, -0.101, 2, -0.101,0.99,3, 0.99,0.269,4, 0.269,0.439,5, 0.439,0.659,6, 0.659,1.300,7, 1.300,2,NA)
reclmat <- matrix(my_rules, ncol=3, byrow=TRUE)
my_stack<- reclassify(my_stack, reclmat,right=FALSE)
Error in .local(x, rcl, ...) : all(rcl[, 2] >= rcl[, 1]) is not TRUE
Is this the wrong way to approach this?
r reclassify rasterstack
r reclassify rasterstack
asked 3 mins ago
foofoo
555
555
add a comment |
add a comment |
0
active
oldest
votes
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317445%2ferror-while-reclassifying-rasterstack-in-r%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317445%2ferror-while-reclassifying-rasterstack-in-r%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown