-
Notifications
You must be signed in to change notification settings - Fork 53
Add support for short-term archiving #153
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
Add support for short-term archiving #153
Conversation
|
This branch is has #151 as its base so shouldn't be merged until after that PR. A review will be easier after that PR has been merged and this one has been rebased. |
|
This PR is intended to address #143. |
TestingI tested this PR by simulating short-term archiving of the QU240 test case. Here is the input section of my config file: Analysis ran as normal. Note, as this run doesn't support |
This requires new input subdirectories for run, ocean history and ice history. It also requires a separate StreamsFile object for output in run and in history subdirectories in each analysis task. A new helper function has been added under shared/analysis_task.py to set up the common functionality of all tasks. Additional setup common to all sea ice tasks has been added in sea_ice/utility.py The buildConfigFullPath has been changed to build_config_full_path everywhere. A make_directories utility function has been added to make all directories in a path if they don't already exist.
ab09419 to
df74b3b
Compare
|
@milenaveneziani, this has been rebased and should be ready to test out. Until we actually have a run with short-term archiving, you can fake it with something like the following in bash shell. (If you use csh, just temporarily run bash): mkdir fake_short_term_archiving
cd fake_short_term_archiving
mkdir run
mkdir -p ocn/hist
mkdir -p ice/hist
cd run
for file in <real_run_dir>/mpas*.rst*; do echo $file; ln -s $file; done
for file in <real_run_dir>/mpas*_in; do echo $file; ln -s $file; done
for file in <real_run_dir>/streams.*; do echo $file; ln -s $file; done
cd ../ocn/hist
for file in <real_run_dir>/mpaso.hist.timeSeriesStats*; do echo $file; ln -s $file; done
cd ../../ice/hist
for file in <real_run_dir>/mpascice.hist.timeSeriesStats*; do echo $file; ln -s $file; doneThen, you should be able to use an input section similar to what I showed above. |
|
OK, I will try this later tonight. Thanks. |
|
I set up a test on edison as suggested, using the beta1 run. I am testing all diagnostics, so it will take a bit to finish. For now things seem to be working. I will report back tomorrow. |
|
All tests went well on edison. |
This requires new input subdirectories for run, ocean history, and sea ice history. It also requires a separate
StreamsFileobject for output in run and in history subdirectories in each analysis task.A new helper function has been added under
shared/analysis_task.pyto set up the common functionality of all tasks. Additional setup common to all sea ice tasks has been added insea_ice/utility.pyThe
buildConfigFullPathfunction has been changed tobuild_config_full_patheverywhere.A
make_directoriesutility function has been added to make all directories in a path if they don't already exist.