Skip to content

Spectral loss #599

@theissenhelen

Description

@theissenhelen

Is your feature request related to a problem? Please describe.

Anemoi-training already provides a spectral loss in the form of a 2d FFT, mostly relevant for limited area models. A spectral loss for global models requires a differentiable implementation of accurate spherical harmonics in torch.

Describe the solution you'd like

We need the following initial steps for this work:

  1. An accurate differentiable harmonic transform in torch that
  • deals with loading pre-computed and/or computing the Legendre polynomials

  • sufficiently efficient to allow computations on standard grid resolutions both with respect to runtime and memory

Our baseline here is the spherical harmonic implementation of ectrans.

  1. A loss module in anemoi-training that handles the spectral transform and computes a loss by e.g. using the power spectrum.

Describe alternatives you've considered

Torch-harmonics:

Torch-harmonics does not currently support reduced gaussian grids.

Additional context

No response

Organisation

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions