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


   [Jira ticket](https://bugs.earthdata.nasa.gov/browse/CDMS-47)
   
   In this branch, I've made the necessary fixes to get matchup working on 
AVHRR OI data. 
   
   Sample request:
   
   ```sh
   curl --request GET 
'localhost:8083/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&parameter=sst&depthMin=0&depthMax=5&matchOnce=true&matchup=icoads'
   ```
   
   Response:
   
   ```json
   {
       "executionId": "ca33871b-db76-492c-bc43-bbd7d4bfea7e",
       "data": [
           {
               "sea_water_temperature": 276.22998046875,
               "sea_water_temperature_depth": 0,
               "sea_water_salinity": null,
               "sea_water_salinity_depth": null,
               "wind_speed": null,
               "wind_direction": null,
               "wind_u": null,
               "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": null,
               "sea_water_salinity_depth": null,
               "wind_speed": null,
               "wind_direction": null,
               "wind_u": null,
               "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": "sst",
           "depthMin": 0.0,
           "depthMax": 5.0
       },
       "bounds": {},
       "count": null,
       "details": {
           "timeToComplete": 22,
           "numInSituRecords": 0,
           "numInSituMatched": 2,
           "numGriddedChecked": 0,
           "numGriddedMatched": 2
       }
   }
   ```
   
   ---
   
   I ran these tests using `dc_policy=WhiteListRoundRobinPolicy`.
   


----------------------------------------------------------------
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