Skip to content

Temporal filtering

Description

This transformation is applicable to models that contain some temporal information (e.g. Dfs2 files). It filters the temporal domain (set of time steps) for further processing.

Example

This request to /api/conversion/upload-convert

{
  "readerName": "<reader name>",
  "writerName": "<writer name>",
    ...
  "transformations": [
    {
        type: "TemporalFilterTransformation",
        temporalFilter: {
            type: "TemporalValueFilter",
            from: "2020-01-01T00:00:00",
            to: "2020-01-10T23:59:59"
        }
    }
  ]
}
var transferResult = await transferClient
            .CreateFileImport(projectId, "<local file>")
            ...
            .WithTimeFilteringTransformation(from: new DateTime(2020, 1, 1), to: new DateTime(2020, 1, 10))
            ...
            .ExecuteAsync();

will only select the time steps between 01-01-2020 and 10-01-2020.

For more information refer to the swagger documentation of the Metadata service.