Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Endpoint

Function

Input

Output/Result

POST /aoi-track/

Submit new aoi-track

  • geojson

  • start time (for active keep-up)

  • end time (for active keep-up)

  • track_number

  • orbit_direction

  • user_id

  • metadata json {request_id: {request pairings dict},
    request_id: {request pairings dict}, request_id: {request pairings dict} }

  • aoitrack_id

GET /aoi-track/

List aoi-track

  • queries all aoi-track by user

none

  • returns: json list of aoitrack_id

    • includes aoitrack_id and user_id

  • requests GUI to make AJAX call for only the requests in viewport.

GET /aoi-track/{aoitrack_id}

Get aoi-track

  • aoitrack_id

  • geojson

  • track_number

  • orbit_direction

  • metadata json

Implementation Notes

...

create new aoi-track

This API will call the mozart api to submit new job “create_aoi-track:develop” to create a new AOI using conventions for aoi-track.

Note: dataset=area_of_interest does not have track info in the dataset. Fork https://github.com/hysds/create_aoi to create alternate “create_aoitrack” where the track number and orbit direct is intrinsic in the dataset. This job creates aoitrack.dataset.json with space and time extents. Update aoitrack.met.json to also include the track_number and orbit_direction. username is already included.

update jenkins to build new job type create_aoitrack and register into https://mamba-mozart.aria.hysds.io/figaro/

create new aoi-track

calls mozart api to submit new job “create_aoi-track:develop”.

reference So we can store track info, orbit direction, user info, etc. either in the AOI’s met.json, or even easier by storing it in string tokens that are part of AOI dataset naming convention for this AOI.

Approach can be to call Mozart API to create new dataset=area_of_interest but with dataset ID of convention “aoi_track-<orbit_direction>-<track_number>-<username>-<YYYYMMDDTHHMMSS>”. This will result in publishing new AOI to GRQ with this naming convention.

See an example of how to submit mozart api job in python here: https://github.com/aria-jpl/scihub_acquisition_scraper/blob/develop/crons/aoi_ipf_scrape_cron.py

job type “create_aoi-track:develop” will result in publishing tin GRQ a new dataset=aoi-track

submits Submits sync catch-up jobs for IPF for all acquisitions in that aoi-track.

Assumption: Create AOI of high target areas for the system to keep-up IPFs.

metadata json will be saved inside the datasets directory as dataset.met.json

defaulting these AOIs to “inactive”

list aoi-track

query GRQ for all dataset type aoi-track=area_of_interest , but then filter results for dataset IDs that starts with “aoi_track-*”

get aoi-track

query GRQ given aoitrack_id

return the contents of dataset.met.json as the metadata output field.