CaseClass can look beyond /glade/scratch/mlevy #34
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added three new variables to
CaseClass.__init__()
API:{run_root}/{casename}/run
as$RUNDIR
(looks for log filesand history files there)
{archive_hist_root}/{casename}/{component}/hist
{campaign_root}/{casename}/output/{component}/proc/tseries
The default values for all three of these are
None
, which implies "don't evenlook for files in these directories." Ideally a future update will provide the
user some configuration method for setting the defaults. Given these defaults,
every notebook needed to be updated to include at least one of those three
variables when creating the
CaseClass
object.I also created two notebooks showing how we can look at the 1 degree run with
this new set-up. Currently we have history files for years 95-104 on campaign
so
plot_suite_1deg.ipynb
looks at that decade of output whileplot_suite_maps_0095_1deg.ipynb
shows plots for the first year of data.We now have 14 years of 004 output in campaign, so I updated
plot_suite_004.ipynb
to look at all 14 years instead of just the first 5. I didnot modify
trend_maps.004.ipynb
or runplot_suite_maps
for any additionalyears of 004.