bes Updated for version 3.20.13
cmr::CmrApi Class Reference
Collaboration diagram for cmr::CmrApi:
Collaboration graph

Public Member Functions

void get_collection_ids (std::vector< std::string > &collection_ids)
 
void get_days (std::string collection_name, std::string r_year, std::string r_month, std::vector< std::string > &days_result)
 
cmr::Granuleget_granule (const std::string path)
 
cmr::Granuleget_granule (std::string collection_name, std::string r_year, std::string r_month, std::string r_day, std::string granule_id)
 
void get_granule_ids (std::string collection_name, std::string r_year, std::string r_month, std::string r_day, std::vector< std::string > &granules_result)
 
void get_granule_ids (std::string collection_name, std::string r_year, std::string r_month, std::vector< std::string > &granules_result)
 
void get_granules (std::string collection_name, std::string r_year, std::string r_month, std::string r_day, std::vector< cmr::Granule * > &granules)
 
void get_months (std::string collection_name, std::string year, std::vector< std::string > &months_result)
 
void get_years (std::string collection_name, std::vector< std::string > &years_result)
 
unsigned long granule_count (std::string collection_name, std::string r_year, std::string r_month, std::string r_day)
 

Detailed Description

Definition at line 45 of file CmrApi.h.

Constructor & Destructor Documentation

◆ CmrApi()

cmr::CmrApi::CmrApi ( )

Definition at line 66 of file CmrApi.cc.

Member Function Documentation

◆ get_collection_ids()

void cmr::CmrApi::get_collection_ids ( std::vector< std::string > &  collection_ids)

Definition at line 555 of file CmrApi.cc.

◆ get_days()

void cmr::CmrApi::get_days ( std::string  collection_name,
std::string  r_year,
std::string  r_month,
std::vector< std::string > &  days_result 
)

Creates a list of the valid days for the collection matching the year and month

Definition at line 445 of file CmrApi.cc.

◆ get_granule()

cmr::Granule * cmr::CmrApi::get_granule ( std::string  collection_name,
std::string  r_year,
std::string  r_month,
std::string  r_day,
std::string  granule_id 
)

Returns all of the Granules in the collection matching the date.

Definition at line 569 of file CmrApi.cc.

◆ get_granule_ids()

void cmr::CmrApi::get_granule_ids ( std::string  collection_name,
std::string  r_year,
std::string  r_month,
std::string  r_day,
std::vector< std::string > &  granules_result 
)

Definition at line 474 of file CmrApi.cc.

◆ get_granules()

void cmr::CmrApi::get_granules ( std::string  collection_name,
std::string  r_year,
std::string  r_month,
std::string  r_day,
std::vector< cmr::Granule * > &  granules 
)

Returns all of the Granules in the collection matching the date.

Definition at line 536 of file CmrApi.cc.

◆ get_months()

void cmr::CmrApi::get_months ( std::string  collection_name,
std::string  year,
std::vector< std::string > &  months_result 
)

Queries CMR for the 'collection_name' and returns the span of years covered by the collection.

https://cmr.earthdata.nasa.gov/search/granules.json?concept_id=C179003030-ORNL_DAAC&include_facets=v2&temporal_facet%5B0%5D%5Byear%5D=1985

Parameters
collection_nameThe name of the collection to query.
collection_yearsA vector into which the years will be placed.

Definition at line 382 of file CmrApi.cc.

◆ get_years()

void cmr::CmrApi::get_years ( std::string  collection_name,
std::vector< std::string > &  years_result 
)

Queries CMR for the 'collection_name' and returns the span of years covered by the collection.

Parameters
collection_nameThe name of the collection to query.
collection_yearsA vector into which the years will be placed.

Definition at line 352 of file CmrApi.cc.

◆ granule_count()

unsigned long cmr::CmrApi::granule_count ( std::string  collection_name,
std::string  r_year,
std::string  r_month,
std::string  r_day 
)

Definition at line 495 of file CmrApi.cc.


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