コード例 #1
0
ファイル: bathy.py プロジェクト: Sophia-E-Brumer/vacumm
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)
コード例 #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)
コード例 #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