MGSurvE.auxiliary

Various functions that are serve I/O purposes or not relevant to any specific module.

Functions

cheapRuler(pointA, pointB)

Calculates the distance between two (lon,lat) points assumming flat approximations.

dumpLandscape(landscape, fPath, fName[, fExt])

Exports a serialized landscape to disk.

exportLandscape(landscape, fPath, fName)

Exports a landscape to disk to CSV files (for use in MGDrivE).

haversineDistance(pointA, pointB)

Calculates the distance between two (lon,lat) points using the haversine approximation.

isNotebook()

Checks if the script is running from a Jupyter environment.

loadLandscape(fPath, fName[, fExt])

Loads a serialized landscape from disk.

makeFolder(path)

Crates a folder in the specified directory.

makeFolders(pathsList)

Creates a list of folders if they don't exist.

vincentyDistance(pointA, pointB[, meters])

Calculates the Vincenty arc distance between points.