ESGF / esgf-wget

Service API endpoint for simplified wget scripts
0 stars 4 forks source link

Temporal search not working for file search #36

Open mauzey1 opened 3 years ago

mauzey1 commented 3 years ago

The temporal search for the wget API using the parameters start and end don't seem to work. In fact, the parameters don't seem to work correctly for esg-search. I implemented these parameters according to their behavior described in the ESGF search API document.

The following query will return results where datetime_start is less than 2000-01-01T00:00:00Z. https://esgf-node.llnl.gov/esg-search/search?end=2000-01-01T00:00:00Z

However, using the wget API will result in no files being found. https://esgf-node.llnl.gov/esg-search/wget?end=2000-01-01T00:00:00Z

I think the reason it doesn't work is due to the datetime_start and datetime_stop facets not being found for the file database. https://esgf-node.llnl.gov/esg-search/search?limit=10&type=File&project=CMIP6

The start and end parameters will either need to be removed from the wget API, or the search will need to combine the dataset and file databases. This might be accomplished using a join query parser.