Closed eelucio closed 11 months ago
@antarcticrainforest . I just updated the separation of methods for esgf. I also corrected typos all around the code and documentation.
Just a thought: have you thought about shell completion?
I probably am wrong but these queries are not done against a solr with known facets, this is only the api to the esgf api: cmip6, cmip5, cordex still preserver their syntax, for example:
freva esgf project=cmip6 product=scenariomip model=cnrm-cm6-1 institute=cnrm-cerfacs experiment=ssp585 time_frequency=3hr variable=uas ensemble=r1i1p1f2 distrib=false latest=true
will not produce results, but
freva esgf mip_era=CMIP6 activity_id=ScenarioMIP source_id=CNRM-CM6-1 institution_id=CNRM-CERFACS experiment_id=ssp585 frequency=3hr variable=uas variant_label=r1i1p1f2
will.
The fact that we are (in principle) looking at all the nodes in the ESGF (if not stated otherwise) I do not know what will do if we let autocomplete for the facet values, as well.
But I can try it in a next MR.
LGTM once tests are fine!
branch where the documentation of
freva.esgf
orfreva-esgf
has been added.Examples about the flag
have not been added as I have no idea what it does.