Added earth_radius to the grid mapping of saved NetCDF files

Note: The loading of the ``earth_radius`` attribute is already handled in the NetCDF loader, so this is limited to save only.