Is Gridded Product¶
-
is_grid
(tableName, varName)¶
Returns True if the specified variable represents a gridded product; otherwise returns False. For instance, model outputs or satellite products in the form of structured arrays are considered gridded products, while underway cruise measurements with irregular spatial or temporal resolutions are considered “sparse” products.
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: Boolean.
Example
Checking if the short name variable, argo_merge_salinity_adj, is a gridded product in the Argo dataset.
#!pip install pycmap -q #uncomment to install pycmap, if necessary
import pycmap
api = pycmap.API(token='<YOUR_API_KEY>')
api.is_grid('tblArgoMerge_REP', 'argo_merge_salinity_adj')