fqpr_helpers module

HSTB.kluster.fqpr_helpers Module

Functions

build_crs([zone_num, datum, epsg, projected])

epsg_determinator(datum[, zone, hemisphere])

Take in a datum identifer and optional zone/hemi for projected and return an epsg code

haversine(lon1, lat1, lon2, lat2)

Calculate the great circle distance in kilometers between two points on the earth (specified in decimal degrees).

print_progress_bar(iteration, total[, ...])

Call in a loop to generate a text progress bar, ex: # A List of Items items = list(range(0, 57)) l = len(items) # Initial call to print 0% progress printProgressBar(0, l, prefix = 'Progress:', suffix = 'Complete', length = 50) for i, item in enumerate(items): # Do stuff.

return_directory_from_data(data)

Given either a path to a zarr store, a path to a directory of multibeam files, a list of paths to multibeam files or a path to a single multibeam file, return the parent directory.

return_files_from_path(pth[, in_chunks])

Input files can be entered into an xarray_conversion.BatchRead instance as either a list, a path to a directory of multibeam files or as a path to a single file.

seconds_to_formatted_string(seconds)

Get a nicely formatted time elapsed string