bes Updated for version 3.20.13
|
Public Member Functions | |
std::string | convert_ngap_resty_path_to_data_access_url (const std::string &restified_path, const std::string &uid="") |
Converts an NGAP restified granule path into a CMR metadata query for the granule. | |
Static Public Member Functions | |
static bool | signed_url_is_expired (const http::url &signed_url) |
Friends | |
class | NgapApiTest |
ngap::NgapApi::NgapApi | ( | ) |
Definition at line 71 of file NgapApi.cc.
string ngap::NgapApi::convert_ngap_resty_path_to_data_access_url | ( | const std::string & | restified_path, |
const std::string & | uid = "" |
||
) |
Converts an NGAP restified granule path into a CMR metadata query for the granule.
The NGAP module's "restified" interface utilizes a google-esque set of ordered key value pairs using the "/" character as field seperatror.
The NGAP container the "restified_path" will follow the template:
provider/daac_name/datasets/collection_name/granules/granule_name(s?)
Where "provider", "datasets", and "granules" are NGAP keys and "ddac_name", "collection_name", and "granule_name" the their respective values.
For example, "provider/GHRC_CLOUD/datasets/ACES_CONTINUOUS_DATA_V1/granules/aces1cont.nc"
https://cmr.earthdata.nasa.gov/search/granules.umm_json_v1_4? provider=GHRC_CLOUD &entry_title=ACES_CONTINUOUS_DATA_V1 &native_id=aces1cont.nc provider=GHRC_CLOUD &entry_title=ACES CONTINUOUS DATA V1 &native_id=aces1cont_2002.191_v2.50.tar provider=GHRC_CLOUD &native_id=olslit77.nov_analog.hdf &pretty=true
restified_path | The name to decompose. |
Definition at line 425 of file NgapApi.cc.
Definition at line 458 of file NgapApi.cc.