split into util and plotutil to avoid circular dependency
thermal_wind_inner fixes