本文整理汇总了Python中cartopy.io.Downloader.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Downloader.__init__方法的具体用法?Python Downloader.__init__怎么用?Python Downloader.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cartopy.io.Downloader
的用法示例。
在下文中一共展示了Downloader.__init__方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from cartopy.io import Downloader [as 别名]
# 或者: from cartopy.io.Downloader import __init__ [as 别名]
def __init__(self,
url_template=_NE_URL_TEMPLATE,
target_path_template=None,
pre_downloaded_path_template='',
):
# adds some NE defaults to the __init__ of a Downloader
Downloader.__init__(self, url_template,
target_path_template,
pre_downloaded_path_template)
示例2: __init__
# 需要导入模块: from cartopy.io import Downloader [as 别名]
# 或者: from cartopy.io.Downloader import __init__ [as 别名]
def __init__(self,
target_path_template,
pre_downloaded_path_template='',
):
# adds some SRTM3 defaults to the __init__ of a Downloader
# namely, the URl is determined on the fly using the
# ``SRTM3Downloader._SRTM3_LOOKUP_URL`` dictionary
Downloader.__init__(self, None,
target_path_template,
pre_downloaded_path_template)
示例3: __init__
# 需要导入模块: from cartopy.io import Downloader [as 别名]
# 或者: from cartopy.io.Downloader import __init__ [as 别名]
def __init__(self, target_path_template, pre_downloaded_path_template=""):
# adds some SRTM defaults to the __init__ of a Downloader
# namely, the URL is determined on the fly using the
# ``SRTMDownloader._SRTM_LOOKUP_MASK`` array
Downloader.__init__(self, None, target_path_template, pre_downloaded_path_template)
warnings.warn(
"SRTM requires an account set up and log in to access."
"use of this class is likely to fail with"
" HTTP 401 errors."
)