m2lines / Spinup-NEMO

0 stars 0 forks source link

hange cumsum axis = 1 change update_rho -> thetao_new => Restart["tn"]

EMULATOR FRO NEMO MODEL

img1 Add retstart and prepare

Jumper.ipynb

Prepare and forecast simulations

The objective is to implement a Gaussian process forecast to forecast yearly simulations of NEMO coupled climate model. For this we need simulations files of the sea surface height (zos or ssh), the salinity (so) and temperature (thetao).

We apply PCA on each simulation to transform those features to time series. And we observe the trend in the first component.

img1

We forecast each component with a Gaussian process with the following kernel.

img2

And we evaluate the RMSE

img2

Restart.ipynb

Update of restart files for NEMO

The objective is to update the last restart file to initialize the jump. For this we need the 340 restarts files of the last simulated year. We also need the predictions of the sea surface height (zos or ssh), the salinity (so) and temperature (thetao). We also need the Mask dataset of the corresponding simulation where several informations are needed.

img5

1 - Predicted features

2 - Maskdataset

The Maskdataset contains mask on all grids, vectors and constants

3 - Necessary features to update restart

This is the list of features from the source restart file we need to exploit to update restart.

4 - Restart file update

The restart files contains all physical and dynamical features of the simulation

There is a total of 340 restart file per year. Each file contains a slice of x and y dimensions. Each files contains 58 data variables which 15 are updates using the predictions

NB : difference between now (n) and before (b) arrays : they represent the same states, in practice the restart file save two successive states. In our code we set the two to the same state to use euler forward for the restart.

Grid infos :

img6 img7

Grid T : variables scalaires U V W F

main

Prepare and forecast simulations and initialize restarts files with one command line

Prepare, forecats and predict NB : En amont code de Guillaume pour obtenir des moyennes annuelles

python main.py --ye True --start 25 --end 65 --comp 0.9 --steps 30 --path /scratchu/mtissot/SIMUp6Y