Skip to content

Allow any number of extra files in subdomain_extractor - #1006

Open
trhille wants to merge 1 commit into
MPAS-Dev:mainfrom
trhille:landice/allow_many_extra_subdomain_files
Open

trhille wants to merge 1 commit into
MPAS-Dev:mainfrom
trhille:landice/allow_many_extra_subdomain_files

Conversation

@trhille

@trhille trhille commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Previously only extra_file1 through extra_file5 were read, so a sixth forcing file was silently ignored. Replace the five hard-coded names with a helper that collects any extra_fileN option from the config section, sorted by N, so an arbitrary number of extra files can be interpolated.

Also validate the extra_fileN paths (existence, and that interp_method is ncremap) before doing any of the expensive culling/mapping work, instead of only checking right before each file is remapped at the end of the step. This avoids a long wait before learning that a path was mistyped.

Checklist

  • User's Guide has been updated
  • Developer's Guide has been updated
  • API documentation in the Developer's Guide (api.rst) has any new or modified class, method and/or functions listed
  • Documentation has been built locally and changes look as expected
  • Document (in a comment titled Testing in this PR) any testing that was used to verify the changes

Previously only extra_file1 through extra_file5 were read, so a sixth
forcing file was silently ignored. Replace the five hard-coded names
with a helper that collects any extra_fileN option from the config
section, sorted by N, so an arbitrary number of extra files can be
interpolated.

Also validate the extra_fileN paths (existence, and that interp_method
is ncremap) before doing any of the expensive culling/mapping work,
instead of only checking right before each file is remapped at the end
of the step. This avoids a long wait before learning that a path was
mistyped.

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

This branch has not been deployed

No deployments
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