NFDRS4
The US National Fire Danger Rating System Version 4.0.
https://github.com/firelab/nfdrs4
Category: Biosphere
Sub Category: Wildfire
Last synced: about 13 hours ago
JSON representation
Repository metadata
National Fire Danger Rating System 4.0
- Host: GitHub
- URL: https://github.com/firelab/nfdrs4
- Owner: firelab
- Created: 2022-06-06T23:27:58.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2026-01-14T20:58:03.000Z (11 days ago)
- Last Synced: 2026-01-20T09:48:59.162Z (5 days ago)
- Language: C++
- Size: 10.9 MB
- Stars: 19
- Watchers: 7
- Forks: 8
- Open Issues: 0
- Releases: 0
-
Metadata Files:
- Readme: README.md
README.md
NFDRS4 - National Fire Danger Rating System 4.0
The repository houses the source code for the US National Fire Danger Rating System Version 4.0.
The source code provides access to the Command Line Interface as well as SWIG wrappers to build Python libraries. It also provides documentation on the formats of the inputs for the CLI was well as an FW13 to FW21 weather data file converter.
The model documentation can be found here:
Modernizing the US National Fire Danger Rating System (version 4): Simplified fuel models and improved live and dead fuel moisture calculations
Multiplatform source for NFDRS4 static library
This library provides all of the source code for NFDRS Version 4.0 including the Nelson Dead Fuel Moisture Model, the Growing Season Index-based Live Fuel Moisture Model and the NFDRS calculator.
Also produces two apps: the FireWxConverter and the NFDRS4_cli (command line interface).
FireWxConverter, which converts FW13 fire weather data files to FW21 fire weather data files
NFDRS4_cli produces live and dead fuel moistures as well as NFDRS indexes from FW21 fire weather data files.
Dependencies:
CMAKE NFDRS4 - requires CMAKE version 3.8 or higher
Config4cpp - see http://www.config4star.org/
Config4cpp is used by NFDRS4 for defining configuration files for NFDRS4_cli and NFDRS4 initialization (station) parameters.
Complete source for config4cpp is included in the 'extern' directory, and must be built via makefiles to produce a static config4cpp library which is neccessary to build NFDRS4_cli executable.
utctime - see http://paulgriffiths.github.io/utctime/documentation/index.html
UTCTime class is used for handling time in NFDRS4. Complete source is in the lib/utctime directory
License - NFDRS4 is public domain software, still under development at this time.
Building NFDRS4_cli
Run CMAKE and provide entries for CONFIG4CPP_DIR (directory containing config4cpp include files) and CONFIG4CPP_LIB (directory containing config4cpp.lib)
Rerun CMAKE and run make
Building in MS Windows
Building for MS Windows has been tested with MS Visual Studio 2022
Steps
Build config4cpp
Build config4cpp.lib is easiest accomplished by use of the x64 Native Tools Command Prompt for VS 2022.
Open the x64 Native Tools Command Prompt for VS 2022, navigate to the NFDRS4/extern/config4cpp directory and enter: nmake -f Makefile.win all64
This should produce config4cpp.lib static library in NFDRS4/extern/config4cpp/lib
Navigate back to the root NFDRS4 directory
Run cmake -G "NMake Makefiles" .
If you haven't already done so, edit the entries for CONFIG4CPP_DIR and CONFIG4CPP_LIB in CMakeCache.txt
Example:
//Path to a file.
CONFIG4CPP_DIR:PATH=S:/src/NFDRS4/extern/config4cpp/include
//Path to a library.
CONFIG4CPP_LIB:FILEPATH=S:/src/NFDRS4/extern/config4cpp/lib/config4cpp.lib*
Rerun cmake -G "NMake Makefiles" ., there should be no errors
Run nmake
Build NFDRS4 from Visual Studio 2022
In Visual Studio 2022, open the NFDRS4 folder and NFDRS4 will load as a CMake project
Select Project - CMake Settings for NFDRS4
Create a Configuration for x64-Release
Save the settings, Cmake will run
Populate the entry in CMakeSettings.json for CONFIG4CPP_DIR
(should be /NFDRS4/extern/config4cpp/include where is the Drive and folder where the NFDRS4 repository is located)
e.g. D:/Repos/NFDRS4/extern/config4cpp/include
Populate the entry in CmakeSettings.json for CONFIG4CPP_LIB
(should be /NFDRS4/extern/config4cpp/lib/config4cpp.lib)
e.g. D:/Repos/NFDRS4/extern/config4cpp/lib/config4cpp.lib
Save CMakeSettings.json, CMake will run and there should be no errors
Select Build - Build All
Select Build - Install NFDRS4
- this will create an install folder for X64-Release with necessary include and lib files to use NFDRS4 and fw21 with applications, as well as executables
NFDRS4_cli.exe and FireWxConverter.exe
Building NFDRS4 for Linux
After extracting the repository, navigate to the NFDRS4/external/config4cpp directory in a Terminal window, and run make
This will create config4cpp.a in NFDRS/external/lib
Navigate back to the NFDRS4 directory. run: cmake .
Fill in or add entries for CONFIG4CPP_DIR and CONFIG4CPP_LIB
e.g.
CONFIG4CPP_DIR:PATH=/home//src/NFDRS4/extern/config4cpp/include
CONFIG4CPP_LIB:FILEPATH=/home//src/NFDRS4/extern/config4cpp/lib/libconfig4cpp.a
Build the repository:
run make
Install the repository:
run sudo make install
Owner metadata
- Name: RMRS Missoula Fire Sciences Lab
- Login: firelab
- Email: firelabmissoula@gmail.com
- Kind: organization
- Description:
- Website: firelab.org
- Location: Missoula, MT
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/3028309?v=4
- Repositories: 47
- Last ynced at: 2024-03-27T00:53:09.462Z
- Profile URL: https://github.com/firelab
GitHub Events
Total
- Fork event: 7
- Issues event: 2
- Watch event: 8
- Issue comment event: 1
- Push event: 27
Last Year
- Fork event: 6
- Issues event: 2
- Watch event: 6
- Issue comment event: 1
- Push event: 9
Issue and Pull Request metadata
Last synced: about 1 month ago
Total issues: 1
Total pull requests: 0
Average time to close issues: about 2 months
Average time to close pull requests: N/A
Total issue authors: 1
Total pull request authors: 0
Average comments per issue: 1.0
Average comments per pull request: 0
Merged pull request: 0
Bot issues: 0
Bot pull requests: 0
Past year issues: 1
Past year pull requests: 0
Past year average time to close issues: about 2 months
Past year average time to close pull requests: N/A
Past year issue authors: 1
Past year pull request authors: 0
Past year average comments per issue: 1.0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- JYipWX (1)
Top Pull Request Authors
Top Issue Labels
Top Pull Request Labels
Dependencies
- breathe *
- sphinx_rtd_theme *
Score: -Infinity