get_variable_sample
Extract actual data values from a NetCDF variable for quick inspection. Provide file path and variable name to retrieve up to 100 sample values with indices.
Instructions
Extract a sample of actual data values from a variable for inspection.
Args: file_path: Path to the NetCDF file. variable_name: Name of the variable to sample. max_samples: Maximum number of samples to return (default: 100).
Returns: JSON string with sample values and their indices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| max_samples | No | ||
| variable_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |