code for the collation of NIWA's global pdf