ras-commander-fast-dss
Copyright (c) 2026 William M. Katzenmeyer
Licensed under the MIT License; see LICENSE.

ras-commander-fast-dss is an independent Rust implementation of the HEC-DSS file format.
Parts of it port or adapt code from the projects below, whose notices follow. Text between
"Begin upstream notice" and "End upstream notice" lines is reproduced verbatim from the
upstream source named on its "Source:" line (comment markers removed from source-file
headers). Text outside those lines is written by this project and is not part of any
upstream notice.

The BSD-3-Clause portions (AOCL-LibM, NetCDF-Java) make the licence expression of the
dss-vortex and dss-py crates and of the Python wheel `MIT AND BSD-3-Clause`.

Wheels include third-party Rust crates under their own licences. Those licences ship in the
wheel as ras_commander_fast_dss/THIRD_PARTY_LICENSES.txt, generated by
scripts/third_party_licenses.py and checked against the build graph by a test. That file also
carries this NOTICE in full.

HEC-DSS, HEC-RAS, HEC-HMS, HEC-DSSVue and HEC-Vortex are products of the U.S. Army Corps of
Engineers, Hydrologic Engineering Center (USACE HEC). This project is not affiliated with,
endorsed by or supported by HEC or USACE.

==============================================================================
HEC-DSS (format knowledge only)
==============================================================================

The engine's understanding of the HEC-DSS format was derived by reading the HEC-DSS
source code (https://github.com/HydrologicEngineeringCenter/hec-dss, tag 7-IU-15). No HEC code
is copied into this project or linked into any build. Its licence, for reference:

----- Begin upstream notice: HEC-DSS LICENSE.md -----
Source: https://github.com/HydrologicEngineeringCenter/hec-dss/blob/7-IU-15/LICENSE.md

MIT License



Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
----- End upstream notice: HEC-DSS LICENSE.md -----

==============================================================================
AOCL-LibM (AMD), BSD-3-Clause
==============================================================================

crates/dss-vortex/src/maths (trig.rs, inverse.rs, hyperbolic.rs, log_pow.rs, tables.rs) is
ported from AOCL-LibM, https://github.com/amd/aocl-libm-ose, commit
29fd054f383e6c5e2dec2fce781d5220059f1836. The files ported from are
src/isa/avx2/gas/{sin,cos,tan,exp,log}_fma3.S, src/isa/avx2/include/trig_func.h,
src/isa/avx/gas/cexp.S, src/ref/sinh.c, src/optimized/{asin,atan,atan2,hypot}.c and
src/optimized/atan2_data.h. Each carries the notice below; the notice is reproduced from
src/isa/avx2/gas/sin_fma3.S. The copyright lines of the other files, verbatim, are:

  src/isa/avx2/gas/{cos,tan,exp,log}_fma3.S, src/isa/avx2/include/trig_func.h,
  src/isa/avx/gas/cexp.S, src/ref/sinh.c, src/optimized/asin.c:
    Copyright (C) 2008-2022 Advanced Micro Devices, Inc. All rights reserved.
  src/optimized/atan.c, src/optimized/hypot.c:
    Copyright (C) 2008-2023 Advanced Micro Devices, Inc. All rights reserved.
  src/optimized/atan2.c:
    Copyright (C) 2008-2026 Advanced Micro Devices, Inc. All rights reserved.
  src/optimized/atan2_data.h:
    Copyright (C) 2026 Advanced Micro Devices, Inc. All rights reserved.

The conditions and disclaimer in each of those files are identical to the text below.

----- Begin upstream notice: AOCL-LibM src/isa/avx2/gas/sin_fma3.S header -----
Source: https://github.com/amd/aocl-libm-ose/blob/29fd054f383e6c5e2dec2fce781d5220059f1836/src/isa/avx2/gas/sin_fma3.S

Copyright (C) 2008-2022 Advanced Micro Devices, Inc. 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.
----- End upstream notice: AOCL-LibM src/isa/avx2/gas/sin_fma3.S header -----

==============================================================================
ARM optimized-routines, MIT
==============================================================================

`pow` in crates/dss-vortex/src/maths/log_pow.rs, and its tables, are ported from ARM
optimized-routines, https://github.com/ARM-software/optimized-routines, commit
2ee4b0d45680a9880412c1d186224b08652c35f6 (math/pow.c, math/exp_data.c, math/pow_log_data.c).
Those files are licensed `MIT OR Apache-2.0 WITH LLVM-exception`; this project uses them under
the MIT option. Their copyright lines, verbatim:

  math/pow.c:          Copyright (c) 2018-2026, Arm Limited.
  math/exp_data.c:     Copyright (c) 2018-2023, Arm Limited.
  math/pow_log_data.c: Copyright (c) 2018, Arm Limited.

The MIT licence from the repository's LICENSE file:

----- Begin upstream notice: ARM optimized-routines LICENSE (MIT section) -----
Source: https://github.com/ARM-software/optimized-routines/blob/2ee4b0d45680a9880412c1d186224b08652c35f6/LICENSE

Copyright (c) 1999-2022, Arm Limited.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
----- End upstream notice: ARM optimized-routines LICENSE (MIT section) -----

==============================================================================
NetCDF-Java 5.5.3 (Unidata), BSD-3-Clause
==============================================================================

The GRIB2 reader (crates/dss-vortex/src/source/grib), the NetCDF dataset, axis and time
handling (crates/dss-vortex/src/source/netcdf) and parts of crates/dss-vortex/src/crs follow
rules read in NetCDF-Java 5.5.3, https://github.com/Unidata/netcdf-java (for example
ucar/nc2/grib/grib2/Grib2Gds.java, ucar/nc2/dataset, ucar/nc2/internal/dataset, ucar/nc2/time).
Those source files carry the header, verbatim:

  Copyright (c) 1998-2018 John Caron and University Corporation for Atmospheric Research/Unidata
  See LICENSE for license information.

