[ ] Ensure that numpy and xarray are optional dependencies, so the code can be used in CLI mode with minimal dependencies. Move numpy and xarray imports to if blocks and set to None if they cannot be imported.
[ ] In functions that use numpy or xarray, raise an error with an installation reminder message if these modules are None
numpy
andxarray
are optional dependencies, so the code can be used in CLI mode with minimal dependencies. Movenumpy
andxarray
imports toif
blocks and set toNone
if they cannot be imported.numpy
orxarray
, raise an error with an installation reminder message if these modules areNone