FireSTARR
Loading...
Searching...
No Matches
fs::TestEnvironment Class Reference

An Environment with no elevation and the same value in every Cell. More...

Inheritance diagram for fs::TestEnvironment:
Collaboration diagram for fs::TestEnvironment:

Public Member Functions

 TestEnvironment (CellGrid &&cells) noexcept
 Environment with the same data in every cell.
 
- Public Member Functions inherited from fs::Environment
std::optional< Coordinates > findCoordinates (const Point &point, bool flipped) const
 Determine Coordinates in the grid for the Point.
 
constexpr string_view proj4 () const
 UTM projection that this uses.
 
constexpr Idx height () const
 
constexpr Idx width () const
 
constexpr MathSize cellSize () const
 Cell width and height (m)
 
constexpr ElevationSize elevation () const
 Elevation of the origin Point.
 
Cell cell (const XYIdx &xy) const
 
Cell offset (const Event &event, const Idx x, const Idx y) const
 
shared_ptr< ProbabilityMap > makeProbabilityMap (DurationSize time, DurationSize start_time, int min_value, int low_max, int med_max, int max_value, const shared_ptr< Perimeter > perimeter) const
 Make a ProbabilityMap that covers this Environment.
 
template<class Other >
GridMap< Other > makeMap (const Other nodata) const
 Create a GridMap<Other> covering this Environment.
 
const BurnedData & unburnable () const
 
void saveToFile (const string_view output_directory) const
 
MathSize to_hectares (const size_t num_cells) const
 

Additional Inherited Members

- Static Public Member Functions inherited from fs::Environment
static Environment loadEnvironment (const string_view path, const Point &point, const LazyPath &perimeter, YearSize year)
 Load from rasters in folder that have same projection as Perimeter.
 
static Environment load (const Point &point, const string_view in_fuel, const string_view in_elevation)
 Load from rasters.
 
- Protected Member Functions inherited from fs::Environment
 Environment (unique_ptr< FuelGrid > fuel_grid, unique_ptr< ElevationGrid > elevation_grid, CellGrid &&cells, const ElevationSize elevation) noexcept
 Construct from cells and elevation.
 
 Environment (const FuelGrid &fuel, const ElevationGrid &elevation, const Point &point)
 Load from rasters.
 
 Environment (const FuelGrid &fuel, const ElevationGrid &elevation, const Point &point, const Settings &settings)
 
- Static Protected Member Functions inherited from fs::Environment
static CellGrid makeCells (const FuelGrid &fuel, const ElevationGrid &elevation)
 Combine rasters into CellGrid.
 

Detailed Description

An Environment with no elevation and the same value in every Cell.

Constructor & Destructor Documentation

◆ TestEnvironment()

fs::TestEnvironment::TestEnvironment ( CellGrid && cells)
inlineexplicitnoexcept

Environment with the same data in every cell.

Parameters
cellsConstant cells

The documentation for this class was generated from the following file: