Other Basic Data Queries
Basic Queries
File data
You may pull the underlying file data for a given dataset by using pull_files
. Note, this may result in downloading large datasets.
ds_res.data().pull_files(
dest,
)
where dest
: The destination folder for the files in the dataset.
# Get gridded data adapter.
ds_gadptr = ds_res.data().pull_files('./some/folder/')
# Get gridded data adapter.
ds_gadptr <- ds_res$data()$pull_files("./some/folder/")
Gridded data
If the data is gridded, you can access the gridded data via the gridded data adapter:
# Get gridded data adapter.
ds_gadptr = ds_res.data().gapi()
# Get gridded data adapter.
ds_gadptr <- ds_res$data()$gapi()
Dimensions
You can fetch the dimensions of the underlying grid using the adapter:
print(ds_gadptr.dimensions())
ds_gadptr$dimensions()
Spaces
You can fetch the spaces of the underlying grid using the adapter:
print(ds_gadptr.spaces())
ds_gadptr$spaces()
Variables
You can fetch the variables defined for the underlying grid using the adapter:
print(ds_gadptr.variables())
ds_gadptr$variables()
Updated 8 days ago