skorper opened a new pull request #126:
URL: https://github.com/apache/incubator-sdap-nexus/pull/126


   [Jira ticket](https://bugs.earthdata.nasa.gov/browse/CDMS-50)
   
   Removed the `parameter` requirement on the matchup endpoint. If no parameter 
is provided, the behavior of `sst`, `sss` and `wind` will be combined. 
   
   Example:
   
   ```
   
{{big_data_url}}/match_spark?primary=avhrr-l4-glob-v2-daily-ncei-ghrsst-sstblend-avhrr-oi-glob-v020-fv020&startTime=1442102400&endTime=1442288800&tt=86400&rt=1000&b=-67.43499976462817,60.39585573909287,-50.681836983854154,76.72666987833477&platforms=1,2,3,4,5,6,7,8,9&depthMin=0&depthMax=5&matchOnce=true&matchup=icoads
   ```
   
   Response:
   
   
   ```json
   {
       "executionId": "73d1bb41-f853-4574-b05a-20b7af26f130",
       "data": [
           {
               "sea_water_temperature": 276.22998046875,
               "sea_water_temperature_depth": 0,
               "sea_water_salinity": 276.22998046875,
               "sea_water_salinity_depth": null,
               "wind_speed": null,
               "wind_direction": null,
               "wind_u": 276.22998046875,
               "wind_v": null,
               "platform": "orbiting satellite",
               "device": "radiometers",
               "x": "-62.875",
               "y": "75.125",
               "point": "Point(-62.875 75.125)",
               "time": 1442102400,
               "fileurl": 
"20150913120000-NCEI-L4_GHRSST-SSTblend-AVHRR_OI-GLOB-v02.0-fv02.0.nc",
               "id": "38e752cf-72bf-387e-8641-8f45d11b32ee[[0, 0, 18]]",
               "source": 
"avhrr-l4-glob-v2-daily-ncei-ghrsst-sstblend-avhrr-oi-glob-v020-fv020",
               "matches": [
                   {
                       "sea_water_temperature": 3.2,
                       "sea_water_temperature_depth": null,
                       "sea_water_salinity": null,
                       "sea_water_salinity_depth": null,
                       "wind_speed": null,
                       "wind_direction": null,
                       "wind_u": null,
                       "wind_v": null,
                       "platform": "drifting surface float",
                       "device": null,
                       "x": "-62.88",
                       "y": "75.13",
                       "point": "Point(-62.88 75.13)",
                       "time": 1442124000,
                       "fileurl": null,
                       "id": "LCAHED",
                       "source": "icoads"
                   }
               ]
           },
           {
               "sea_water_temperature": 276.1499938964844,
               "sea_water_temperature_depth": 0,
               "sea_water_salinity": 276.1499938964844,
               "sea_water_salinity_depth": null,
               "wind_speed": null,
               "wind_direction": null,
               "wind_u": 276.1499938964844,
               "wind_v": null,
               "platform": "orbiting satellite",
               "device": "radiometers",
               "x": "-62.875",
               "y": "75.125",
               "point": "Point(-62.875 75.125)",
               "time": 1442188800,
               "fileurl": 
"20150914120000-NCEI-L4_GHRSST-SSTblend-AVHRR_OI-GLOB-v02.0-fv02.0.nc",
               "id": "6ba8741b-4eb8-30f6-9470-3ae2b8fa5f63[[0, 0, 18]]",
               "source": 
"avhrr-l4-glob-v2-daily-ncei-ghrsst-sstblend-avhrr-oi-glob-v020-fv020",
               "matches": [
                   {
                       "sea_water_temperature": 3.2,
                       "sea_water_temperature_depth": null,
                       "sea_water_salinity": null,
                       "sea_water_salinity_depth": null,
                       "wind_speed": null,
                       "wind_direction": null,
                       "wind_u": null,
                       "wind_v": null,
                       "platform": "drifting surface float",
                       "device": null,
                       "x": "-62.88",
                       "y": "75.13",
                       "point": "Point(-62.88 75.13)",
                       "time": 1442124000,
                       "fileurl": null,
                       "id": "LCAHED",
                       "source": "icoads"
                   }
               ]
           }
       ],
       "params": {
           "primary": 
"avhrr-l4-glob-v2-daily-ncei-ghrsst-sstblend-avhrr-oi-glob-v020-fv020",
           "matchup": "icoads",
           "startTime": 1442102400,
           "endTime": 1442288800,
           "bbox": 
"-67.43499976462817,60.39585573909287,-50.681836983854154,76.72666987833477",
           "timeTolerance": 86400,
           "radiusTolerance": 1000.0,
           "platforms": "1,2,3,4,5,6,7,8,9",
           "parameter": null,
           "depthMin": 0.0,
           "depthMax": 5.0
       },
       "bounds": {},
       "count": null,
       "details": {
           "timeToComplete": 27,
           "numInSituRecords": 0,
           "numInSituMatched": 2,
           "numGriddedChecked": 0,
           "numGriddedMatched": 2
       }
   }
   ```
   
   Notice that the sst, sss, and wind values are provided in the response. 
Note: This is not deployed on bigdata yet. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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


Reply via email to