processing

package
v0.0.0-...-c9443ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBInit

func DBInit() *sqlx.DB

func GetExcelColumn

func GetExcelColumn(i int) (string, error)

func PingWithTimeout

func PingWithTimeout(db *sqlx.DB) error

PingWithTimeout ...

func PrintAscii

func PrintAscii(grid [][]float64, filepath string, xInfo tools.Info, yInfo tools.Info, pow float64, chunkR int, chunkC int) error

func PrintExcel

func PrintExcel(grid [][]float64, filename string, pow float64) error

Print out grid to excel file. Can only be done serially.

func ReadGeoPackage

func ReadGeoPackage(filename string, layer string, field string, stepX float64, stepY float64) ([]tools.Point, string, tools.Info, tools.Info, error)

func ReadPGData

func ReadPGData(db *sqlx.DB, query string, stepX float64, stepY float64) ([]tools.Point, tools.Info, tools.Info, error)

func ReadTextData

func ReadTextData(filepath string, epsg int) ([]tools.Point, string, tools.Info, tools.Info, error)

func TransferType

func TransferType(src string, dst string, outputType string) error

func WriteGDAL

func WriteGDAL(unwrappedMatrix interface{}, GDINFO GDalInfo, filename string, offsets tools.OrderedPair, totalSize tools.OrderedPair, bufferSize tools.OrderedPair, create bool) error

Write out cleaned data using gdal. Currently only supports ascii and tiff types.

Types

type GDalInfo

type GDalInfo struct {
	XMin         float64
	YMin         float64
	XCell        float64
	YCell        float64
	GDalDataType gdal.DataType
	Proj         string
}

func CreateGDalInfo

func CreateGDalInfo(XMin float64, YMin float64, XCell float64, YCell float64, GDalDataType gdal.DataType, proj string) GDalInfo

func GetInfoGDAL

func GetInfoGDAL(filepath string) (GDalInfo, tools.OrderedPair, error)

func ReadGDAL

func ReadGDAL(filepath string, offsets tools.OrderedPair, size tools.OrderedPair, entireFile bool) ([]byte, GDalInfo, tools.OrderedPair, error)

type StringInt

type StringInt struct {
	PrintString string
	Row         int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL