Skip to content

Add psychrometric chart to moist-air calculator - #1

Merged
iguchi-lab merged 8 commits into
mainfrom
agent/psychrometric-chart
Aug 17, 2026
Merged

iguchi-lab merged 8 commits into
mainfrom
agent/psychrometric-chart

Conversation

@iguchi-lab

Copy link
Copy Markdown
Owner

What changed

  • port the equations and oblique h-x coordinate transform from iguchi-lab/psychrometric-chart to browser-native SVG
  • draw dry-bulb, relative-humidity, humidity-ratio, and enthalpy lines at the selected pressure
  • plot the current moist-air calculation as a red state point
  • add responsive scrolling and SVG download
  • document the source implementation
  • add Node-based equation/rendering tests and GitHub Actions alongside the existing Python tests

Why

The moist-air calculator previously returned numerical properties only. Integrating the chart makes the calculated state easier to understand without adding a Matplotlib Lambda or another API request.

Validation

  • automated chart equation and SVG-generation tests
  • existing verified Python calculator test suite
  • GitHub Actions runs both suites on this PR

Notes

The chart uses the water-surface Tetens equation across the displayed temperature range, matching the default behavior of iguchi-lab/psychrometric-chart.

@iguchi-lab
iguchi-lab marked this pull request as ready for review August 17, 2026 05:52
@iguchi-lab
iguchi-lab merged commit f648038 into main Aug 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant