metric_to_angular

Contents

metric_to_angular#

When calculating FSLE or FTLE grids, if the velocity fields are expressed in m/s, the program metric_to_angular.py must make a change of reference in order to calculate how many degrees the particle has been moved.

To avoid this costly conversion in terms of computation time, run this program to change the unit of grids at the input from m/s to degrees/s.

Type metric_to_angular.py --help to see the available options.

Usage#

usage: metric_to_angular [-h] [--mask MASK] src dst u v

Convert the U and V components speeds from metric to angular system units

positional arguments:
  src          Directory containing the NetCDF grids to convert
  dst          Directory containing the NetCDF grids converted
  u            NetCDF variable containing the U component
  v            NetCDF variable containing the V component

options:
  -h, --help   show this help message and exit
  --mask MASK  Select only the files matching the mask