-
Notifications
You must be signed in to change notification settings - Fork 10
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
Read albedo from file over time (v2) #280
Conversation
6d4fa60
to
6b53e1f
Compare
9bf5e09
to
afbe739
Compare
you wrote:
this is a great idea. |
Y.bucket.W .= 0.0 | ||
Y.bucket.Ws .= 0.0 | ||
Y.bucket.σS .= 0.0 | ||
set_initial_aux_state! = make_set_initial_aux_state(model) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps we can also test set_initial_parameter_field! and next_albedo directly (aside from via update_aux and set_initial_aux_state)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, good idea
7bae42c
to
2305343
Compare
2305343
to
24a6d0b
Compare
bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Purpose
Using the recently-added FileReader module, this PR adds a new albedo model type that allows us to read in albedo from a NetCDF file that varies in time.
Closes #243
To-do
BulkAlbedoTemporal
test to workinterpolate_data
when current date = a date in the fileNotes
BulkAlbedoTemporal
intest/standalone/Bucket/albedo_types.jl
, which also tests some functionality ofFileReader.interpolate_data
that isn't tested elsewhere. This test involves a lot of setup (making a PrescribedData object and everything inside of it, reading in a data file for many points in time, creating a space) which is required for theBulkAlbedoTemporal
test anyway, so it was easier to just write it there. However, we should really add a more thorough test forinterpolate_data
intest/shared_utilities/file_reader.jl
so the module's functions are thoroughly tested there.FileReader.interpolate_data
#285