{"id":32175407,"url":"https://github.com/noaa-ocs-modeling/nemspy","last_synced_at":"2026-02-23T05:01:56.540Z","repository":{"id":41999407,"uuid":"294143918","full_name":"noaa-ocs-modeling/nemspy","owner":"noaa-ocs-modeling","description":"NEMS configuration generation","archived":false,"fork":false,"pushed_at":"2023-12-01T17:40:50.000Z","size":285,"stargazers_count":2,"open_issues_count":7,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-12-26T13:14:31.767Z","etag":null,"topics":["configuration-management","nems","noaa","nuopc","python"],"latest_commit_sha":null,"homepage":"https://nemspy.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noaa-ocs-modeling.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-09-09T14:52:51.000Z","updated_at":"2024-10-17T14:23:19.000Z","dependencies_parsed_at":"2024-01-04T19:04:24.709Z","dependency_job_id":"604420a2-6e77-437f-9683-f14a909c8cff","html_url":"https://github.com/noaa-ocs-modeling/nemspy","commit_stats":{"total_commits":282,"total_committers":6,"mean_commits":47.0,"dds":"0.34397163120567376","last_synced_commit":"f9075bf15827cb691e3c74449a88bd180b1f02fb"},"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"purl":"pkg:github/noaa-ocs-modeling/nemspy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noaa-ocs-modeling%2Fnemspy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noaa-ocs-modeling%2Fnemspy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noaa-ocs-modeling%2Fnemspy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noaa-ocs-modeling%2Fnemspy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noaa-ocs-modeling","download_url":"https://codeload.github.com/noaa-ocs-modeling/nemspy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noaa-ocs-modeling%2Fnemspy/sbom","scorecard":{"id":691318,"data":{"date":"2025-08-11","repo":{"name":"github.com/noaa-ocs-modeling/nemspy","commit":"f9075bf15827cb691e3c74449a88bd180b1f02fb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quick_test.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/quick_test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quick_test.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/quick_test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quick_test.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/quick_test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quick_test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/quick_test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quick_test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/quick_test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quick_test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/quick_test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:88: update your workflow using https://app.stepsecurity.io/secureworkflow/noaa-ocs-modeling/nemspy/tests.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/build.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/quick_test.yml:29","Warn: pipCommand not pinned by hash: .github/workflows/quick_test.yml:54","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:32","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:64","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:83","Info:   0 out of  16 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   6 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/quick_test.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Creative Commons Zero v1.0 Universal: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T02:21:30.206Z","repository_id":41999407,"created_at":"2025-08-22T02:21:30.206Z","updated_at":"2025-08-22T02:21:30.206Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29738083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T04:51:08.365Z","status":"ssl_error","status_checked_at":"2026-02-23T04:49:15.865Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["configuration-management","nems","noaa","nuopc","python"],"created_at":"2025-10-21T19:35:33.646Z","updated_at":"2026-02-23T05:01:56.533Z","avatar_url":"https://github.com/noaa-ocs-modeling.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NEMSpy\n\n[![tests](https://github.com/noaa-ocs-modeling/NEMSpy/workflows/tests/badge.svg)](https://github.com/noaa-ocs-modeling/NEMSpy/actions?query=workflow%3Atests)\n[![codecov](https://codecov.io/gh/noaa-ocs-modeling/nemspy/branch/master/graph/badge.svg?token=uyeRvhmBtD)](https://codecov.io/gh/noaa-ocs-modeling/nemspy)\n[![build](https://github.com/noaa-ocs-modeling/NEMSpy/workflows/build/badge.svg)](https://github.com/noaa-ocs-modeling/NEMSpy/actions?query=workflow%3Abuild)\n[![version](https://img.shields.io/pypi/v/nemspy)](https://pypi.org/project/nemspy)\n[![license](https://img.shields.io/github/license/noaa-ocs-modeling/nemspy)](https://creativecommons.org/share-your-work/public-domain/cc0)\n[![style](https://sourceforge.net/p/oitnb/code/ci/default/tree/_doc/_static/oitnb.svg?format=raw)](https://sourceforge.net/p/oitnb/code)\n[![documentation](https://readthedocs.org/projects/nemspy/badge/?version=latest)](https://nemspy.readthedocs.io/en/latest/?badge=latest)\n\nNEMSpy generates configuration files (`nems.configure`, `config.rc`, `model_configure`, `atm_namelist.rc`)\nfor coupled modeling applications run with a compiled NEMS binary (not included).\n\n```shell\npip install nemspy\n```\n\nNEMS implements\nthe [National Unified Operational Prediction Capability (NUOPC)](https://www.earthsystemcog.org/projects/nuopc/), and\nconfiguration files built for NEMS will also work for most NUOPC applications.\n\nDocumentation can be found at https://nemspy.readthedocs.io\n\n## organization / responsibility\n\nNEMSpy is developed by the [Coastal Marine Modeling Branch (CMMB)](https://coastaloceanmodels.noaa.gov) of the Office of Coast Survey (OCS), a part of the [National Oceanic and Atmospheric Administration (NOAA)](https://www.noaa.gov), an agency of the United States federal government.\n\n- Zachary Burnett (**lead**) - zachary.burnett@noaa.gov\n- Saeed Moghimi - saeed.moghimi@noaa.gov\n- Jaime Calzada (past)\n\n## usage\n\n```python\nfrom datetime import datetime, timedelta\nfrom pathlib import Path\n\nfrom nemspy import ModelingSystem\nfrom nemspy.model import ADCIRCEntry, AtmosphericForcingEntry, WaveWatch3ForcingEntry\n\n# directory to which configuration files should be written\noutput_directory = Path(__file__).parent / 'nems_configuration'\n\n# directory containing forcings\nforcings_directory = Path(__file__).parent / 'forcings'\n\n# model run time\nstart_time = datetime(2020, 6, 1)\nduration = timedelta(days=1)\nend_time = start_time + duration\n\n# returning interval of main run sequence\ninterval = timedelta(hours=1)\n\n# model entries\nocean_model = ADCIRCEntry(processors=11, Verbosity='max', DumpFields=False)\natmospheric_mesh = AtmosphericForcingEntry(\n    filename=forcings_directory / 'wind_atm_fin_ch_time_vec.nc', processors=1\n)\nwave_mesh = WaveWatch3ForcingEntry(\n    filename=forcings_directory / 'ww3.Constant.20151214_sxy_ike_date.nc', processors=1\n)\n\n# instantiate model system with model entries\nnems = ModelingSystem(\n    start_time=start_time,\n    end_time=end_time,\n    interval=interval,\n    ocn=ocean_model,\n    atm=atmospheric_mesh,\n    wav=wave_mesh,\n)\n\n# form connections between models\nnems.connect('ATM', 'OCN')\nnems.connect('WAV', 'OCN')\n\n# define execution order\nnems.sequence = [\n    'ATM -\u003e OCN',\n    'WAV -\u003e OCN',\n    'ATM',\n    'WAV',\n    'OCN',\n]\n\n# write configuration files to the given directory\nnems.write(directory=output_directory, overwrite=True, include_version=True)\n\n```\n\n## output\n\n### `nems.configure`\n\n```fortran\n# `nems.configure` generated with NEMSpy 1.0.0\n# EARTH #\nEARTH_component_list: ATM WAV OCN\nEARTH_attributes::\n  Verbosity = off\n::\n\n# ATM #\nATM_model:                      atmesh\nATM_petlist_bounds:             0 0\nATM_attributes::\n  Verbosity = off\n::\n\n# WAV #\nWAV_model:                      ww3data\nWAV_petlist_bounds:             1 1\nWAV_attributes::\n  Verbosity = off\n::\n\n# OCN #\nOCN_model:                      adcirc\nOCN_petlist_bounds:             2 12\nOCN_attributes::\n  Verbosity = max\n  DumpFields = false\n::\n\n# Run Sequence #\nrunSeq::\n  @3600\n    ATM -\u003e OCN   :remapMethod=redist\n    WAV -\u003e OCN   :remapMethod=redist\n    ATM\n    WAV\n    OCN\n  @\n::\n```\n\n### `model_configure`\n\n```fortran\n# `model_configure` generated with NEMSpy 1.0.0\ntotal_member:            1\nprint_esmf:              .true.\nnamelist:                atm_namelist.rc\nPE_MEMBER01:             13\nstart_year:              2020\nstart_month:             6\nstart_day:               1\nstart_hour:              0\nstart_minute:            0\nstart_second:            0\nnhours_fcst:             24\nRUN_CONTINUE:            .false.\nENS_SPS:                 .false.\n```\n\n### `config.rc`\n\n```fortran\n# `config.rc` generated with NEMSpy 1.0.0\n atm_dir: ~/forcings\n atm_nam: wind_atm_fin_ch_time_vec.nc\n wav_dir: ~/forcings\n wav_nam: ww3.Constant.20151214_sxy_ike_date.nc\n```\n\n## related projects\n\n- [NOAA-EMC/NEMS](https://github.com/NOAA-EMC/NEMS)\n- [esmf-org/esmf](https://github.com/esmf-org/esmf)\n- [noaa-ocs-modeling/ADC-WW3-NWM-NEMS](https://github.com/noaa-ocs-modeling/ADC-WW3-NWM-NEMS)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoaa-ocs-modeling%2Fnemspy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoaa-ocs-modeling%2Fnemspy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoaa-ocs-modeling%2Fnemspy/lists"}