Task to allow use of GMAO_perllib for BufrToIoda #507
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.
Description
@cohen-seth Are you able to change your PR to be a branch of the main swell repository? If so, I will change this PR to merge with your branch to make it easier
This PR adds a task
CloneGmaoPerllib
, which allows the upcomingconvert_bufr
suite to use the perl commandsacquire
andacquire_obsys
. It also adds the infrastructure to allowconvert_bufr
to be created and launched as a swell suite.Use of the
acquire
commands through swell will be made possible by extending the PATH ofsubprocess
to includeGMAO_perllib
in the experiment directory.CloneGmaoPerllib
handles placingGMAO_perllib
in the experiment directory. On discover, by default this is done by linking to a existing location,/discover/nobackup/projects/gmao/advda/perllib_opt/GMAO_perllib/g1.0.1
. If no existing location is specified, it will clone it from github.I have included a dummy task
UseAcquire
to demonstrate howacquire
can be called from within python using thesubprocess.run
method. I included a version of the example in (#378), which shows what it would look like translated to python (I'm not sure if it works).swell/src/swell/tasks/use_acquire.py
Lines 30 to 48 in c02a073
To test:
Your
experiment.yaml
should include the following lines:So that running:
will show the help message
Convert_bufr as suite
Running
swell create convert_bufr
will now automatically create an experiment with the two lines added. (other questions will need to be added). Defaults are populated fromsrc/swell/test/suite_tests/convert_bufr-tier1.yaml
. I copied this file fromconvert_ncdiags
, just to see if it works. @cohen-seth Feel free to update the values with the ones you're testing with, but we don't necessarily have to worry about it until after you're done testing your tasks.