bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
cmr::Granule Class Reference
Collaboration diagram for cmr::Granule:
Collaboration graph

Public Member Functions

bes::CatalogItemgetCatalogItem (const BESCatalogUtils *d_catalog_utils) const
 
std::string getDapServiceUrl () const
 
std::string getDataGranuleUrl () const
 
std::string getId () const
 
std::string getLastModifiedStr () const
 
std::string getMetadataAccessUrl ()
 
std::string getName () const
 
size_t getSize () const
 
std::string getSizeStr () const
 
 Granule (const nlohmann::json &granule_json)
 

Detailed Description

Definition at line 43 of file Granule.h.

Constructor & Destructor Documentation

◆ Granule()

cmr::Granule::Granule ( const nlohmann::json & granule_json)
explicit

granule.umm_json { "hits": 1, "took": 399, "items": [ { "meta": { "concept-type": "granule", "concept-id": "G1216079418-GES_DISC", "revision-id": 1, "native-id": "AIRH2SUP.006:AIRS.2002.11.16.240.L2.RetSup_H.v6.0.12.0.G14105054018.hdf", "provider-id": "GES_DISC", "format": "application/echo10+xml", "revision-date": "2016-05-05T14:45:25.846Z" }, "umm": { "TemporalExtent": { "RangeDateTime": { "BeginningDateTime": "2002-11-16T23:59:26.000Z", "EndingDateTime": "2002-11-17T00:05:26.000Z" } }, "GranuleUR": "AIRH2SUP.006:AIRS.2002.11.16.240.L2.RetSup_H.v6.0.12.0.G14105054018.hdf", "SpatialExtent": { "HorizontalSpatialDomain": { "Geometry": { "BoundingRectangles": [ { "WestBoundingCoordinate": -163.196578979492, "EastBoundingCoordinate": -139.618240356445, "NorthBoundingCoordinate": -18.9448909759521, "SouthBoundingCoordinate": -42.5188293457031 } ] } } }, "ProviderDates": [ { "Date": "2016-05-05T13:58:30.000Z", "Type": "Insert" }, { "Date": "2016-05-05T13:58:30.000Z", "Type": "Update" } ], "CollectionReference": { "ShortName": "AIRH2SUP", "Version": "006" }, "PGEVersionClass": { "PGEVersion": "6.0.12.0" }, "RelatedUrls": [ { "URL": "http://discnrt1.gesdisc.eosdis.nasa.gov/data/Aqua_AIRS_Level2/AIRH2SUP.006/2002/320/AIRS.2002.11.16.240.L2.RetSup_H.v6.0.12.0.G14105054018.hdf", "Type": "GET DATA" } ], "DataGranule": { "DayNightFlag": "Day", "Identifiers": [ { "Identifier": "AIRS.2002.11.16.240.L2.RetSup_H.v6.0.12.0.G14105054018.hdf", "IdentifierType": "ProducerGranuleId" } ], "ProductionDateTime": "2014-04-15T09:40:21.000Z", "ArchiveAndDistributionInformation": [ { "Name": "Not provided", "Size": 21.0902881622314, "SizeUnit": "MB" } ] }, "MetadataSpecification": { "URL": "https://cdn.earthdata.nasa.gov/umm/granule/v1.6.4", "Name": "UMM-G", "Version": "1.6.4" } } } ] } Builds Granule from granule.umm_json response from CMR.

Parameters
granule_json

Definition at line 145 of file Granule.cc.

Member Function Documentation

◆ getCatalogItem()

bes::CatalogItem * cmr::Granule::getCatalogItem ( const BESCatalogUtils * d_catalog_utils) const

Definition at line 275 of file Granule.cc.

◆ getDapServiceUrl()

std::string cmr::Granule::getDapServiceUrl ( ) const
inline

Definition at line 69 of file Granule.h.

◆ getDataGranuleUrl()

std::string cmr::Granule::getDataGranuleUrl ( ) const
inline

Definition at line 68 of file Granule.h.

◆ getId()

std::string cmr::Granule::getId ( ) const
inline

Definition at line 67 of file Granule.h.

◆ getLastModifiedStr()

std::string cmr::Granule::getLastModifiedStr ( ) const
inline

Definition at line 72 of file Granule.h.

◆ getMetadataAccessUrl()

std::string cmr::Granule::getMetadataAccessUrl ( )
inline

Definition at line 70 of file Granule.h.

◆ getName()

std::string cmr::Granule::getName ( ) const
inline

Definition at line 66 of file Granule.h.

◆ getSize()

size_t cmr::Granule::getSize ( ) const

Definition at line 267 of file Granule.cc.

◆ getSizeStr()

std::string cmr::Granule::getSizeStr ( ) const
inline

Definition at line 71 of file Granule.h.


The documentation for this class was generated from the following files: