{"id":352842,"name":"Snow17","description":"A snow accumulation and melt model that has been used by the National Weather Service since the late 1970s for operational streamflow forecasting.","url":"https://github.com/noaa-owp/snow17","last_synced_at":"2026-05-22T10:02:06.124Z","repository":{"id":37074176,"uuid":"459226263","full_name":"NOAA-OWP/snow17","owner":"NOAA-OWP","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-22T19:58:34.000Z","size":42401,"stargazers_count":8,"open_issues_count":18,"forks_count":19,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-05-04T01:03:11.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NOAA-OWP.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-02-14T15:57:10.000Z","updated_at":"2026-04-25T11:48:23.000Z","dependencies_parsed_at":"2023-01-20T13:31:51.443Z","dependency_job_id":null,"html_url":"https://github.com/NOAA-OWP/snow17","commit_stats":{"total_commits":49,"total_committers":13,"mean_commits":3.769230769230769,"dds":0.6326530612244898,"last_synced_commit":"b8576f60896f7ee0614e642fa180726fdedfd342"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":"NOAA-OWP/owp-open-source-project-template","purl":"pkg:github/NOAA-OWP/snow17","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NOAA-OWP%2Fsnow17","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NOAA-OWP%2Fsnow17/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NOAA-OWP%2Fsnow17/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NOAA-OWP%2Fsnow17/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NOAA-OWP","download_url":"https://codeload.github.com/NOAA-OWP/snow17/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NOAA-OWP%2Fsnow17/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32924388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-11T17:09:15.040Z","status":"online","status_checked_at":"2026-05-12T02:00:06.338Z","response_time":102,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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"}},"owner":{"login":"NOAA-OWP","name":"NOAA-OWP","uuid":"60660814","kind":"organization","description":null,"email":null,"website":null,"location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/60660814?v=4","repositories_count":28,"last_synced_at":"2023-03-04T04:01:13.237Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/NOAA-OWP","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-14T09:15:07.386Z","updated_at":"2023-03-04T04:01:13.290Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NOAA-OWP","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NOAA-OWP/repositories"},"packages":[],"commits":{"id":1356629,"full_name":"NOAA-OWP/snow17","default_branch":"master","total_commits":103,"total_committers":25,"total_bot_commits":0,"total_bot_committers":0,"mean_commits":4.12,"dds":0.8252427184466019,"past_year_total_commits":45,"past_year_total_committers":11,"past_year_total_bot_commits":0,"past_year_total_bot_committers":0,"past_year_mean_commits":4.090909090909091,"past_year_dds":0.7111111111111111,"last_synced_at":"2026-05-20T09:01:12.301Z","last_synced_commit":"3a883f90049a86e05c7014910b6e34136b866d60","created_at":"2023-09-12T11:48:57.701Z","updated_at":"2026-05-20T09:00:56.634Z","committers":[{"name":"Andy Wood","email":"andywood@cheyenne1.cheyenne.ucar.edu","login":null,"count":18},{"name":"Mohammed Karim","email":"mohammed.r.karim@rtx.com","login":"mkarim-rtx","count":13},{"name":"Carolyn.Maynard","email":"carolyn.maynard@rtx.com","login":"cmaynard-ngwpc","count":11},{"name":"Andy Wood","email":"andywood@cheyenne5.cheyenne.ucar.edu","login":null,"count":6},{"name":"siva.selvanathan","email":"sselvanathan_IE@Dewberry.com","login":"sivasankkar","count":6},{"name":"Austin Raney","email":"aaraney@protonmail.com","login":"aaraney","count":5},{"name":"Andrew Wood","email":"andywood@hydro-c1.rap.ucar.edu","login":null,"count":4},{"name":"Steve Drake","email":"stephenadrake@yahoo.com","login":"drakest123","count":4},{"name":"zhengtaocui","email":"zcui@gmx.com","login":"zhengtaocui","count":3},{"name":"K. Jennings","email":"32177682+SnowHydrology","login":"SnowHydrology","count":3},{"name":"Jerome Berryhill","email":"Jerome.Berryhill@NOAA.gov","login":"JeromeBerryhill","count":3},{"name":"Elizabeth Clark","email":"eclark2@uw.edu","login":"lizaclark","count":3},{"name":"Jessica Garrett","email":"jessicagarrett@Lynkers-MBP.hsd1.co.comcast.net","login":null,"count":3},{"name":"Yuqiong Liu","email":"yuqiong.liu@U-28HBMJQ9PK1NS.nextgenwaterprediction.com","login":null,"count":3},{"name":"Andy Wood","email":"andywood@cheyenne2.cheyenne.ucar.edu","login":null,"count":2},{"name":"Andy Wood","email":"andywood@cheyenne3.cheyenne.ucar.edu","login":null,"count":2},{"name":"Keith Jennings","email":"keithjennings@keiths-mbp.lan","login":null,"count":2},{"name":"Robert Bartel","email":"rbartel@friday.local","login":null,"count":2},{"name":"JessicaGarrett-NOAA","email":"30940444+madMatchstick","login":"madMatchstick","count":2},{"name":"Brian-Cosgrove","email":"131808837+Brian-Cosgrove","login":"Brian-Cosgrove","count":2},{"name":"Andy Wood","email":"andywood.home@gmail.com","login":"andywood","count":2},{"name":"peter.a.kronenberg","email":"peter.a.kronenberg@rtx.com","login":"peterkronenberg-rtx","count":1},{"name":"seyounger","email":"seth.e.younger@gmail.com","login":"seyounger","count":1},{"name":"FernandoSalas-NOAA","email":"fernando.salas@noaa.gov","login":"frsalas-noaa","count":1},{"name":"Chris Tubbs","email":"christopher.tubbs@noaa.gov","login":"christophertubbs","count":1}],"past_year_committers":[{"name":"Mohammed Karim","email":"mohammed.r.karim@rtx.com","login":"mkarim-rtx","count":13},{"name":"Carolyn.Maynard","email":"carolyn.maynard@rtx.com","login":"cmaynard-ngwpc","count":11},{"name":"siva.selvanathan","email":"sselvanathan_IE@Dewberry.com","login":"sivasankkar","count":6},{"name":"Jerome Berryhill","email":"Jerome.Berryhill@NOAA.gov","login":"JeromeBerryhill","count":3},{"name":"Austin Raney","email":"aaraney@protonmail.com","login":"aaraney","count":3},{"name":"Yuqiong Liu","email":"yuqiong.liu@U-28HBMJQ9PK1NS.nextgenwaterprediction.com","login":null,"count":3},{"name":"Robert Bartel","email":"rbartel@friday.local","login":null,"count":2},{"name":"seyounger","email":"seth.e.younger@gmail.com","login":"seyounger","count":1},{"name":"peter.a.kronenberg","email":"peter.a.kronenberg@rtx.com","login":"peterkronenberg-rtx","count":1},{"name":"Chris Tubbs","email":"christopher.tubbs@noaa.gov","login":"christophertubbs","count":1},{"name":"Brian-Cosgrove","email":"131808837+Brian-Cosgrove","login":"Brian-Cosgrove","count":1}],"commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/NOAA-OWP%2Fsnow17/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-05-22T00:00:12.925Z","repositories_count":6237693,"commits_count":884442147,"contributors_count":34893740,"owners_count":1155876,"icon_url":"https://github.com/github.png","host_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories"}},"issues_stats":{"full_name":"NOAA-OWP/snow17","html_url":"https://github.com/NOAA-OWP/snow17","last_synced_at":"2026-04-25T11:51:17.847Z","status":"active","issues_count":23,"pull_requests_count":34,"avg_time_to_close_issue":10805914.727272727,"avg_time_to_close_pull_request":745524.6071428572,"issues_closed_count":11,"pull_requests_closed_count":28,"pull_request_authors_count":8,"issue_authors_count":8,"avg_comments_per_issue":1.4782608695652173,"avg_comments_per_pull_request":0.4411764705882353,"merged_pull_requests_count":26,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":1,"past_year_pull_requests_count":3,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":4711.0,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":1,"past_year_pull_request_authors_count":2,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":2.0,"past_year_avg_comments_per_pull_request":0.3333333333333333,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":1,"created_at":"2023-09-12T11:49:04.752Z","updated_at":"2026-04-25T11:51:17.847Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/NOAA-OWP%2Fsnow17","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/NOAA-OWP%2Fsnow17/issues","issue_labels_count":{},"pull_request_labels_count":{},"issue_author_associations_count":{"CONTRIBUTOR":13,"NONE":6,"COLLABORATOR":3,"MEMBER":1},"pull_request_author_associations_count":{"CONTRIBUTOR":25,"NONE":5,"MEMBER":2,"COLLABORATOR":2},"issue_authors":{"drakest123":9,"andywood":5,"SnowHydrology":3,"madMatchstick":2,"aaraney":1,"joshsturtevant":1,"consigcody94":1,"pdmich":1},"pull_request_authors":{"andywood":20,"drakest123":3,"Brian-Cosgrove":2,"aaraney":2,"madMatchstick":2,"SnowHydrology":2,"cmaynard-ngwpc":2,"zhengtaocui":1},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-05-12T00:00:09.018Z","repositories_count":14576134,"issues_count":34215722,"pull_requests_count":112054429,"authors_count":11259898,"icon_url":"https://github.com/github.png","host_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories","owners_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/owners","authors_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors"},"past_year_issue_labels_count":{},"past_year_pull_request_labels_count":{},"past_year_issue_author_associations_count":{"NONE":1},"past_year_pull_request_author_associations_count":{"NONE":2,"MEMBER":1},"past_year_issue_authors":{"consigcody94":1},"past_year_pull_request_authors":{"cmaynard-ngwpc":2,"aaraney":1},"maintainers":[{"login":"SnowHydrology","count":5,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/SnowHydrology"},{"login":"aaraney","count":3,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/aaraney"}],"active_maintainers":[{"login":"aaraney","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/aaraney"}]},"events":{"total":{"PullRequestEvent":5,"ForkEvent":6,"IssuesEvent":3,"WatchEvent":2,"IssueCommentEvent":3,"PushEvent":4,"PullRequestReviewEvent":2,"CreateEvent":2},"last_year":{"PullRequestEvent":2,"ForkEvent":2,"IssuesEvent":3,"WatchEvent":1,"IssueCommentEvent":3,"PushEvent":3,"PullRequestReviewEvent":1,"CreateEvent":2}},"keywords":[],"dependencies":[],"score":6.476972362889683,"created_at":"2026-04-25T11:51:07.715Z","updated_at":"2026-05-22T10:02:06.125Z","avatar_url":"https://github.com/NOAA-OWP.png","language":"Fortran","category":"Cryosphere","sub_category":"Snow and Permafrost","monthly_downloads":0,"total_dependent_repos":0,"total_dependent_packages":0,"readme":"# OWP Snow17 Model Version for NextGen\n\n**Description**:  \n\nSnow17 is a snow accumulation and melt model that has been used by the National Weather Service since the late 1970s for operational streamflow \nforecasting.  It is a temperature-index model that was first described in Anderson (1973) before being incorporated into the NWS River Forecasting System (NWSRFS) and more recently the NWS Community Hydrologic Prediction System (CHPS).  The version of the Snow17 model maintained in this directory is formulated from original NWS FORTRAN code to be compatible with \nthe [Next Generation Water Resources Modeling Framework](https://github.com/NOAA-OWP/ngen) (NextGen). \n\n  - **Technology stack**: The model code is written in Fortran with a driver that incorporates [Basic Model Interface](https://csdms.colorado.edu/wiki/BMI) (BMI) commands to enable Snow17 to be run in standalone mode or as a module within the NextGen framework (or other BMI-based systems). It has been compiled using GNU, PGI, and Intel compilers. \n  - **Status**: Beta (runs but has not been extensively tested; validates against the orginal repository version listed below, which has been extensively used)\n  - **Links**:  This code was adapted from source code included in https://github.com/NCAR/NWS_hydro_models -- a version used in federally funded streamflow forecasting research at NCAR. The original source code for that effort was obtained from the NWS Office of Hydrology around 2013. The code has since been copied and adapted into other research repositories. \n\n## Dependencies\n- Fortran compiler\n- NextGen ISO C Fortran BMI library (optional)\n\n## Running in Standalone\nThe following describes how to install the run snow17 as a standalone model.\n\nClone repository if necessary and change to the repo root directory:\n```bash\ngit clone https://github.com/NOAA-OWP/snow17.git\ncd snow17\n```\nGenerate a CMake build system and directory (in the example below and those that follow, the directory is assumed to be `cmake_build` within the repo root):\n```bash\n# You can also include the '-DCMAKE_BUILD_TYPE=Debug' option if you want to build for debugging\ncmake -B cmake_build -S .\n```\n\nNote that you may need or want to specify the Fortran compiler, done by supplying a value for the `FC` variable when you generate the build directory.  There are many reasons for that:  maybe you have multiple compilers installed, or maybe your compiler isn't installed to the standard system path or using a standard name CMake will recognize.\n\nRegardless, if necessary just append `FC=\u003cpath_to_compiler\u003e` to the rest of the command:\n\n```bash\n# Here we are manually telling CMake to use '/opt/local/bin/gfortran-mp-14' as the Fortran compiler, rather than \n# whatever compiler it would find on its own.\nFC=/opt/local/bin/gfortran-mp-14 cmake -B cmake_build -S .\n```\n\nWith the build directory generated, build the stand-alone executable:\n```bash\ncmake --build cmake_build --target snow17\n```\n\nYou should now see the `cmake_build/snow17` stand-alone executable. \n\nThere is a test case in the `snow17/test_cases/` directory.  To run it, first cd to the directory (`cd ../test_cases/`) and unpack the example:  `tar -xzvf ex1.tgz`.\n`cd ex1/run/` to get to the run directory and then execute the shell script (`./runSnow17.csh`) or type `../../../cmake_build/snow17 namelist.bmi.HHWM8` into your command line\nCheck the example in the output folder (`cd ../output/`)\n\n\n## Running in [Ngen](https://github.com/NOAA-OWP/ngen)\n\nThe following are instructions for building the Sac-SMA BMI module shared library.  In particular, this is necessary to run the Sac-SMA model in the [Next Generation Water Resources Modeling Framework](https://github.com/NOAA-OWP/ngen).\n\n\nAs described above for stand-alone builds, clone the repo if necessary and change into the repo root directory.\n```bash\ngit clone https://github.com/NOAA-OWP/snow17.git\ncd snow17\n```\n\nWithin the repo root, once again generate a CMake build directory.  However, this time, we (probably) need to specify the location of the NextGen ISO C Fortran BMI library.  This is an intermediate library needed for any Fortran BMI module to ensure NextGen compatibility.  This is done with the `ISO_C_FORTRAN_BMI_PATH` option\n\n\u003e [!WARNING]\n\u003e If you created stand-alone-only build directory already, remove it first.  Don't worry:  the NextGen-supporting build directory will also support stand-alone builds.\n\n\n```bash\n# The same advice discussed in the stand-alone section about optionally adding 'FC=\u003cpath_to_compiler\u003e' and/or \n# '-DCMAKE_BUILD_TYPE=Debug' applies here\ncmake -B cmake_build -DISO_C_FORTRAN_BMI_PATH=/Users/rbartel/Developer/noaa/ngen/extern/iso_c_fortran_bmi -S .\n```\n\n\u003e [!TIP]\n\u003e The directory to use for ISO_C_FORTRAN_BMI_PATH will generally be `\u003cpath_to_your_ngen_repo\u003e/extern/iso_c_fortran_bmi`.  It is assumed that you have already cloned the NextGen repo locally.\n\n\nWith this done when the build directory is created, we will also have access to another build target:  `snow17_bmi`.   This is how we build the NextGen BMI module shared library:\n\n```bash\ncmake --build cmake_build --target snow17_bmi\n```\n\n\u003e [!NOTE]\n\u003e You can still build the stand-alone executable as described above when you generate a build directory for NextGen builds.  You can also omit specify a target when building, in which case, CMake will build all valid build targets.\n\n```bash\ncmake --build cmake_build --target snow17 # This will build the stand-alone executable, even when generating for NextGen builds\ncmake --build cmake_build                 # This will build the stand-alone executable and the NextGen BMI module shared library\n```\n\nOnce you build the shared library, you should see the shared library in build directory, named `cmake_build/libsnow17bmi.\u003cversion\u003e.so` on Linux systems (on Mac, you will see `.dylib` rather than `.so`).  There will also be `cmake_build/libsnow17bmi.so` symlink pointing to the shared library file.\n\n## Getting help\n\nIf there are concerns or bug fixes, etc., please  file an issue in this repository's Issue Tracker.\n\n## Getting involved\n\nWe encourage community involvement in code development. For more info, please check out our [CONTRIBUTING](CONTRIBUTING.md) document.\n\n----\n\n## Open source licensing info\n1. [TERMS](TERMS.md)\n2. [LICENSE](LICENSE)\n\n----\n\n## Credits and references\n\nIf you wish to use or adapt the code in this repository, please make sure that your new repository credits this one as the original source of the code. \n\n### References\n - Anderson, E. A., 1973: National Weather Service River Forecast System-Snow Accumulation and Ablation Model. NOAA Tech. Memo. NWS Hydro-17, U.S. National Weather Service. [Avail- able from Office of Hydrologic Development, NOAA/NWS, 1325 East–West Highway, Silver Spring, MD 20910.]\n","funding_links":[],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":["hydrology","bmi","csdms"],"project_url":"https://ost.ecosyste.ms/api/v1/projects/352842","html_url":"https://ost.ecosyste.ms/projects/352842"}