How adithyavemuri/wrf_tools works
WRF Tools is a Python toolkit for reproducible WRF/WRF-LES post-processing. A researcher opens WRF output, extracts or transforms fields, computes meteorological and turbulence diagnostics, and produces visualizations or reports; a separately documented flagship converts WRF-LES velocity planes to TurbSim/OpenFAST BTS and checks the binary round trip. The graph preserves these distinct analysis and coupling branches. Some capabilities are documented but their implementations were not sampled, so their internal links are omitted or supported only by README statements.
Main entry points: hindcast.py Hindcast workflow · diagnostic_groups.py Diagnostic groups · datasets.py WRF I/O · bts.py BTS file I/O
Components 28
WRF input and grids
- WRF I/O
src/wrf_tools/io/datasets.py - Field extraction
src/wrf_tools/extract.py - Grid operations
src/wrf_tools/grid - WPS domains
src/wrf_tools/wps
Diagnostics and analysis
- Meteorology
src/wrf_tools/diagnostics/meteorology.py - Advanced diagnostics
src/wrf_tools/diagnostics/advanced.py - Turbulence analysis
src/wrf_tools/diagnostics/turbulence.py - WRF-LES analysis
src/wrf_tools/les/diagnostics.py - Spatial filters
src/wrf_tools/filters.py - Spectral analysis
src/wrf_tools/spectra.py - Explicit averaging
src/wrf_tools/averaging.py - Observations
src/wrf_tools/observations.py - Validation metrics
src/wrf_tools/validation.py
Visualization and reporting
- Hindcast workflow
src/wrf_tools/hindcast.py - Wind figures
src/wrf_tools/visualization.py - Interactive diagnostics
src/wrf_tools/interactive.py - Diagnostic views
src/wrf_tools/_diagnostic_interactive.py - Reports
src/wrf_tools/reporting.py - Map helpers
src/wrf_tools/maps.py
OpenFAST coupling
- Wind-field mapping
src/wrf_tools/coupling/openfast/wrf_les.py - BTS file I/O
src/wrf_tools/coupling/openfast/bts.py - Wind formats
src/wrf_tools/coupling/openfast/formats.py - Field operations
src/wrf_tools/coupling/openfast/operations.py
Shared methods
- Diagnostic groups
src/wrf_tools/diagnostic_groups.py - Data errors
src/wrf_tools/exceptions.py
Other components
- Researcher
- WRF output
- OpenFAST/TurbSim
Connections 30
- Researcher → WRF I/O: opens data
README.md - WRF output → WRF I/O: provides files
README.md - WRF I/O → Field extraction: supplies fields
- WRF I/O → Grid operations: destaggers fields
src/wrf_tools/io/datasets.py - Researcher → Hindcast workflow: requests report
README.md - Hindcast workflow → WRF I/O: opens sequences
src/wrf_tools/hindcast.py - Hindcast workflow → Diagnostic groups: selects diagnostics
src/wrf_tools/hindcast.py - Hindcast workflow → Meteorology: uses diagnostics
src/wrf_tools/hindcast.py - Hindcast workflow → Turbulence analysis: uses analysis
src/wrf_tools/hindcast.py - Hindcast workflow → Wind figures: builds figures
src/wrf_tools/hindcast.py - Hindcast workflow → Reports: creates report
src/wrf_tools/hindcast.py - Diagnostic groups → Advanced diagnostics: selects algorithms
src/wrf_tools/diagnostic_groups.py - Diagnostic groups → Grid operations: uses grid tools
src/wrf_tools/diagnostic_groups.py - Diagnostic groups → Spatial filters: uses filters
src/wrf_tools/diagnostic_groups.py - Diagnostic groups → Spectral analysis: uses spectra
src/wrf_tools/diagnostic_groups.py - Diagnostic groups → Explicit averaging: uses reductions
src/wrf_tools/diagnostic_groups.py - WRF-LES analysis → Grid operations: destaggers velocity
src/wrf_tools/les/diagnostics.py - WRF-LES analysis → Spatial filters: filters velocity
src/wrf_tools/les/diagnostics.py - WRF-LES analysis → Turbulence analysis: calculates fluxes
src/wrf_tools/les/diagnostics.py - Advanced diagnostics → Spectral analysis: computes spectra
src/wrf_tools/diagnostics/advanced.py - Wind figures → Grid operations: destaggers fields
src/wrf_tools/visualization.py - Wind figures → Map helpers: uses map helpers
src/wrf_tools/visualization.py - Interactive diagnostics → Diagnostic views: uses views
src/wrf_tools/interactive.py - Researcher → Wind-field mapping: supplies velocity
README.md - Wind-field mapping → BTS file I/O: writes field
README.md - BTS file I/O → BTS file I/O: reads back
src/wrf_tools/coupling/openfast/bts.py - Researcher → BTS file I/O: checks round trip
README.md - BTS file I/O → OpenFAST/TurbSim: provides inflow
README.md - Wind formats → OpenFAST/TurbSim: supports formats
- Field operations → OpenFAST/TurbSim: supports field operations