NEDAS.assim_tools.updators package

Submodules

NEDAS.assim_tools.updators.additive module

class NEDAS.assim_tools.updators.additive.AdditiveUpdator(c: Context)[source]

Bases: Updator

compute_increment(c: Context)[source]

Additive updator: just compute the difference between prior and posterior as increments

update_files(c, mem_id, rec_id)[source]

Method to update a single field rec_id in the model restart file. This can be overridden by derived classes for specific update methods Inputs: - c: context object - mem_id: member index - rec_id: record index

NEDAS.assim_tools.updators.alignment module

class NEDAS.assim_tools.updators.alignment.AlignmentUpdator(c: Context)[source]

Bases: Updator

Updator class with alignment technique

displace = {}
compute_increment(c: Context)[source]

Alignment technique: compute optical flows from the pair of prior/posterior state variable field

update_files(c, mem_id, rec_id)[source]

Alignment technique, use the displace increment to adjust the model grid to precondition all the analysis variables for next assimilation step See more details in Ying 2019

NEDAS.assim_tools.updators.alignment.optical_flow(grid, fld1, fld2, nlevel=5, niter_max=100, smoothness_weight=1, **kwargs)[source]
NEDAS.assim_tools.updators.alignment.warp(x, u, v)[source]
NEDAS.assim_tools.updators.alignment.coarsen_mask(x, lev1, lev2)[source]
NEDAS.assim_tools.updators.alignment.coarsen(x, lev1, lev2)[source]
NEDAS.assim_tools.updators.alignment.sharpen(x, lev1, lev2)[source]
NEDAS.assim_tools.updators.alignment.interp2d(x, io, jo)[source]
NEDAS.assim_tools.updators.alignment.deriv_y(f)[source]
NEDAS.assim_tools.updators.alignment.deriv_x(f)[source]
NEDAS.assim_tools.updators.alignment.laplacian(f)[source]

NEDAS.assim_tools.updators.alignment_interp module

class NEDAS.assim_tools.updators.alignment_interp.AlignmentUpdator(c: Context)[source]

Bases: Updator

Updator class with alignment technique

displace = {}
compute_increment(c: Context)[source]

Alignment technique: compute optical flows from the pair of prior/posterior state variable field

update_files(c, mem_id, rec_id)[source]

Alignment technique, use the displace increment to adjust the model grid to precondition all the analysis variables for next assimilation step See more details in Ying 2019

NEDAS.assim_tools.updators.alignment_interp.optical_flow(grid, fld1, fld2, nlevel=5, niter_max=100, smoothness_weight=1, **kwargs)[source]
NEDAS.assim_tools.updators.alignment_interp.warp(x, u, v)[source]
NEDAS.assim_tools.updators.alignment_interp.coarsen_mask(x, lev1, lev2)[source]
NEDAS.assim_tools.updators.alignment_interp.coarsen(x, lev1, lev2)[source]
NEDAS.assim_tools.updators.alignment_interp.sharpen(x, lev1, lev2)[source]
NEDAS.assim_tools.updators.alignment_interp.interp2d(x, io, jo)[source]
NEDAS.assim_tools.updators.alignment_interp.deriv_y(f)[source]
NEDAS.assim_tools.updators.alignment_interp.deriv_x(f)[source]
NEDAS.assim_tools.updators.alignment_interp.laplacian(f)[source]

NEDAS.assim_tools.updators.base module

Module contents

NEDAS.assim_tools.updators.get_updator(c: Context) Updator[source]

Get the correct Updator subclass instance based on the configuration.

Parameters:

c (Context) – the runtime context

Returns:

Corresponding Updator subclass instance.

Return type:

Updator