Skip to main content
Gathering Interest

I want to get raw data at a specific time.

Related products:API and SDKs
  • January 7, 2025
  • 1 reply
  • 16 views

When using time series data, there are often situations where you want to get point in time for each day.
For example, for time series A, which records the accumulated value, the raw data at 9 o'clock on 1/1, the raw data at 9 o'clock on 1/2, and so on.
Even if you specify "Granularity=1d" using the SDK, the data obtained is aggregated, so there is a discrepancy from the raw data.
Therefore, when I acquire raw data with daily granularity, I pick up the raw data as of 9 o'clock on 1/1 after acquiring raw data with fine granularity.
This is very tedious and time-consuming, so I want an easy way to get the raw data at a specific time from the SDK options or UI.

1 reply

Forum|alt.badge.img

Hi ​@Shun Takase

Perhaps I a missing something in your description(?), but to the best of my knowledge it is possible to extract the raw data points for a Time Series, without aggregates, using the client.time_series.data.retrieve() method in the Cognite Python SDK. AFIK, you have to specify the start and end times as EPOCH values (milliseconds since start of epoch).

If you use the time-ago format, it does seem like the SDK relies on aggregate values.


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings