fixed delete_nc_variable bug, fixed coord rotation function so that all unnecessary (and incompatible) dimensions will be deleted