shxarray.io.sinex#
- shxarray.io.sinex.read_sinex(file_or_obj, stopatmat=False)#
Reads normal equation information from a SINEX file
- Parameters:
file_or_obj – IO buffer or filename with the SINEX data source
stopatmat (bool) – Stop reading from the source when encountering a MATRIX block to speed up. (default=False)
- Return type:
a xarray.Dataset holding the normal equation information
- shxarray.io.sinex.read_statistics(fileobj, dsout, blockname)#
Reads a SINEX block holding statistical metrics
- Parameters:
fileobj – io buffer to read lines from
dsout (xarray.Dataset) – xarray.Dataset to augment the matrix data to
- blocknamestr
name of the SINEX block. should be SOLUTION/STATISTICS
- Return type:
an updated xarray.Dataset holding the available statistics as scalar variables
- shxarray.io.sinex.read_symmat(fileobj, dsout, blockname)#
Reads a triangular matrix from a SINEX block and returns a symmetric version
- Parameters:
fileobj – io buffer to read lines from
dsout (xarray.Dataset) – xarray.Dataset to augment the matrix data to
- blocknamestr
name of the SINEX block. should be one of: SOLUTION/NORMAL_EQUATION_MATRIX U SOLUTION/NORMAL_EQUATION_MATRIX L
- Return type:
an updated xarray.Dataset holding the new matrix in a new variable ‘N’
- shxarray.io.sinex.read_vec(fileobj, dsout, blockname)#
Read a SINEX block containing a vector
- Parameters:
fileobj – io buffer to read lines from
dsout (xarray.Dataset) – xarray.Dataset to augment the vector data to
- blocknamestr
name of the SINEX block. should be one of: SOLUTION/ESTIMATE SOLUTION/APRIORI SOLUTION/NORMAL_EQUATION_VECTOR
- Returns:
an updated xarray.Dataset holding the new data in new variables
depending on the blockname these ar (sol_est,sol_std,apri_est or rhs)
- shxarray.io.sinex.sinex2date(snxdate: str) datetime#
Convert sinex datestring in yy:doy:seconds to python datetime
- Parameters:
snxdate (str) – datestring in sinex format
- Returns:
Specified date and time as datetime object
- Return type:
datetime