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

Add apply with context and other process nodes #20

Open
danlooo opened this issue Aug 4, 2023 · 0 comments
Open

Add apply with context and other process nodes #20

danlooo opened this issue Aug 4, 2023 · 0 comments

Comments

@danlooo
Copy link
Collaborator

danlooo commented Aug 4, 2023

# define child process
scale_function <- function(x, context) {
  p$linear_scale_range(x, inputMin = 0, inputMax = 6000, outputMin = 0, outputMax = 255)
}

# apply scale range to all pixels
cube_s2_b348_red_lin <- p$apply(data = cube_s2_b348_red, process = scale_function)

see https://openeo.org/documentation/1.0/cookbook/#scale-all-pixels-linearly-apply-linear-scale-range

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