The LICENSE they refer to:

----- Begin upstream notice: NetCDF-Java v5.5.3 LICENSE -----
Source: https://github.com/Unidata/netcdf-java/blob/v5.5.3/LICENSE

BSD 3-Clause License

Copyright (c) 1998-2018, University Corporation for Atmospheric Research/Unidata
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* 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.

* 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.
----- End upstream notice: NetCDF-Java v5.5.3 LICENSE -----

==============================================================================
HEC-Vortex 1.1.0, MIT
==============================================================================

crates/dss-vortex ports or adapts behaviour of HEC-Vortex 1.1.0,
https://github.com/HydrologicEngineeringCenter/Vortex (including io/NetcdfDataReader.java,
io/GridDatasetReader.java, io/TimeConverter.java, geo/Reprojector.java, geo/WktFactory.java and
geo/Resampler.java). fixtures/public/netcdf holds five small test files from HEC-Vortex's test
resources, and fixtures/public/vortex_p41 holds Vortex's decoded arrays of public NOAA
products. Fixtures are in the source repository only, not in the wheel or the sdist.

----- Begin upstream notice: HEC-Vortex v1.1.0 LICENSE.md -----
Source: https://github.com/HydrologicEngineeringCenter/Vortex/blob/v1.1.0/LICENSE.md

MIT License

Copyright (c) 2019 U.S. Federal Government (in countries where recognized)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
----- End upstream notice: HEC-Vortex v1.1.0 LICENSE.md -----

==============================================================================
PROJ 7.2.0, MIT
==============================================================================

crates/dss-vortex/src/crs ports projection formulas and CRS parameter handling from PROJ
7.2.0, https://github.com/OSGeo/PROJ (src/projections/aea.cpp, lcc.cpp, stere.cpp and
supporting files), and its WKT number format. crates/dss-vortex/tests/warp_port (test only,
not linked into any shipped library) also follows PROJ 7.2.0. src/projections/aea.cpp
carries, verbatim:

  Copyright (c) 1995, Gerald Evenden

under the same permission notice as COPYING below. PROJ's COPYING file:

----- Begin upstream notice: PROJ 7.2.0 COPYING -----
Source: https://github.com/OSGeo/PROJ/blob/7.2.0/COPYING

