To correct the problem related to the variable type of "grid mapping" attributes on
ncatted -a grid_north_pole_latitude,rotated_pole,o,d,<north pole latitude> <file> ncatted -a grid_north_pole_longitude,rotated_pole,o,d,<north pole longitude> <file>