Utility Functions and Classes#

GSolveDataWarning#

GSolveDataWarning(prefix[, show])

A convenience class for collecting and displaying warning messages.

GSolveDataWarning.count

GSolveDataWarning.final_msg()

GSolveDataWarning.print_msgs()

Print all stored warning messages.

Functions#

Data Conversion#

to_1d_ndarray(a[, expected_size, ...])

to_1d_ndarray_or_float(a)

to_naive_utc_datetime(t[, allow_nat])

Convert inputs to UTC time, but with timezone information set to None.

normalize_field_names(df)

Return a copy of df with column values and axis.names converted to snake_case.

normalize_str(s)

Convert s to str and format it to snake_case.

check_duplicate_index(idx)

Raise a ValueError if the index contains duplicate values.

Excel Data Handling#

columns_to_timestamp(df[, ts_columns])

Generate a Series of Timestamps from discrete date & time columns in df.

timestamp_to_columns(ds[, resolution, ...])

Convert a Series of pandas.Timestamp to discrete date & time columns.

merge_datetime_columns(df[, name, ...])

Merge discrete datetime columns into pandas.Timestamp.

expand_datetime_column(df[, column_name, ...])

Expand datetime column(s) to discrete date and time component columns.

prepare_writable_df(df[, ...])

Prepare a DataFrame for writing to a file.

Survey Loop Handling#

generate_loop_intervals(datetime_bounds)

Generate time intervals from a sequence of datetimes.

generate_loop_names(n[, start, step, format_str])

Generate loop identifier strings.

identify_loop_blocks(datetimes, gap[, ...])

Identify loop blocks in a sequence of datetimes based on gaps.

loops_from_gaps(datetimes, gap[, ...])

Generate loops from gaps in a sequence of datetimes and assign loop id's.

Other Utilities#

dms2rad(d, m, s)

Convert angles from degree-minutes-seconds to radians.

round_coords(arr)

Round values in arr, with halfway cases rounded towards positive inifinty.