Earth and eco #python enthusiasts and educators! I'm looking for a good use case to illustrate functions and defensive programming for a graduate-level class.

Right now my function just takes a lower and upper air temperature and exports a plot of the saturation vapor pressure as a function of T. It's a good example function, but it's a bit contrived.

Ideas?

@HydroLejo Lots of fun equations in Campbell and Norman (1998) to code into python functions. One simple one is plotting the profile of wind speeds against height above a canopy or within canopy wind speed profiles. Another could be to have some toy data and a function to calculate stomatal conductance with a certain model. Potential for lots of fun curve fitting functions as well with scipy and dividing data into train and test sets with sklearn.
@amkhan those are great ideas! For a more detailed overview of functions I also like to solve the surface energy balance by iterating on surface temperature...