Variable Resolution¶
-
get_var_resolution
(tableName, varName)¶ Returns spatial and temporal resolutions of the given variable.
Parameters: - tableName: string
The name of table associated with the dataset. A full list of table names can be found in the Data Catalog.
- varName: string or list of string
Variable short name. A full list of variable short names can be found in the Data Catalog.
Returns: Pandas dataframe.
Example
Returns the spatial and temporal resolution of the short name variable, AOD, in the MODIS Aerosol Optical Depth dataset.
#!pip install pycmap -q #uncomment to install pycmap, if necessary
import pycmap
api = pycmap.API(token='<YOUR_API_KEY>')
api.get_var_resolution('tblModis_AOD_REP', 'AOD')
SQL Statement
Here is how to achieve the same results using a direct SQL statement. Please refer to Query for more information.
EXEC uspVariableResolution 'tableName', 'varName'
Example
Returns the spatial and temporal resolution of the short name variable, AOD, in the MODIS Aerosol Optical Depth dataset.
EXEC uspVariableResolution 'tblModis_AOD_REP', 'AOD'