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

.csv data output #18

Open
dmragar opened this issue Dec 20, 2024 · 2 comments
Open

.csv data output #18

dmragar opened this issue Dec 20, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@dmragar
Copy link
Collaborator

dmragar commented Dec 20, 2024

Royal would like time series .CSV data outputs. The data should show WPU change over time for all veg types. They showed an example with individual pixels flattened w/ index values for location, as well as a column of WPU membership for pixel.

We can start building a CSV output function, and then refine as they/we get a better sense of the specs.

This could use np.savetext (simplest) or possibly use the existing VegTransition._save_state_vars() to build up an xarray Dataset, which would have a .to_pandas() method that could be very handy for better formatting control. We also still need to output .tifs or .NetCDF for Cam, so this is probably the way to go.

@dmragar dmragar added the enhancement New feature or request label Dec 20, 2024
@dmragar
Copy link
Collaborator Author

dmragar commented Dec 27, 2024

In progress #16

this code will be independent of VegTransition (i.e. a post-processing step, where reading the VegTransition files into a xr.Dataset is the first step.

@dmragar
Copy link
Collaborator Author

dmragar commented Jan 16, 2025

Update: there are now two .csv outputs for VegTransition. A domain-wide pixel count, and a WPU-specific count.

VegTransition.post_process()

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

1 participant