-
Notifications
You must be signed in to change notification settings - Fork 4
Complete overhaul of preprocessing code #36
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
Draft
ewquon
wants to merge
27
commits into
erf-model:main
Choose a base branch
from
ewquon:refactor_era5_gfs_tools
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or 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
Contributor
ewquon
commented
Sep 4, 2025
- Remove tons of duplicated code
- Refactor and cleanup for clarity and maintainability
- Update package information (pyproject.toml instead of setup.py)
- Automate command-line script generation
for "simple" ERF output format
Note: these two write functions are mostly identical
for backwards compatibility with clearer names: - `write_binary_vtk_on_native_grid` (formerly `write_binary_vtk_structured_grid`) - `write_binary_vtk_on_cartesian_grid` (formerly `write_binary_vtk_structured_file`)
Also, remove legacy setup.py; warn if no cdsapi installed
to utils.projection
ewquon
added a commit
to ewquon/erftools
that referenced
this pull request
Sep 19, 2025
ewquon
added a commit
that referenced
this pull request
Sep 19, 2025
* Allow single dx,dy input * Cleanup code with RealInit * Fix timestep parsing logic; fix output intervals * Add more output params, including auxhist2 * refinement_indicators already a list * Revert to level 2.5 and add note about MYNN * Update mp_physics input mapping * Update log info * Fix unknown param warning * Rename MOST bc to SurfaceLayer * Always write out erf.plt_file_1 sampling * Add comment about default smag Cs * Handle multiple wrfinput files * Dont warn about additional nc_init_files * Correctly output Smag2D opt * Output max_level for each nest * Parse lsm physics from wrf * Fix nest indexing * No need to output default substepping type * Revert to SLM for usability at the moment * Fix sfclay name * Change default terrain_smoothing option * amr.regrid_int --> erf.regrid_int * Change output name to be automatically detected by paraview * Add more flexible ascii output * Correctly output terrain grids for different domains * Rename for clarity * Reorg modules for clarity * Cherry pick pyproject.toml, README from PR #36 * Create wrf_namelist_to_erf console script * Make datetime parsing more robust * Fix handling of default plot vars * Update mp_physics mappings * Fix syntax * Add radiation params; estiamte rad_freq_in_steps if needed * Remove deprecated param * Generalize o3vmr to be constant or column array * Add check_erf_input script * Add --tslist option to namelist converter * Add CAM ozone data and notebook to process and check it from WRF/run: - ozone_lat.formatted - ozone_plev.formatted - ozone.formatted * Add function to calculate interp weights for monthly data Following `ozn_time_int` in WRF/phys/module_radiation_driver.F Verified that the python version of ozn_time_int matches the original fortran to machine double precision. Interpolating using the new `monthly_interp_weights_from_date` is identical to the python port * Add utils for getting zcc from an inputfile; estimating p(z) * Add new radiation interp functions * Make ERFParms start/stop datetime parms consistent with ERF * More robust datetime input handling * Create generate_ozone_profile script * Add option to read in wrfinput WRFInputDeck.__init__; scrape map attrs * Split console script into separate interp_ozone function; call to update erf.o3vmr * Automatically calculate O3 profile
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.