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

save plotting data to netcdf files #37

Merged
merged 2 commits into from
Oct 2, 2023

Conversation

hsiangheleellnl
Copy link
Contributor

I created a flag ncfile_save in the .cfg run script to save plot data in NetCDF format.

@tangq
Copy link
Collaborator

tangq commented Sep 22, 2023

@hsiangheleellnl , have you tested if all figures can be reproduced by these saved files?

@hsiangheleellnl
Copy link
Contributor Author

@tangq The data I saved might not be able to be used for plotting directly. For example, the NOx aircraft emission plot has 1-D horizontal mean and 2-D column integrated. So, I save 3-D data instead. The user needs to process the data to reproduce the figures and has more flexibility to use the data.

Do we actually need to save the 1-D and 2-D arrays?

@tangq
Copy link
Collaborator

tangq commented Sep 22, 2023

The purpose is to save the plotting data, although it is okay to save some extra data. In this case, I suggest you save the 1D and 2D variables besides the 3D data. Otherwise, it makes it harder to reuse these saved files when rerunning chemdyg.

@hsiangheleellnl
Copy link
Contributor Author

Okay. I will modify the scripts based on your suggestion. Thanks.

@hsiangheleellnl hsiangheleellnl changed the title save plot data to netcdf files save plotting data to netcdf files Sep 23, 2023
@hsiangheleellnl
Copy link
Contributor Author

@tangq The plotting data(final format) have been saved in the netcdf format. The user can reproduce ChemDyg figures from those nc files instead of E3SM outputs.

@hsiangheleellnl hsiangheleellnl merged commit c36a726 into main Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants