fgreg commented on a change in pull request #12: SDAP-47 Update NEXUS CLI to support datainbounds algorithm URL: https://github.com/apache/incubator-sdap-nexus/pull/12#discussion_r174620404
########## File path: client/nexuscli/nexuscli.py ########## @@ -207,3 +217,59 @@ def time_series(datasets, bounding_box, start_datetime, end_datetime, spark=Fals ) return time_series_result + + +def data_in_bounds(dataset, bounding_box, start_datetime, end_datetime, parameter, metadata_filter): + """ + Fetches point values for a given dataset and geographical area or metadata criteria and time range. + + __dataset__ Name of the dataset as a String + __bounding_box__ Bounding box for area of interest as a `shapely.geometry.polygon.Polygon` + __start_datetime__ Start time as a `datetime.datetime` + __end_datetime__ End time as a `datetime.datetime` + __parameter__ Name of the dataset as a String + __metadata_filter__ List of key:value String metadata criteria + + __return__ List of `nexuscli.nexuscli.TimeSeries` namedtuples Review comment: Returns list of `Subset` namedtuples ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services