old_contents: try:
      import netCDF4 as nc4
  except ImportError:
      import warnings
      warnings.warn('Unable to import netCDF4.', ImportWarning)
      WITH_NETCDF4 = False
  else:
      WITH_NETCDF4 = True
  
  
  from landlab.io.netcdf.read import read_netcdf
  from landlab.io.netcdf.write import write_netcdf
  from landlab.io.netcdf.errors import NotRasterGridError
  
new_contents: try:
      import netCDF4 as nc4
  except ImportError:
      import warnings
      warnings.warn('Unable to import netCDF4.', ImportWarning)
      WITH_NETCDF4 = False
  else:
      WITH_NETCDF4 = True
  
  
  from .read import read_netcdf
  from .write import write_netcdf
  from .errors import NotRasterGridError
  
  
  __all__ = ['read_netcdf', 'write_netcdf', 'NotRasterGridError',
             'WITH_NETCDF4', ]
  
subject: Use relative imports.