E3SM-Project / ChemDyg

Chemistry Diagnostics Package
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

save plotting data to netcdf files #37

Closed hsiangheleellnl closed 1 year ago

hsiangheleellnl commented 1 year ago

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

tangq commented 1 year ago

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

hsiangheleellnl commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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

hsiangheleellnl commented 1 year ago

@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.