Skip to content

[GCAFS] Move ROTDIR into JJOB & remove obsolete def variables#4724

Open
TravisElless-NOAA wants to merge 6 commits intoNOAA-EMC:dev/gcafs.v1from
TravisElless-NOAA:feature/gcafs_jjob_rotdir
Open

[GCAFS] Move ROTDIR into JJOB & remove obsolete def variables#4724
TravisElless-NOAA wants to merge 6 commits intoNOAA-EMC:dev/gcafs.v1from
TravisElless-NOAA:feature/gcafs_jjob_rotdir

Conversation

@TravisElless-NOAA
Copy link
Copy Markdown
Contributor

Description

This PR is a continuation from #4701. Previously ROTDIR was designed to use compath.py in config.base. This PR moves this variable out of config.base and explicitly sets ROTDIR in each jjob.

Additionally, I have removed two variables from the gcafs_v1.def ecf script that should no longer need to be defined.

Resolves #4689

Type of change

  • Bug fix (fixes something broken)
  • New feature (adds functionality)
  • Maintenance (code refactor, clean-up, new CI test, etc.)

Change characteristics

  • Is this change expected to change outputs (e.g. value changes to existing outputs, new files stored in COM, files removed from COM, filename changes, additions/subtractions to archives)? NO
  • Is this a breaking change (a change in existing functionality)? NO
  • Does this change require a documentation update? NO
  • Does this change require an update to any of the following submodules? NO

How has this been tested?

GCDAS 00z ecflow cycle

Checklist

  • Any dependent changes have been merged and published
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have documented my code, including function, input, and output descriptions
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • This change is covered by an existing CI test or a new one has been added
  • Any new scripts have been added to the .github/CODEOWNERS file with owners
  • I have made corresponding changes to the system documentation if necessary

@TravisElless-NOAA TravisElless-NOAA changed the title Move ROTDIR into JJOB & remove obsolete def variables [GCAFS] Move ROTDIR into JJOB & remove obsolete def variables Mar 27, 2026
Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

shellcheck

⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
This is a literal string. To run as a command, use $(..) instead of '..' . SC2041

for grid in '1p00'; do


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


🚫 [shellcheck] reported by reviewdog 🐶
You need a space after the '{'. SC1054


⚠️ [shellcheck] reported by reviewdog 🐶
This } is literal. Check expression (missing ;/\n?) or quote it. SC1083


🚫 [shellcheck] reported by reviewdog 🐶
You need a space after the '{'. SC1054


⚠️ [shellcheck] reported by reviewdog 🐶
This } is literal. Check expression (missing ;/\n?) or quote it. SC1083


🚫 [shellcheck] reported by reviewdog 🐶
Expected a '}'. If you have one, try a ; or \n in front of it. SC1056

https://github.com/NOAA-EMC/global-workflow/blob/06ac355333668858e5f2de18dee70bfa11995a75/dev/jobs/JGLOBAL_OFFLINE_ATMOS_ANALYSIS.j2#L78


🚫 [shellcheck] reported by reviewdog 🐶
Missing '}'. Fix any mentioned problems and try again. SC1072

https://github.com/NOAA-EMC/global-workflow/blob/06ac355333668858e5f2de18dee70bfa11995a75/dev/jobs/JGLOBAL_OFFLINE_ATMOS_ANALYSIS.j2#L78


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")


⚠️ [shellcheck] reported by reviewdog 🐶
Declare and assign separately to avoid masking return values. SC2155

export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")

Copy link
Copy Markdown
Contributor

@CoryMartin-NOAA CoryMartin-NOAA left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @TravisElless-NOAA !

# Setup Python path for pygfs
PYTHONPATH="${HOMEglobal}/ush/python${PYTHONPATH:+:${PYTHONPATH}}"
export PYTHONPATH
export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To get rid of the pesky shfmt errors, this should be on two lines, just like the PYTHONPATH declaration above:

Suggested change
export ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")
ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")
export ROTDIR

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

shellcheck

🚫 [shellcheck] reported by reviewdog 🐶
You need a space after the '{'. SC1054


⚠️ [shellcheck] reported by reviewdog 🐶
This } is literal. Check expression (missing ;/\n?) or quote it. SC1083


🚫 [shellcheck] reported by reviewdog 🐶
Expected a '}'. If you have one, try a ; or \n in front of it. SC1056

https://github.com/NOAA-EMC/global-workflow/blob/d2aa3db6f6545fb14c8c697d945ce7153771d4f7/dev/jobs/JGLOBAL_OFFLINE_ATMOS_ANALYSIS.j2#L79


🚫 [shellcheck] reported by reviewdog 🐶
Missing '}'. Fix any mentioned problems and try again. SC1072

https://github.com/NOAA-EMC/global-workflow/blob/d2aa3db6f6545fb14c8c697d945ce7153771d4f7/dev/jobs/JGLOBAL_OFFLINE_ATMOS_ANALYSIS.j2#L79

ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")
export ROTDIR

{% if RUN == "gcdas" %}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [shellcheck] reported by reviewdog 🐶
You need a space after the '{'. SC1054

ROTDIR=$(compath.py "${envir}/${NET}/${gcafs_ver}")
export ROTDIR

{% if RUN == "gcdas" %}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ [shellcheck] reported by reviewdog 🐶
This } is literal. Check expression (missing ;/\n?) or quote it. SC1083

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [shellcheck] reported by reviewdog 🐶
You need a space after the '{'. SC1054

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ [shellcheck] reported by reviewdog 🐶
This } is literal. Check expression (missing ;/\n?) or quote it. SC1083

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [shellcheck] reported by reviewdog 🐶
You need a space after the '{'. SC1054

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ [shellcheck] reported by reviewdog 🐶
This } is literal. Check expression (missing ;/\n?) or quote it. SC1083

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [shellcheck] reported by reviewdog 🐶
You need a space after the '{'. SC1054

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ [shellcheck] reported by reviewdog 🐶
This } is literal. Check expression (missing ;/\n?) or quote it. SC1083

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 [shellcheck] reported by reviewdog 🐶
The mentioned syntax error was in this brace group. SC1009

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [shellcheck] reported by reviewdog 🐶
You need a space after the '{'. SC1054

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ [shellcheck] reported by reviewdog 🐶
This } is literal. Check expression (missing ;/\n?) or quote it. SC1083

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [shellcheck] reported by reviewdog 🐶
Couldn't parse this brace group. Fix to allow more checks. SC1073

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [shellcheck] reported by reviewdog 🐶
You need a space after the '{'. SC1054

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ [shellcheck] reported by reviewdog 🐶
This } is literal. Check expression (missing ;/\n?) or quote it. SC1083

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

6 participants