Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not passing down breaks #10

Open
mdsumner opened this issue Jan 25, 2024 · 1 comment
Open

not passing down breaks #10

mdsumner opened this issue Jan 25, 2024 · 1 comment

Comments

@mdsumner
Copy link
Member

No description provided.

@mdsumner
Copy link
Member Author

a very near fix is to add breaks to the arg list and do

  if (!is.null(col)) {

      x <- matrix(palr::image_pal(x, col, breaks = breaks), dim(x)[1L], dim(x)[2L])
    } else {
      x <- (x - rg[1L])/diff(rg)

    }

at

x <- (x - rg[1L])/diff(rg)

but, palr is not matching the breaks logic exactly ... we should also use nativeRaster more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant