Fixed writing the ctl file for combined hdf files (2d grids were
improperly referenced)