NCAR / ADF

A unified collection of python scripts used to generate standard plots from CAM outputs.
Creative Commons Attribution 4.0 International
34 stars 29 forks source link

New adf updates #286

Closed justin-richling closed 5 months ago

justin-richling commented 6 months ago

Generalize load dataset

Make load_dataset function in plotting_functions.py that replaces _load_dataset function in various plotting scripts. Now all plotting scripts will call this function from plotting_functions.py to get datasets.

Website

In adf_web.py, add a list of defualt plot types and loop over any additional plot types. The point of this is to show all plot types on the landing page (index.html) and grey out any unavailable types. This will keep the main page consistent as well as always showing potential ADF plot types.

Also in adf_web.py, the check for mean_diag html file existence is removed. The reasoning is if a certain plot type (ie LatLon) is created from separate plotting scripts, it will only produce the plots from the last instance on the webpage.

In template_index.html there is code now that will grey out any unavailable plot types.

Tape Recorder

Currently there is a bug that is not producing the correct html plot page for the tape recorder. The plot name and web object has been updated to reflect the variable Q specifically in the case a different variable is desired for this plot in the future, like temperature, etc.

justin-richling commented 6 months ago

@nusbaume I think I got these taken care of. Let me know if you see or think of anything else. Thanks!