MeteoblueSearch#
- class eodag.plugins.search.build_search_result.MeteoblueSearch(provider, config)[source]#
MeteoblueSearch search plugin.
This plugin, which inherits from
ECMWFSearch
, performs a POST request and uses its result to build a singleSearchResult
object.The available configuration parameters are inherited from parent classes, with some a particularity for pagination for this plugin.
- Parameters:
provider (
str
) – An eodag providers configuration dictionaryconfig (
PluginConfig
) –Search plugin configuration:
pagination
(Pagination
) (mandatory): The configuration of how the pagination is done on the provider. For this plugin it has the node:next_page_query_obj
(str
): The additional parameters needed to perform search. These parameters won’t be included in the result. This must be a json dict formatted like{{"foo":"bar"}}
because it will be passed to astr.format()
method before being loaded as json.
- __init__(provider, config)#
- Parameters:
provider (
str
)config (
PluginConfig
)
Methods
__init__
(provider, config)available_values_from_constraints
(...)Filter constraints using input_keywords.
build_query_string
(product_type, query_dict)Build The query string using the search parameters
build_sort_by
(sort_by_arg)Build the sorting part of the query string or body by transforming the
sort_by
argument into a provider-specific string or dictionaryclear
()Clear search context
collect_search_urls
([prep])Wraps PostJsonSearch.collect_search_urls to force product count to 1
count_hits
([count_url, result_type])Count method that will always return 1.
discover_product_types
(**kwargs)Fetch product types list from provider using discover_product_types conf
discover_product_types_per_page
(**kwargs)Fetch product types list from provider using discover_product_types conf using paginated
kwargs["fetch_url"]
discover_queryables
(**kwargs)Fetch queryables list from provider using its constraints file
do_search
([prep])Perform the actual search request, and return result in a single element.
format_as_provider_keyword
(product_type, ...)Return provider equivalent keyword names from EODAG keywords.
get_collections
(prep, **kwargs)Get the collection to which the product belongs
get_metadata_mapping
([product_type])Get the plugin metadata mapping configuration (product type specific if exists)
get_product_type_cfg_value
(key[, default])Get the value of a configuration option specific to the current product type.
get_product_type_def_params
(product_type[, ...])Get the provider product type definition parameters and specific settings
get_sort_by_arg
(kwargs)Extract the
sort_by
argument from the kwargs or the provider default sort configurationlist_queryables
(filters, ...[, ...])Get queryables
map_product_type
(product_type, **kwargs)Get the provider product type from eodag product type
normalize_results
(results, **kwargs)Build
EOProduct
from provider resultquery
([prep])Build ready-to-download SearchResult
queryables_by_form
(form, available_values, ...)Generate Annotated field definitions from form entries and available values Used by Copernicus services like cop_cds, cop_ads, cop_ewds.
queryables_by_values
(available_values, ...)Generate Annotated field definitions from available values.
queryables_from_metadata_mapping
([...])Extract queryable parameters from product type metadata mapping.
update_metadata_mapping
(metadata_mapping)Update plugin metadata_mapping with input metadata_mapping configuration
Attributes
extract_properties
plugins
auth
next_page_url
next_page_query_obj
total_items_nb
need_count