Files to run the inverse model of my Master's thesis of modelling cosmogenic nuclides to detect past glaciations.
Contains all the functions used.
forwardcalculates the nuclide concentrations with depthfind_timeschooses randomly times that are tested as a possible solutioninversetests if the tested model fits to the reference forward model
Contains an example how to run the code.
"test1.txt" and "test2.txt" have an example output from the example.py
Files to run the improved cosmogenic inverse model introduced in my master's thesis.
Contains all the functions needed for running the inverse model.
- 'forward' calculates the concentration profiles
- 'synthetic_data' creates a synthetic data set given input values for the model parameters defining the exposure history
- 'MCinverse' executes one iteration of uniform Monte Carlo (random sampling) inversion, calls 'find_times' and 'rand_erosion' to find random parameter values
- 'NAinverse' executes the inversion with Neighbourhood Algorithm sampling
- 'MCMCinverse' executes the inversion with Markov Chain Monte Carlo sampling
- 'inverse' calculates the misfit of a sampled set of model parameters, called by 'NAinverse' and 'MCMCinverse'
An example of how to create synthetic data
An example of how to run the inverse model
- Misfit_plot.py : an example of how to create a box plot showing the minimum (=best model) misfit values for different inversions
- Best_params_plot.py : an example of how to create box plots showing the best model parameter values (one subfigure for each inverted parameter) for different inversions