Useful code snippets for meteorologists and atmospheric scientists