pyfvcom2.weights_calculator module
- class pyfvcom2.weights_calculator.ExponentialWeightsCalculator[source]
Bases:
WeightsCalculatorExponential weights calculator for different grid bands within a nest
- class pyfvcom2.weights_calculator.LinearWeightsCalculator[source]
Bases:
WeightsCalculatorLinear weights calculator for different grid bands within a nest
- pyfvcom2.weights_calculator.get_weights_calculator(calculation_method: str) WeightsCalculator[source]
Factory function to get the appropriate WeightsCalculator instance.
- Args:
calculation_method (str): The method of weight calculation (“linear”, “inverse”, “exponential”).
- Returns:
WeightsCalculator: An instance of the corresponding WeightsCalculator subclass.
- Raises:
ValueError: If an unknown calculation method is provided.