Open DavidHuber-NOAA opened 1 year ago
I made an initial commit that allows for custom ESG grids with Lambert Conformal Conic write grids. So far this has been tested on large and small grids, including the North American grid and a grid going across the international date line. All of these grids can be created in less than 1 minute on a head node, so this should not need to be wrapped in an sbatch script.
Description
There are a collection of NCL (which is no longer supported) scripts that can be used to create a custom horizontal grid. However, they require that the workflow actually creates the grid in order to generate the write grid. This should be improved so that a user can generate an arbitrary grid without the need to run the workflow. Additionally, a tool does not currently exist to create a custom vertical grid. Instead, user's must manually edit the `global_hyblev_fcst_rrfsL65.txt` file, specifying `a(k)` and `b(k)` coefficients they wish to use to create a sigma grid. ## SolutionTranslate the existing horizontal grid code to Python and replicate the
make_grid
job's generation of the write grid so that it does not need to run. Also, create Python code that takes in an arbitrary sigma/pressure grid and generates a set ofa(k)
andb(k)
coefficients into a file for execution.Acceptance Criteria (Definition of Done)
The code is rewritten in Python and documented within the SRW wiki and/or read-the-docs.
Dependencies (optional)
Related to #400, which refers to the grid plotting tools. These tools will also be translated to Python as part of this work.