Assimilating mean-sea-level pressure¶
What if we try a different variable? I’m going to look at mean-sea-level pressure (mslp) from the 20th Century Reanalysis version 2c.
The process is the same as with ERA5 global T2m data except that the data format is slightly different (much lower resolution). mslp has less high-spatial-frequency variability than T2m, and we’re going to take advantage of that by plotting it as contour plots and spaghetti plots which show differences more clearly.

VAE validation: Red contours are from the input dataset, blue contours show generator output. The two left hand plots show comparisons of two cases from the training dataset, the middle plots two cases from the test dataset, and the right hand plots two examples of generator output.¶
Assimilation is done exactly as with ERA5 global T2m data.

Assimilation validation: Red contours are from the input dataset, blue contours show generator output - for each of 25 samples with a different starting point in latent space. Black dots mark the locations of observations assimilated.¶
As with T2m the assimilation works as expected - constraining the generated mslp field in locations lose to observations, but not in regions where there are no observations.