def _mpas_to_netcdf_calendar(calendar):
    """
    Convert from MPAS calendar to NetCDF4 calendar names.
    """

    if calendar == 'gregorian_noleap':
        calendar = 'noleap'
    elif calendar != 'gregorian':
        raise ValueError('Unsupported calendar {}'.format(calendar))
    return calendar