-
Notifications
You must be signed in to change notification settings - Fork 15
Add additional files to the mpas-analysis cache for time series analysis #760
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,6 +48,11 @@ do | |
| mkdir -p cache/${subdir} ${identifier}/${subdir} | ||
| rsync -av cache/${subdir}/ ${identifier}/${subdir}/ | ||
| done | ||
| files=( "mpasIndexOcean.nc" "mpasTimeSeriesOcean.nc" "seaIceAreaVolNH.nc" "seaIceAreaVolSH.nc") | ||
| for file in "${files[@]}" | ||
| do | ||
| cp cache/timeseries/${file} ${identifier}/timeseries/${file} | ||
| done | ||
| {% endif %} | ||
|
|
||
| # Run MPAS-Analysis | ||
|
|
@@ -297,10 +302,16 @@ fi | |
| echo | ||
| echo ===== CACHE OUTPUT FILES ===== | ||
| echo | ||
| for file in "${files[@]}" | ||
| do | ||
| cp ${identifier}/timeseries/${file} cache/timeseries/${file} | ||
| done | ||
|
Comment on lines
+305
to
+308
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jonbob This is the set of lines that will need to be run once manually to cache the files that weren't cached with the released version of MPAS-Analysis Note: defined above
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cbegeman I think this line might be the trouble that caused |
||
| for subdir in "${cached[@]}" | ||
| do | ||
| rsync -av ${identifier}/${subdir}/ cache/${subdir}/ | ||
| done | ||
| # Remove one particularly large file which does not need to be cached | ||
| rm ${identifier}/timeseries/mpasTimeSeriesSeaIce.nc | ||
|
Comment on lines
+313
to
+314
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to just be deleting a time-series file form the analysis directory, and not to be related to caching at all. Is this perhaps a relic of an earlier approach to copying cache files and something no longer needed? I would think it wouldn't be a great idea to delete output from the mpas-analysis output directory even if it is large unless we decide on a systematic way of cleaning things up that doesn't lose important data.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing large files from MPAS-Analysis that are not needed was requested by HR (specifically @wlin7). Do you think that MPAS-Analysis would be a better place to do this clean-up? I'm not particularly tied to including this in this PR but maybe some more context would be helpful: This file seems to be somewhat of an outlier in MPAS-Analysis output files in that it has dimensions of Time (equal the length of the requested time series) and nCells (equal to the size of the whole mesh, which seems particularly egregious given that only a portion of those cells would contain sea ice). Correct me if there are other files like this. It's not clear to me that this would be "losing important data" because it's just copying information from history files that would (ideally) be archived as opposed to derived analysis variables.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I don't think zppy should be deleting MPAS-Analysis files. This needs to be fixed in MPAS-Analysis instead. Sorry for extra work for, though!
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, there is a corresponding file for the the ocean as far as I know.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's chat about this on Slack.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After having a conversation on Slack, I've come around to this approach. I think MPAS-Analysis would ideally delete this file itself. I think MPAS-Analysis would also ideally extract only the variables that it plots directly from So I am fine with this approach as a less ideal but working alternative. |
||
| {% endif %} | ||
|
|
||
| # Copy output to web server | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.