woof-nam (import name namgpu)
Copyright 2026 Recast Systems
Licensed under the Apache License, Version 2.0 (LICENSE).

woof-nam is a GPU implementation of the NOAA/NCEP North American Mesoscale model (NMMB core,
nam.v4.2.11). It is not affiliated with or endorsed by NOAA, NCEP or EMC.

==========================================================================
Origins
==========================================================================

| Origin                         | Where in this tree                                  | Terms                         |
|--------------------------------|-----------------------------------------------------|-------------------------------|
| NOAA/NCEP NAM source, ported   | namgpu/kernels/, namgpu/{dynamics,boundary,physics, | US Government work            |
|                                | init,steps}/ (files citing a NAM source path)       | (public domain in the US)     |
| NOAA NAM parm files            | namgpu/parm/ (unmodified)                           | US Government work            |
| AER RRTMG (NCEP's NMMB copy)   | namgpu/kernels/phys_rrtm_lw_*, phys_rrtm_sw_*,      | BSD-3-Clause (AER); NCEP      |
|                                | rrtm_sw_bands.cuh, namgpu/physics/rrtm/,            | modifications US Government   |
|                                | namgpu/data/rrtm_*                                  | work                          |
| ArWen (gpuwm) kernels, reused  | namgpu/third_party/arwen/,                          | Apache-2.0                    |
|                                | namgpu/third_party/arwen_noahmp/,                   |                               |
|                                | namgpu/physics/{myj,jsfc,noah,ruc,ysu,mynn,gf,      |                               |
|                                | ntiedtke,arwen_mp,noahmp,rrtmg_wrf,rrtmgp}/         |                               |
| FP32 maths routines in ArWen   | namgpu/third_party/arwen*/core/kernels/ (our own    | MIT (Arm optimized-routines), |
| kernels                        | implementation; LICENSE-third-party.txt beside them)| FDLIBM/SunPro notice          |
| NOAA-GSL UGWP drag suite       | namgpu/kernels/phys_ugwp_oro.cu,                    | Apache-2.0 (NOAA-GSL/UGWP     |
|                                | namgpu/physics/gwd/phys_ugwp_driver.py,             | LICENSE, commit 4108d491470c; |
|                                | tools/ugwp-oro/                                     | LICENSE-UGWP-Apache-2.0.txt)  |
| WRF physics (YSU, revised MM5  | the ArWen ports above (WRF v4.6.1 / 4.5.2 lineage)  | WRF public-domain statement   |
| surface layer, MYNN, RUC, GF,  |                                                     | (below)                       |
| New Tiedtke, Thompson, P3,     |                                                     |                               |
| Noah-MP v4.x and its tables)   |                                                     |                               |
| RTE+RRTMGP, rrtmgp-data v1.9   | through gpuwm.core.rrtmgp (namgpu/physics/rrtmgp/)  | BSD-3-Clause; the RFMIP gas   |
|                                |                                                     | table CC-BY-SA-4.0 (gpuwm)    |
| RRTMG (AER, WRF v4.6.1 copy)   | through gpuwm.core.rrtmg_legacy                     | BSD-3-Clause (AER, 2016)      |
|                                | (namgpu/physics/rrtmg_wrf/)                         |                               |
| TEMPO microphysics (NCAR/NOAA) | runs from gpuwm-hex (hexcore), not shipped here;    | Apache-2.0                    |
|                                | glue namgpu/kernels/phys_tempo_driver.cu            |                               |
| NCEP NMMB Noah tables (HMON    | namgpu/data/fix/noah/ (PROVENANCE.txt)              | US Government data            |
| fix set)                       |                                                     |                               |
| WRF Noah tables (v4.6.1)       | namgpu/data/noah_tables/                            | WRF public-domain statement   |
| Ferrier table                  | namgpu/data/ferrier/ETAMPNEW_DATA.expanded_rain     | NOAA / WRF public domain      |
| Map basemap (Natural Earth,    | namgpu/data/basemap/ (unmodified)                   | Natural Earth: public domain; |
| US Census county boundaries)   |                                                     | Census: US Government work    |
| OPAC aerosol climatology       | namgpu/parm/nam_climaeropac_global.txt (NCEP)       | as redistributed by NOAA      |
| NOAA fix files (radiation)     | namgpu/data/fix/*.txt                               | US Government data            |
| Data fetched at run time       | case inputs, GMTED2010 terrain                      | US Government data;           |
|                                | (not in this repository)                            | public domain                 |
| Data fetched at run time       | --source ifs, ifs-0p25: ECMWF open data             | CC BY 4.0 (ECMWF)             |
|                                | --source era5: ERA5 (Copernicus C3S), read from     | CC BY 4.0 (Copernicus);       |
|                                | Google's public ARCO-ERA5 copy                      | attribution below             |
| GRIB2 writer and helper        | rw_rrfs_upp, rw_asos, rw_stage4: built from gpuwm   | Apache-2.0 (gpuwm)            |
| programs (gpuwm), fetched      | (crates rw-grib2export, rw-obs), release assets     |                               |
| at run time                    | fetched by woof-nam fetch-bridges, pinned by size   |                               |
|                                | and SHA-256 (not in this repository)                |                               |

==========================================================================
NOAA / NCEP NAM
==========================================================================

The port is written from the NAM source (github.com/MatthewPyle-NOAA/NAM @
83df4e13c115d197db67b972cb3befec8511291a, nam.v4.2.11). The NAM source is work of US Government
employees at NOAA/NCEP/EMC (and GFDL) and is distributed by NOAA without a licence file; it is
public domain in the US. Every file ported or copied from a NAM file keeps that file's NOAA
author/history header block, followed by a line naming the source path and lines.

No code from the NEMS framework, ESMF, nemsio, UPP, GSI or NCEPLIBS (LGPL and other terms) is
ported, copied, linked or called. NAM's phys/mersenne_twister.f (LGPL-2) is not copied: the McICA
kernels implement MT19937 from the published algorithm (Matsumoto and Nishimura 1998), and that
path is dormant in the NAM configuration (ISUBCLW = ISUBCSW = 0).

NOAA data used as model inputs (NOAA Open Data Dissemination) is used as distributed. It is not
permissible to state or imply endorsement by or affiliation with NOAA.

ECMWF data fetched at run time is not in this repository. IFS open data (--source ifs, ifs-0p25) is
licensed by ECMWF under CC BY 4.0. ERA5 (--source era5) is licensed under CC BY 4.0 by the Copernicus
Climate Change Service; forecasts started from it carry the attribution "Contains modified Copernicus
Climate Change Service information" (Hersbach, H. et al. 2020, The ERA5 global reanalysis, Q. J. R.
Meteorol. Soc. 146, 1999-2049), which every run receipt records with the start source. Neither the European
Commission nor ECMWF is responsible for any use of that information.

==========================================================================
RRTMG radiation (Atmospheric and Environmental Research, Inc.)
==========================================================================

The longwave and shortwave radiation code and its k-distribution tables are derived from NCEP's
NMMB copy of AER's RRTMG (Mlawer, Iacono, Clough; shortwave data adapted from J. Delamere, AER, and
J.-J. Morcrette, ECMWF). They ship under AER's BSD 3-Clause licence, the licence AER applies to
RRTMG_LW and RRTMG_SW today:

  Copyright (c) 2002-2020, Atmospheric and Environmental Research, Inc. (AER).

Files covered (each carries AER's copyright line and "BSD-3-Clause; see NOTICE" in its header;
tools/licence_check.py holds the exact list):
  - kernels: namgpu/kernels/phys_rrtm_lw_*.cu (26), namgpu/kernels/phys_rrtm_sw_*.cu (25),
    namgpu/kernels/rrtm_sw_bands.cuh;
  - Python wrappers: namgpu/physics/rrtm/phys_rrtm_lw_*.py, namgpu/physics/rrtm/phys_rrtm_sw_*.py,
    namgpu/physics/rrtm/lw_core.py, sw_seam.py, rrtm_lw_ref.py;
  - k-distribution and property tables (data, no header): namgpu/data/rrtm_lw/*.npz,
    namgpu/data/rrtm_sw/*.npz and namgpu/data/rrtm_*.npz, extracted from NAM's radlw_datatb.f,
    radlw_datatb_nmmb.f, radsw_datatb.f and radsw_datatb_nmmb.f.

AER's licence text (github.com/AER-RC/RRTMG_LW and RRTMG_SW, LICENSE.md):

  Copyright (c) 2020, Atmospheric and Environmental Research
  All rights reserved.

  Redistribution and use in source and binary forms, with or without modification, are permitted
  provided that the following conditions are met:
  1. Redistributions of source code must retain the above copyright notice, this list of
     conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of
     conditions and the following disclaimer in the documentation and/or other materials provided
     with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to
     endorse or promote products derived from this software without specific prior written
     permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

NCEP's NMMB copy (radlw_main_nmmb.f, radsw_main_nmmb.f) carries AER's earlier 2002-2007 notice;
in this package it is replaced by the BSD 3-Clause terms above. NCEP's modifications are US
Government work. The WOOF-NAM port of these files is Apache-2.0.

==========================================================================
ArWen (Python package "gpuwm")
==========================================================================

Files under namgpu/third_party/arwen/, and files that say they were copied or adapted from ArWen:
    Copyright 2026 ArWen contributors
    Licensed under the Apache License, Version 2.0.
Each keeps its original header and names the ArWen path it came from.

==========================================================================
WRF (NCAR/UCAR)
==========================================================================

The Noah land-surface tables in namgpu/data/noah_tables/ are WRF v4.6.1's. UCAR's notice, kept
verbatim in namgpu/data/noah_tables/LICENSE-WRF.txt:

  WRF was developed at the National Center for Atmospheric Research (NCAR) which is operated by
  the University Corporation for Atmospheric Research (UCAR). NCAR and UCAR make no proprietary
  claims, either statutory or otherwise, to this version and release of WRF and consider WRF to be
  in the public domain for use by any person or entity for any purpose without any fee or charge.
  UCAR requests that any WRF user include this notice on any partial or full copies of WRF. WRF is
  provided on an "AS IS" basis and any warranties, either express or implied, including but not
  limited to implied warranties of non-infringement, originality, merchantability and fitness for
  a particular purpose, are disclaimed. In no event shall UCAR be liable for any damages,
  whatsoever, whether direct, indirect, consequential or special, that arise out of or in
  connection with the access, use or performance of WRF, including infringement actions.
  WRF(R) is a registered trademark of the University Corporation for Atmospheric Research (UCAR).

==========================================================================
NOAA data shipped in this package, and data fetched at run time
==========================================================================

- Noah land-surface tables in namgpu/data/fix/noah/ (VEGPARM.TBL, GENPARM.TBL, SOILPARM.TBL): NCEP's
  operational NMMB tables from the HMON package's NMMB fix set (hmon.v3.2.13/fix/nmmb), byte for byte
  (PROVENANCE.txt beside them). US Government data.
- NOAA fix files (CO2 history and monthly cycle, ozone climatology, solar constant, surface
  emissivity index) in namgpu/data/fix/, unmodified copies from the NOAA global fix bucket
  (fix/am/20220805; tools/fetch_fix.sh fetches them again). US Government data.
- Case inputs (NAM native analysis and boundary files, GFS 0.25 degree, MRMS), fetched from NOAA
  Open Data Dissemination by namgpu.init.init_fetch_case. US Government data.
- GMTED2010 terrain (USGS/NGA), read from the user's WPS geog set. Public domain.
- Start and boundary sources fetched at run time: NOAA RAP, HRRR, RRFS v1, GEFS v12 and AIGFS (US Government
  data, AWS NODD and NOMADS); ECMWF AIFS Single and IFS open data (CC BY 4.0, ECMWF).
- HRRR static soil classes (BNU soil, as NCEP's HRRR static file uses them), read from the user's geog set
  (bnu_soiltype_top, `gpuwm fetch-geog`) for the RUC option. Treated as US Government data, as the HRRR uses it.
- Monthly soil-moisture CDF tables (`woof-nam fetch-soil-cdf`, woof-nam release assets): built from the NOAA GFS
  and NAM soil analyses (US Government data) by tools/soil_start.
- Map basemap in namgpu/data/basemap/: Natural Earth 10m and 110m coastlines, lakes, land, ocean,
  borders and state lines (naturalearthdata.com, public domain) and the US Census Bureau
  cb_2023_us_county_5m county boundaries (US Government work, 17 U.S.C. 105), unmodified copies of
  the gpuwm 2.9.11 renderer bundle's assets/basemap.
- Climatological aerosol table namgpu/parm/nam_climaeropac_global.txt: NCEP format of the OPAC
  climatology, Hess, Koepke and Schult (1998), Bull. Amer. Meteor. Soc. 79, 831-844, as
  redistributed by NOAA in the GFS fix set.
