![]() |
FireSTARR
|
The area that a Model is run for, with Fuel, Slope, and Aspect grids. More...
#include <Environment.h>


Public Member Functions | |
| unique_ptr< Coordinates > | findCoordinates (const Point &point, bool flipped) const |
| Determine Coordinates in the grid for the Point. | |
| Environment (Environment &&rhs) noexcept=default | |
| Move constructor. | |
| Environment (const Environment &rhs) noexcept=default | |
| Copy constructor. | |
| Environment & | operator= (Environment &&rhs) noexcept=default |
| Move assignment. | |
| Environment & | operator= (const Environment &rhs) noexcept=default |
| Copy assignment. | |
| constexpr const string & | proj4 () const |
| UTM projection that this uses. | |
| constexpr Idx | rows () const |
| Number of rows in grid. | |
| constexpr Idx | columns () const |
| Number of columns in grid. | |
| constexpr MathSize | cellSize () const |
| Cell width and height (m) | |
| constexpr ElevationSize | elevation () const |
| Elevation of the origin Point. | |
| Cell | cell (const Idx row, const Idx column) const |
| Cell at given row and column. | |
| template<class P > | |
| constexpr Cell | cell (const Position< P > &position) const |
| Cell at given Location. | |
| Cell | offset (const sim::Event &event, const Idx row, const Idx column) const |
| Cell at Location with given hash. | |
| sim::ProbabilityMap * | makeProbabilityMap (DurationSize time, DurationSize start_time) const |
| Make a ProbabilityMap that covers this Environment. | |
| template<class Other > | |
| unique_ptr< data::GridMap< Other > > | makeMap (const Other nodata) const |
| Create a GridMap<Other> covering this Environment. | |
| unique_ptr< sim::BurnedData > | makeBurnedData () const |
| Create BurnedData and set burned bits based on Perimeter. | |
| void | resetBurnedData (sim::BurnedData *data) const noexcept |
| Reset with known non-fuel cells. | |
Static Public Member Functions | |
| static Environment | loadEnvironment (const string dir_out, const string &path, const Point &point, const string &perimeter, int year) |
| Load from rasters in folder that have same projection as Perimeter. | |
| static Environment | load (const string dir_out, const Point &point, const string &in_fuel, const string &in_elevation) |
| Load from rasters. | |
Protected Member Functions | |
| shared_ptr< sim::BurnedData > | initializeNotBurnable (const CellGrid &cells) const |
| Creates a map of areas that are not burnable either because of fuel or the initial perimeter. | |
| Environment (const string dir_out, CellGrid *cells, const ElevationSize elevation) noexcept | |
| Construct from cells and elevation. | |
| Environment (const string dir_out, const FuelGrid &fuel, const ElevationGrid &elevation, const Point &point) | |
| Load from rasters. | |
Static Protected Member Functions | |
| static CellGrid * | makeCells (const FuelGrid &fuel, const ElevationGrid &elevation) |
| Combine rasters into ConstantGrid<Cell, Topo> | |
Private Attributes | |
| string | dir_out_ |
| CellGrid * | cells_ |
| Cells representing Environment. | |
| shared_ptr< const sim::BurnedData > | not_burnable_ |
| BurnedData of cells that are not burnable. | |
| ElevationSize | elevation_ |
| Elevation at StartPoint. | |
The area that a Model is run for, with Fuel, Slope, and Aspect grids.
|
defaultnoexcept |
Move constructor.
| rhs | Environment to move from |

|
defaultnoexcept |
Copy constructor.
| rhs | Environment to copy from |
|
inlineprotectednoexcept |
Construct from cells and elevation.
| cells | Cells representing Environment |
| elevation | Elevation at origin Point |
|
inlineprotected |
Load from rasters.
| fuel | Fuel raster |
| elevation | Elevation raster |
|
inlinenodiscard |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
Number of columns in grid.


|
inlinenodiscardconstexpr |
|
nodiscard |
Determine Coordinates in the grid for the Point.
| point | Point to find Coordinates for |
| flipped | Whether the grid data is flipped across the horizontal axis |

|
staticnodiscard |
Load from rasters.
| point | Origin point |
| in_fuel | Fuel raster |
| in_elevation | Elevation raster |


|
staticnodiscard |
Load from rasters in folder that have same projection as Perimeter.
| dir_out | Folder to save outputs to |
| path | Folder to read rasters from |
| point | Origin point |
| perimeter | Perimeter to use projection from |
| year | Year to look for rasters for if available |


|
inlinenodiscard |
Create BurnedData and set burned bits based on Perimeter.

|
inlinestaticnodiscardprotected |
Combine rasters into ConstantGrid<Cell, Topo>
| elevation | Elevation raster |

|
inlinenodiscard |
Create a GridMap<Other> covering this Environment.
| Other | Type of GridMap |
| nodata | Value that represents no data |

|
nodiscard |
Make a ProbabilityMap that covers this Environment.
| time | Time in simulation this ProbabilityMap represents |
| start_time | Start time of simulation |
| min_value | Lower bound of 'low' intensity range |
| low_max | Upper bound of 'low' intensity range |
| med_max | Upper bound of 'moderate' intensity range |
| max_value | Upper bound of 'high' intensity range |

|
inlinenodiscard |
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenodiscardconstexpr |
UTM projection that this uses.

|
inlinenoexcept |
Reset with known non-fuel cells.
| data | BurnedData to reset |
|
inlinenodiscardconstexpr |
Number of rows in grid.

