本文整理汇总了Python中sentinelsat.SentinelAPI._load_query方法的典型用法代码示例。如果您正苦于以下问题:Python SentinelAPI._load_query方法的具体用法?Python SentinelAPI._load_query怎么用?Python SentinelAPI._load_query使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sentinelsat.SentinelAPI
的用法示例。
在下文中一共展示了SentinelAPI._load_query方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: raw_products
# 需要导入模块: from sentinelsat import SentinelAPI [as 别名]
# 或者: from sentinelsat.SentinelAPI import _load_query [as 别名]
def raw_products():
"""A fixture for tests that need some non-specific set of products in the form of a raw response as input."""
api = SentinelAPI(**_api_auth)
raw_products = api._load_query(api.format_query(
geojson_to_wkt(read_geojson('tests/map.geojson')),
"20151219", "20151228")
)
return raw_products
示例2: raw_products
# 需要导入模块: from sentinelsat import SentinelAPI [as 别名]
# 或者: from sentinelsat.SentinelAPI import _load_query [as 别名]
def raw_products(api_kwargs, vcr, test_wkt):
"""A fixture for tests that need some non-specific set of products in the form of a raw response as input."""
with vcr.use_cassette('products_fixture', decode_compressed_response=False):
api = SentinelAPI(**api_kwargs)
raw_products = api._load_query(
api.format_query(test_wkt, ("20151219", "20151228"))
)[0]
return raw_products