Uh oh!
There was an error while loading. Please reload this page.
Add support for short-term archiving - #153
Conversation
xylar
commented
Mar 23, 2017
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. |
xylar
commented
Mar 23, 2017
This PR is intended to address #143. |
xylar
commented
Mar 23, 2017
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
df74b3bComparexylar
commented
Mar 24, 2017
@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
forfilein<real_run_dir>/mpas*.rst*;doecho$file; ln -s $file;doneforfilein<real_run_dir>/mpas*_in;doecho$file; ln -s $file;doneforfilein<real_run_dir>/streams.*;doecho$file; ln -s $file;donecd ../ocn/hist
forfilein<real_run_dir>/mpaso.hist.timeSeriesStats*;doecho$file; ln -s $file;donecd ../../ice/hist
forfilein<real_run_dir>/mpascice.hist.timeSeriesStats*;doecho$file; ln -s $file;doneThen, you should be able to use an input section similar to what I showed above. |
milenaveneziani
commented
Mar 24, 2017
OK, I will try this later tonight. Thanks. |
milenaveneziani
commented
Mar 25, 2017
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. |
xylar
commented
Mar 25, 2017
milenaveneziani
commented
Mar 26, 2017
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.