-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add method to write increment fields (#89)
* Convert state field write to a generic nemo field writer. Add code to write increments. * Detect fieldtype from the atlas field when writing. * Implement test for increment writing and also nemo field set write. * Setup increment configuration parameters. * move StateIOUtils to utilities/IOUtils (#105) --------- Co-authored-by: Toby Searle <[email protected]>
- Loading branch information
Showing
9 changed files
with
165 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* (C) British Crown Copyright 2024 Met Office | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
#include "eckit/exception/Exceptions.h" | ||
#include "oops/util/DateTime.h" | ||
#include "oops/base/Variables.h" | ||
#include "oops/base/ParameterTraitsVariables.h" | ||
#include "oops/util/parameters/Parameter.h" | ||
#include "oops/util/parameters/RequiredParameter.h" | ||
|
||
namespace orcamodel { | ||
|
||
class OrcaIncrementParameters : public oops::Parameters { | ||
OOPS_CONCRETE_PARAMETERS(OrcaIncrementParameters, oops::Parameters) | ||
|
||
public: | ||
oops::RequiredParameter<std::string> nemoFieldFile{"output path", this}; | ||
oops::RequiredParameter<util::DateTime> date{"date", this}; | ||
}; | ||
|
||
class OrcaDiracParameters : public oops::Parameters { | ||
OOPS_CONCRETE_PARAMETERS(OrcaDiracParameters, oops::Parameters) | ||
|
||
public: | ||
oops::RequiredParameter<std::vector<int>> ixdir{"x indices", this}; | ||
oops::RequiredParameter<std::vector<int>> iydir{"y indices", this}; | ||
oops::RequiredParameter<std::vector<int>> izdir{"z indices", this}; | ||
}; | ||
} // namespace orcamodel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.