uaf-arctic-eco-modeling / dvm-dos-tem

A process based Dynamic Vegetation, Dynamic Organic Soil, Terrestrial Ecosystem Model.
MIT License
22 stars 24 forks source link

fix plotting bug with AC-MADS-TEM.jl... #688

Closed tobeycarman closed 8 months ago

tobeycarman commented 8 months ago

... the plotting has been failing beause the parameter opt_params was not defined. This was an oversight in an attempt to accomodate both the reading of optimum parameters the returned object of a successful calibration or the .iterationresults files, which can be accessed after the calibration code has exited.

Here we don't make an effort at reading the .iterationresults files, or letting the use by-pass the time consuming calibraiton step and opt_params is set to the values from the object returned from the mads.calibrate(...) function call.

Also added commas to the println statements for easier copying directly into the arguments of the Python util.metrics.plot_optimization_fit(...) function. This is a workaround way to make the plot(s) after the AC-MADS-TEM.jl has completed running.

And added some notes about accessing this data from a python script.