bug fix griddata_to_file