Nested Defaultdict (tree) In Python

· Python

The collections.defaultdict is very useful for well tested code as it cleans up a lot of try-except blocks when dealing with dictionaries. Singly nested dictionary can be done by collections.defaultdict(collections.defaultdict). But what about multi-layer nested dictionary?

Map Regridding In Python

· Python

My goal here is to regrid geographical data onto another lat-lon grid. Any library or module needed will be unloaded after the process. I have tested PyFerret and the Python spherical harmonic module (hereafter PySpHarm) and presented here how to implement PyFerret for regridding purpose.

Installing And Building Pyferret

· Python

I needed regridding functions that can conserve area averages and do not generate the artificial Gibbs fringes. There are lots of options, and Ferret/PyFerret being one. And here I present how to get PyFerret and its dependencies installed.