Skip to content
Discussion options

You must be logged in to vote

@andrewgettelman @brianpm I have made a working example of what this object-passing interface for a script would look like for the regrid_example.py script. Specifically, compare the version on glade here (with the ADF object interface):

/glade/work/nusbaume/SE_projects/model_diagnostics/ADF_fork/scripts/regridding/regrid_example_new.py

with the original version here:

/glade/work/nusbaume/SE_projects/model_diagnostics/ADF_fork/scripts/regridding/regrid_example.py

Obviously the new version requires extra lines to extract the necessary variables, but the actual function interface is much simplified (as well as the code in adf_diag.py). Plus this method gives the script access to the ADF deb…

Replies: 13 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@brianpm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@brianpm
Comment options

@andrewgettelman
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@brianpm
Comment options

@brianpm
Comment options

Answer selected by brianpm
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@brianpm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants