Skip to content

Conversation

@dayantur
Copy link

Problem

Phase B validation updates initial surface temperatures from CRU TS4.06 climate data, but was missing roofs and wall arrays in initial_states. This meant these surfaces weren't getting proper CRU temperature initialisation.

Fix
This PR fixes the bug by extending adjust_surface_temperatures() in phase_b.py to update temperature fields in initial_states.roofs and initial_states.walls arrays. This fix ensures all surface temperature initialisation is consistent across initial states.

Main Changes

  • Updated phase_b.py (lines 912-964) by adding iteration through roofs/walls arrays after existing stebbs temperature updates, checking each element for temperature fields and updating to CRU-derived monthly average.

@dayantur dayantur temporarily deployed to github-pages-preview October 15, 2025 11:54 — with GitHub Actions Inactive
@dayantur dayantur self-assigned this Oct 15, 2025
@github-actions
Copy link

github-actions bot commented Oct 15, 2025

🔍 Schema Preview Deployed

Preview URLs:

Production URLs (unchanged):


⚠️ Important: Preview schemas are in a subdirectory and do not affect production. The preview pages include warning banners to prevent accidental use in production configs.

@dayantur dayantur temporarily deployed to github-pages-preview October 15, 2025 11:55 — with GitHub Actions Inactive
Co-authored-by: dayantur <71443948+dayantur@users.noreply.github.com>
@github-actions
Copy link

🤖 I've automatically formatted the code in this PR using:

  • Python: ruff v0.8.6
  • Fortran: fprettify v0.3.7

Please pull the latest changes before making further edits.

@dayantur dayantur temporarily deployed to github-pages-preview October 15, 2025 12:02 — with GitHub Actions Inactive
@dayantur dayantur marked this pull request as draft October 15, 2025 12:04
@dayantur dayantur marked this pull request as ready for review October 15, 2025 12:04
@dayantur dayantur requested a review from sunt05 October 15, 2025 13:45
@dayantur dayantur temporarily deployed to github-pages-preview October 17, 2025 13:08 — with GitHub Actions Inactive
Copy link

@sunt05 sunt05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dayantur - please consider these comments.

@dayantur dayantur temporarily deployed to github-pages-preview October 21, 2025 10:05 — with GitHub Actions Inactive
@dayantur dayantur temporarily deployed to github-pages-preview October 21, 2025 10:15 — with GitHub Actions Inactive
@sunt05 sunt05 self-requested a review October 21, 2025 10:45
@dayantur dayantur temporarily deployed to github-pages-preview October 21, 2025 11:03 — with GitHub Actions Inactive
@sunt05 sunt05 self-requested a review October 21, 2025 11:50
@dayantur dayantur temporarily deployed to github-pages-preview October 21, 2025 12:33 — with GitHub Actions Inactive
@sunt05 sunt05 merged commit b80d345 into master Oct 21, 2025
19 checks passed
sunt05 added a commit that referenced this pull request Nov 20, 2025
Consistency improvements:
- Removed all invalid [improvement] tags (changed to [maintenance]/[feature])
- Converted all markdown-style links [#123](URL) to simple format (#123)
- Fixed all double parentheses issues ((#123)) → (#123)
- Standardised all issue references to repository convention: (#xxx)

Added PR numbers for audit trail:
- November 2025: Added 13 PR numbers (#877, #874, #857, #843, #824, #820, #815, #814, #798, #808, #746, #773)
- October 2025: Added 4 PR numbers (#767, #762, #736)

Statistics:
- Total 2025 entries: 215
- With PR/issue reference: 77 (35.8%, up from 30%)
- All formatting now consistent across entire file

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
sunt05 added a commit that referenced this pull request Nov 20, 2025
* docs: update changelog for 2025.11.20

* docs: add version history page for 2025.11.20

- Created v2025.11.20.rst with release highlights
- Updated version-history.rst toctree
- Updated release template to include version page creation step

* docs: remove new_latest label from previous version

The new_latest label should only appear on the most recent version page (v2025.11.20.rst), not on older versions.

* docs: move version page creation to pre-flight checks

Version history page should be prepared before release, not during.
Also added reminder to remove new_latest label from previous version.

* docs: remove orphaned dev label from version history

The _dev label was left over from when there was a 'Recent Developments'
heading. That section was replaced with a note, but the label remained.
No references to this label exist in the documentation.

* docs: clarify ERA5 data_source parameter changes

Changed 'was earthkit' to 'replaces earthkit' to accurately reflect that
this is a new implementation replacing the old approach, not a simple rename.
Added explicit mention of earthkit.data dependency removal.

* docs: rewrite ERA5 breaking changes to focus on new CDS timeseries data source

Clarified that earthkit was never a user-facing parameter value.
The change is about adopting the new CDS API timeseries data source
by default, not about renaming parameters.

* docs: cleanup and updates

- Removed Doxyfile and api-doxygen.md
- Updated documentation references and links
- Minor documentation improvements

* docs: standardise CHANGELOG.md formatting and add missing PR numbers

Consistency improvements:
- Removed all invalid [improvement] tags (changed to [maintenance]/[feature])
- Converted all markdown-style links [#123](URL) to simple format (#123)
- Fixed all double parentheses issues ((#123)) → (#123)
- Standardised all issue references to repository convention: (#xxx)

Added PR numbers for audit trail:
- November 2025: Added 13 PR numbers (#877, #874, #857, #843, #824, #820, #815, #814, #798, #808, #746, #773)
- October 2025: Added 4 PR numbers (#767, #762, #736)

Statistics:
- Total 2025 entries: 215
- With PR/issue reference: 77 (35.8%, up from 30%)
- All formatting now consistent across entire file

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

3 participants