예제 #1
0
 def transform(x: ProcessBuilder) -> ProcessBuilder:
     return cos(x.absolute()) + 1.23
예제 #2
0
def test_apply_callback_chain_lambda_mixed_and_operator(con100):
    im = con100.load_collection("S2")
    from openeo.processes import cos
    result = im.apply(lambda data: cos(data.absolute()) + 1.23)
    assert result.graph == load_json_resource('data/1.0.0/apply_chain.json')
예제 #3
0
 def transform(x: ProcessBuilder) -> ProcessBuilder:
     return add(cos(absolute(x)), y=1.23)
예제 #4
0
def test_apply_callback_chain_lambda_functions(con100):
    im = con100.load_collection("S2")
    from openeo.processes import absolute, cos, add
    result = im.apply(lambda data: add(cos(absolute(data)), 1.23))
    assert result.graph == load_json_resource('data/1.0.0/apply_chain.json')