All source, data files and other contents of the PROJ.4 package are 
available under the following terms.  Note that the PROJ 4.3 and earlier
was "public domain" as is common with US government work, but apparently
this is not a well defined legal term in many countries.  I am placing 
everything under the following MIT style license because I believe it is
effectively the same as public domain, allowing anyone to use the code as
they wish, including making proprietary derivatives. 

Though I have put my own name as copyright holder, I don't mean to imply
I did the work.  Essentially all work was done by Gerald Evenden. 

 --------------

 Copyright (c) 2000, Frank Warmerdam

 Permission is hereby granted, free of charge, to any person obtaining a
 copy of this software and associated documentation files (the "Software"),
 to deal in the Software without restriction, including without limitation
 the rights to use, copy, modify, merge, publish, distribute, sublicense,
 and/or sell copies of the Software, and to permit persons to whom the
 Software is furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included
 in all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 DEALINGS IN THE SOFTWARE.
----- End upstream notice: PROJ 7.2.0 COPYING -----

==============================================================================
GDAL 3.2.1, MIT/X
==============================================================================

crates/dss-vortex/src/warp ports the warp kernels, approximate transformer, source-window,
chunking and suggested-output logic from GDAL 3.2.1, https://github.com/OSGeo/gdal, and
crates/dss-vortex/src/crs follows behaviour read in ogr/ogrct.cpp. crates/dss-vortex/tests/
warp_port (test only) follows the same files. Their copyright lines, verbatim:

  gdal/alg/gdalwarpkernel.cpp:
    Copyright (c) 2003, Frank Warmerdam <warmerdam@pobox.com>
    Copyright (c) 2008-2013, Even Rouault <even dot rouault at spatialys.com>
  gdal/alg/gdalwarpoperation.cpp:
    Copyright (c) 2003, Frank Warmerdam <warmerdam@pobox.com>
    Copyright (c) 2007-2012, Even Rouault <even dot rouault at spatialys.com>
  gdal/alg/gdaltransformer.cpp:
    Copyright (c) 2002, i3 - information integration and imaging
    Copyright (c) 2008-2013, Even Rouault <even dot rouault at spatialys.com>
  gdal/alg/gdalwarper.cpp:
    Copyright (c) 2003, Frank Warmerdam <warmerdam@pobox.com>
    Copyright (c) 2008-2012, Even Rouault <even dot rouault at spatialys.com>
  gdal/apps/gdalwarp_lib.cpp:
    Copyright (c) 2002, i3 - information integration and imaging
    Copyright (c) 2007-2015, Even Rouault <even dot rouault at spatialys.com>
    Copyright (c) 2015, Faza Mahamood
  gdal/ogr/ogrct.cpp:
    Copyright (c) 2000, Frank Warmerdam
    Copyright (c) 2008-2013, Even Rouault <even dot rouault at spatialys.com>

Each of those files carries the permission notice below, reproduced from
gdal/alg/gdalwarpkernel.cpp:

----- Begin upstream notice: GDAL v3.2.1 gdal/alg/gdalwarpkernel.cpp header (permission notice) -----
Source: https://github.com/OSGeo/gdal/blob/v3.2.1/gdal/alg/gdalwarpkernel.cpp

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
----- End upstream notice: GDAL v3.2.1 gdal/alg/gdalwarpkernel.cpp header (permission notice) -----

==============================================================================
Vendored hdf5-reader and netcdf-reader 0.12.1
==============================================================================

vendor/hdf5-reader and vendor/netcdf-reader are version 0.12.1 of the crates.io packages from
https://github.com/roteiro-gis/netcdf-rust, `MIT OR Apache-2.0`, copyright 2026 Ian Norden.
Their licence texts are kept beside them in vendor/ and in the wheel's licence bundle. They are
modified by this project; vendor/PATCHES.md lists the changes.


==============================================================================
Other references
==============================================================================

Microsoft's Universal C Runtime was called only as a black box for comparison. Nothing from
it is ported, disassembled or included.

HEC Monolith, the HEC-DSS C library (through HEC's hecdss Python package) and HEC-Vortex were
used as test oracles outside this repository; none of them is included or linked.
