Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does demo mean time=0 when setting initial inputs and input_forcings, and time=1 when setting all_forcings ? #129

Closed
weatherforecasterwhai opened this issue Sep 30, 2024 · 1 comment

Comments

@weatherforecasterwhai
Copy link

Hi,

I was just using 2 time as input: ### t0, t1,for example.
After time shift for sea-ice cover and SST, I still got two times (t0,t1).

Then,
inputs = model.inputs_from_xarray(eval_era5.isel(time=0))
input_forcings = model.forcings_from_xarray(eval_era5.isel(time=0))

1.Does the demo time=0, stands for t-1, and time=1 stands for t0 ?
Because, when printing "eval_era5.head(time=0)" got 0 B and "eval_era5.head(time=1)" stands for t0.
So, inputs = model.inputs_from_xarray(eval_era5.isel(time=0)), sends out error:

"not all values found in index 'time'"

# use persistence for forcing variables (SST and sea ice cover)
all_forcings = model.forcings_from_xarray(eval_era5.head(time=1))

Here, demo says all_forcings (time=1) stands for SST and sea ice cover. I think it's at time t0.
But, what does input_forcings (time=0) stands for?
I think input_forcings (time=0) should also be SST and sea ice cover at time t-1.

So, what's the difference between all_forcings and input_forcing?
Does neuralgcm need two times of SST and sea ice cover as forcing for input?

Hope I said it clear. Thank you!

@weatherforecasterwhai
Copy link
Author

Fix it by a friend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant