Ejemplo n.º 1
0
def _check_bathy_file_(bathyname, **kwargs):
    """Make sure to have a bathy file (see :func:`~vacumm.config.check_data_file`)"""
    return check_data_file(bathyname,
                           'file',
                           parent_section=__name__,
                           parent_option='cfgfile_gridded',
                           **kwargs)
Ejemplo n.º 2
0
 def avail(cls):
     """Is this shoreline available locally or for download?"""
     if cls._name is None: return True
     return config.check_data_file(__name__, 'shapefile_'+cls._name, avail=True)
Ejemplo n.º 3
0
 def _check_input_(self, input):
     if input is None and self._name is not None:
         input = config.check_data_file(__name__, 'shapefile_'+self._name,
             suffix=['.shp', '.shx'])[0][:-4]
     return input