You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pixel time series tool could be made more functional by incorporating a function that returns a pandas.DataFrame rather than outputting directly to disk.
where: coord: a tuple of x, y coordinates dsets: a list of DatasetTypes pq_flags: If None then no PQ masking is applied.
A pandas.DataFrame is returned containing the same info as currently output, but is time-series aware by having the dataset.start_datetime timestamps set as the DataFrameindex
The current class RetrievePixelTimeSeriesTool could make use of the same return structure i.e a pandas.DataFrame allowing multiple outputs formats to be written to disk such as csv, JSON & xls.
What do you think?
I can draft up an example soonish.
The text was updated successfully, but these errors were encountered:
The first aspect of this is to move the logic of performing the actual pixel drill into the API proper - e.g. into the datacube.api.utils module like get_dataset_data_stack has been. I'm not sure if the API call should return a pandas.DataFrame or whether it would return some other data structure and then the Retrieve Pixel Time Series command line tool code would wrap it to produce the output format.
This has always been the intention - but it hasn't been a high enough priority to move from my TODO list to the TODONE list.
The pixel time series tool could be made more functional by incorporating a function that returns a pandas.DataFrame rather than outputting directly to disk.
Some thing along the lines of:
where:
coord: a tuple of x, y coordinates
dsets: a list of DatasetTypes
pq_flags: If None then no PQ masking is applied.
A pandas.DataFrame is returned containing the same info as currently output, but is time-series aware by having the dataset.start_datetime timestamps set as the DataFrame index
The current
class RetrievePixelTimeSeriesTool
could make use of the same return structure i.e a pandas.DataFrame allowing multiple outputs formats to be written to disk such as csv, JSON & xls.What do you think?
I can draft up an example soonish.
The text was updated successfully, but these errors were encountered: