NOAA-PSL / stochastic_physics

Contains the stochastic physics pattern generator for the Unified Forecast System
Other
6 stars 41 forks source link

Add comment to smc pert unit & fix bug in stc pert #70

Closed yuanxue2870 closed 10 months ago

yuanxue2870 commented 10 months ago

In response to Issue (https://github.com/NOAA-PSL/stochastic_physics/issues/71), two edits are made in this PR:

  1. Add a comment to "smc" perturbation unit, which will be helpful for new users to distinguish from actual "smc" unit commonly used in the model.
  2. Fix perturbation calculation in "stc" related part as pert*tfactor_state.
pjpegion commented 10 months ago

Is there a PR at the ufs-weather-model level? And will this change a regression test baseline?

yuanxue2870 commented 10 months ago

Is there a PR at the ufs-weather-model level? And will this change a regression test baseline?

Thanks for the follow-up inquiries.

pjpegion commented 10 months ago

yes, please create an github issue at https://github.com/ufs-community/ufs-weather-model/issues and issue a PR there for the update to the stochastic physics submodule.

yuanxue2870 commented 10 months ago

yes, please create an github issue at https://github.com/ufs-community/ufs-weather-model/issues and issue a PR there for the update to the stochastic physics submodule.

Done. Thanks.

SamuelTrahanNOAA commented 10 months ago

This pull request's branch head does not match the ufs-weather-model stochastic_physics submodule HEAD.

Your branch has:

The submodule hash from https://github.com/ufs-community/ufs-weather-model/pull/2043 is:

Which is not in the repository.

Did you forget to push your latest changes?

SamuelTrahanNOAA commented 10 months ago

I'm pinging @jkbk2004 so he is aware of the hash mismatch

yuanxue2870 commented 10 months ago

This pull request's branch head does not match the ufs-weather-model stochastic_physics submodule HEAD.

Your branch has:

The submodule hash from ufs-community/ufs-weather-model#2043 is:

  • 5bf998e65f3aba07b99a7900b9ffc31537a5c1d9

Which is not in the repository.

Did you forget to push your latest changes?

Hi Sam,

Thanks for the heads up! Sorry for the inconveniences.

As I am fairly new to Github, I think I may have some issues pushing my changes to the submodule at the ufs-weather-model level. I am not sure about the best practice to do this. If you could give me some advice, that would be greatly appreciated.

I first cloned/forked the lasted stochastics_physics and commit and push changes, the hash is 2afb1f4 at the stochastics_physics level.

Then I cloned/forked the lasted ufs-weather-model separately and commit and push my changes to the submodule again, which seems to change the hash to 5bf998. I did try to switch the .gitmodule to point to my branch, but does not seem to work.

Thanks for your help!

Best, Yuan

SamuelTrahanNOAA commented 10 months ago

@yuanxue2870 - This page will show you the changes in this pull request. Can you please look at them and tell us if these are the correct changes?

https://github.com/NOAA-PSL/stochastic_physics/pull/70/files

If the changes on that page are correct, I can use the 2afb1f4 version.

yuanxue2870 commented 10 months ago

@yuanxue2870 - This page will show you the changes in this pull request. Can you please look at them and tell us if these are the correct changes?

https://github.com/NOAA-PSL/stochastic_physics/pull/70/files

If the changes on that page are correct, I can use the 2afb1f4 version.

These are the exact changes. Please use the 2afb1f4 version.

Thanks, Yuan

SamuelTrahanNOAA commented 10 months ago

Excellent. I will begin testing the combined pull request now.

jkbk2004 commented 10 months ago

@pjpegion all tests are done. we can move to merge this pr. can you merge this pr?

jkbk2004 commented 10 months ago

Thanks, @pjpegion !