Skip to content

Name the missing folders when climate data is incomplete - #23

Open
eliotmcintire wants to merge 1 commit into
developmentfrom
fix/name-missing-climate-dirs
Open

Name the missing folders when climate data is incomplete#23
eliotmcintire wants to merge 1 commit into
developmentfrom
fix/name-missing-climate-dirs

Conversation

@eliotmcintire

Copy link
Copy Markdown
Collaborator

A small change to make one error easier to act on.

When an expected climate data folder isn't there, prepClimateLayers() currently stops with all(dir.exists(allDirs)) is not TRUE, which doesn't say what is missing. This replaces it with a message that names the tile and the folders:

Climate data folders are missing for tile 39; the downloaded archive may not contain them:
  .../future/39/CNRM-ESM2-1_ssp370@2013MSY
  .../future/39/CNRM-ESM2-1_ssp370@2014MSY
  ...

We ran into this with tile 39: 39_CNRM-ESM2-1_370_MSY_2010.zip on Drive only contains 2011, 2012 and 2017–2019. The other tile 39 archives for that decade that we checked (ssp245 and ssp585 all-variables, ssp370 monthly and yearly) are complete. Happy to share more detail if it helps.

A small test is included. Thank you for taking a look.

🤖 Generated with Claude Code

https://claude.ai/code/session_017gZhFo9aCTrEgMVrP37sUo

prepClimateLayers() stopped with "all(dir.exists(allDirs)) is not TRUE",
which does not say which folders are missing. Now it names the tile and
the folders, and notes that the downloaded archive may not contain them.

Seen with tile 39: the 2010s CNRM-ESM2-1 ssp370 archive contains only
2011, 2012 and 2017-2019.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017gZhFo9aCTrEgMVrP37sUo
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