Skip to content

API References for Merra Data

Aishwarya Vijay Sinhasane edited this page Apr 7, 2022 · 3 revisions

Direct API Call

  • Weather-Data-Retrieval

"message": "Success"

  • Plot-Service

{

"message": "Success",
"plot_link": "http://localhost:4566/plots/gahsj.png",
"request_data": {
    "original_request": {
        "date": "2022-01-23",
        "hour": "10",
        "type": "merra"
    },
    "request_id": "gahsj",
    "type": "merra",
    "url": "https://goldsmr4.gesdisc.eosdis.nasa.gov/data/MERRA2/M2I1NXLFO.5.12.4/2022/01/MERRA2_400.inst1_2d_lfo_Nx.20220123.nc4",
    "user_id": "fb01bd6e-634a-4fec-975e-14e9a9472732"
}

}

Gateway

  • Weather-Data-Retrieval
  • POST http://127.0.0.1:5006/v1/weather/request
  • RequestBody:{ "date": "2018-04-28", "time": "12:45", "type": "merra" }
  • Headers: { "access_token": "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NDkyODAxNzQsImV4cCI6MTY0OTMyMzM3NCwidXNlcklkIjoiYWlzaHdhcnlhQGdtYWlsLmNvbSJ9.Kpq1ygiNt86O5G_D3_pRma- ZRCxABEILlv2HRikGZaI" }
  • Response:
"message": "You request will be processed in short time"
  • Plot- Service
  • GET http://127.0.0.1:5006/v1/plots
  • Headers: { "access_token": "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NDkyODAxNzQsImV4cCI6MTY0OTMyMzM3NCwidXNlcklkIjoiYWlzaHdhcnlhQGdtYWlsLmNvbSJ9.Kpq1ygiNt86O5G_D3_pRma- ZRCxABEILlv2HRikGZaI" }
  • Response :
"message": "Success",
"plots": [
    {
        "created_at": "2022-04-06 21:25:04.376000",
        "plot_link": "http://localhost:4566/plots/b3a5ff52-bde8-4f5d-8661-d18bf1fcf03c.png",
        "request": {
            "date": "2018-04-28",
            "hour": "12",
            "type": "merra"
        },
        "request_id": "16039021-c4db-4b15-8a1a-ebfc14628fbd",
        "status": "PROCESSED"
    }
]