Documentation
¶
Overview ¶
Package windninja is the go implentation of the diagnostic wind model WindNinja. See https://firelab.org/projects/windninja for more information.
Index ¶
- Constants
- func IntSliceToCInt(data []int) []C.int
- func Version() string
- type Access
- type DataType
- type Dataset
- func (dataset *Dataset) Close()
- func (dataset *Dataset) GeoTransform() [6]float64
- func (dataset *Dataset) IO(rwFlag RWFlag, xOff, yOff, xSize, ySize int, buffer interface{}, ...) error
- func (dataset *Dataset) ProjectionRef() string
- func (dataset *Dataset) RasterCount() int
- func (dataset *Dataset) RasterXSize() int
- func (dataset *Dataset) RasterYSize() int
- type Dense
- type InitFunc
- type LandfireClient
- type MBR
- type MeshOpts
- type Ninja
- type Ninjas
- type RWFlag
- type Solver
- type SymDense
Constants ¶
const ( Unknown = DataType(C.GDT_Unknown) Byte = DataType(C.GDT_Byte) UInt16 = DataType(C.GDT_UInt16) Int16 = DataType(C.GDT_Int16) UInt32 = DataType(C.GDT_UInt32) Int32 = DataType(C.GDT_Int32) Float32 = DataType(C.GDT_Float32) Float64 = DataType(C.GDT_Float64) CInt16 = DataType(C.GDT_CInt16) CInt32 = DataType(C.GDT_CInt32) CFloat32 = DataType(C.GDT_CFloat32) CFloat64 = DataType(C.GDT_CFloat64) )
const ( // Read data Read = RWFlag(C.GF_Read) // Write data Write = RWFlag(C.GF_Write) )
const ( // Read only (no update) access ReadOnly = Access(C.GA_ReadOnly) // Read/write access. Update = Access(C.GA_Update) // Allow raster and vector drivers to be used. AllDrivers = Access(C.GDAL_OF_ALL) // Allow raster drivers to be used. RasterDrivers = Access(C.GDAL_OF_RASTER) // Allow vector drivers to be used. VectorDrivers = Access(C.GDAL_OF_VECTOR) // Allow gnm drivers to be used. GNMDrivers = Access(C.GDAL_OF_GNM) // Unsure KindMask = Access(C.GDAL_OF_KIND_MASK) Shared = Access(C.GDAL_OF_SHARED) // Emit error message in case of failed open. Verbose = Access(C.GDAL_OF_VERBOSE_ERROR) // Open as internal dataset. Such dataset isn't registered in the global list // of opened dataset. Cannot be used with GDAL_OF_SHARED. Internal = Access(C.GDAL_OF_INTERNAL) )
const ( MassConserving = iota MomentumConserving SemiLagrangian )
Variables ¶
This section is empty.
Functions ¶
func IntSliceToCInt ¶
Types ¶
type Dataset ¶
type Dataset struct {
// contains filtered or unexported fields
}
func (*Dataset) GeoTransform ¶
func (*Dataset) ProjectionRef ¶
func (*Dataset) RasterCount ¶
Fetch the number of raster bands in the dataset
type Dense ¶
Alias these types for future removal depending on how we implement these internally.
We may replace this with a compressed row/col storage.
type InitFunc ¶
func UniformInit ¶
type LandfireClient ¶
type LandfireClient struct {
// contains filtered or unexported fields
}
func NewLandfireClient ¶
func NewLandfireClient(c *http.Client) *LandfireClient
func (*LandfireClient) Download ¶
Download requests a landscape file with the requested bounds and writes the file to the target path dst. If dst does not have the extension '.lcp', then it is added. A file with the same path but a '.prj' extension is written as well.
The following process is followed:
1) send a request for validation 2) initiate download 3) check downloadStatus 4) download the data to a temporary file 5) extract the landscape files from the temporary zip into dst.(lcp|prj)
TODO(kyle): progress? TODO(kyle): figure out if we can use an io.Writer here, if it seems better.
type Ninja ¶
type Ninja struct {
// contains filtered or unexported fields
}