Skip to content

Instantly share code, notes, and snippets.

@FrancescAlted
Created January 28, 2022 09:52
Show Gist options
  • Save FrancescAlted/64de15a7c79f72ca16128b2d9851d270 to your computer and use it in GitHub Desktop.
Save FrancescAlted/64de15a7c79f72ca16128b2d9851d270 to your computer and use it in GitHub Desktop.
Example of an in-memory evaluation
precip_expr = ia.expr_from_string("(p1 + p2 + p3) / 3",
{'p1': precip1, 'p2': precip2, 'p3': precip3},
)
precip_mean = precip_expr.eval()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment