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

Allow importing a DataFrame as a ColocatedData object #1371

Open
thorbjoernl opened this issue Oct 10, 2024 · 1 comment
Open

Allow importing a DataFrame as a ColocatedData object #1371

thorbjoernl opened this issue Oct 10, 2024 · 1 comment
Labels
enhancement ✨ New feature or request

Comments

@thorbjoernl
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Allow creating a ColocatedData object from a pandas DataFrame. Basically the inverse of ColocatedData.to_dataframe().

Would allow for another path for injecting ColocatedData into Pyaerocom.

Describe the solution you would like to see
A clear and concise description of what you want to happen.

  • Would you be able to work on this solution yourself?
  • How can the Pyaerocom development team assist you?

Additional context
Add any other context or screenshots about the feature request here.

@thorbjoernl thorbjoernl added the enhancement ✨ New feature or request label Oct 10, 2024
@Ovewh
Copy link
Collaborator

Ovewh commented Oct 10, 2024

Is it possible to also allow for xarray dataset to be injected as ColocatedData? Let's say I do the collocation manually using the pyaerocom api i.e.

coldata = pya.colocation.colocator.colocate_gridded_ungridded(rsdscs,data,ts_type='monthly',harmonise_units=False)
ds = coldata.data
ds.to_netcdf("awsome_colocated_data.nc")

which returns coldata as a Xarray dataset that i can save to disk. Could i inject this into pyaeroval for visualization? In let's say by reading it in my config.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants