Include two scripts: - Identifying adjacent grids to build a lookup table (@liranpeng already wrote a code for this); - Preprocessing ML inputs using the lookup table.