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

End date in load_collection included in result but should be excluded #113

Closed
clausmichele opened this issue Oct 11, 2021 · 2 comments
Closed

Comments

@clausmichele
Copy link
Member

I have noticed that the end date is included when performing load_collection. However, the API states that the end date should be excluded.

https://processes.openeo.org/#load_collection

temporal_extent*

Limits the data to load from the collection to the specified left-closed temporal interval. Applies to all temporal dimensions. The interval has to be specified as an array with exactly two elements:

    The first element is the start of the temporal interval. The specified instance in time is included in the interval.
    The second element is the end of the temporal interval. The specified instance in time is excluded from the interval.

For instance, in the following PG I put in the query the 8th of July as end date and the result contains data on that date:

process graph
{
"process_graph": {
  "loadcollection1": {
    "process_id": "load_collection",
    "arguments": {
      "bands": [
        "VV",
        "VH"
      ],
      "id": "SENTINEL1_GRD",
      "spatial_extent": {
        "west": 11.283302,
        "east": 11.402779,
        "south": 46.455283,
        "north": 46.525958,
        "crs": "EPSG:4326"
      },
      "temporal_extent": [
        "2021-01-07",
        "2021-01-08"
      ]
    }
  },
  "ardnormalizedradarbackscatter1": {
    "process_id": "ard_normalized_radar_backscatter",
    "arguments": {
      "contributing_area": false,
      "data": {
        "from_node": "loadcollection1"
      },
      "elevation_model": "COPERNICUS_30",
      "ellipsoid_incidence_angle": false,
      "noise_removal": true
    }
  },
  "apply1": {
    "process_id": "apply",
    "arguments": {
      "data": {
        "from_node": "ardnormalizedradarbackscatter1"
      },
      "process": {
        "process_graph": {
          "log1": {
            "process_id": "log",
            "arguments": {
              "base": 10,
              "x": {
                "from_parameter": "x"
              }
            }
          },
          "multiply1": {
            "process_id": "multiply",
            "arguments": {
              "x": 10,
              "y": {
                "from_node": "log1"
              }
            },
            "result": true
          }
        }
      }
    }
  },
  "saveresult1": {
    "process_id": "save_result",
    "arguments": {
      "data": {
        "from_node": "apply1"
      },
      "format": "NetCDF",
      "options": {}
    },
    "result": true
  }
}
}
@clausmichele
Copy link
Member Author

Basically the same issue as this #34

@soxofaan
Copy link
Member

indeed duplicate of #34

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

2 participants