Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

modify the pixel time series tool to return a dataframe #66

Description

@sixy6e

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:

dataframe = retrieve_pixel_time_series(coord=(x, y), dsets=[ARG25, FC25, PQ25], pq_flags=None)

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions