cli_utils#
General CLI utility functions.
This module provides helpers for common command-line tasks such as: - Parsing ‘lat,lon’ strings into float tuples - Converting memory size strings (e.g., “10MB”, “2GB”) into bytes - Determining coordinate extents from NetCDF mask datasets - Consolidating coordinate inputs from strings, mask files, or explicit values
Functions#
|
Convert a memory string with units into an integer number of bytes. |
|
Get coordinate bounds from a lonlatbox string, mask file, or explicit values. |
|
Get the coordinate extents from a mask NetCDF file. |
|
Split the input string of 'lat,lon' by comma and convert each part to a float. |