pyacs.sol.sinex module

class pyacs.sol.sinex.SSinex(name=None, estimates=None, VCV=None)[source]

Bases: object

Sinex class: reads and manipulates a Sinex solution. Sinex (Solution/Technique Independent Exchange format) : Sinex format handling Description of the Sinex format is available at: http://www.iers.org/documents/ac/sinex/sinex_v210_proposal.pdf

add_site(M)[source]

Adds a Gpoint M in the current Sinex instance

add_to_STA(code, soln, add_sta)[source]

add sta [dx,dx,dz] to STA values for a given code and soln

apply_helmert(T)[source]

Applies an Helmert transformation to a SINEX instance returns a new SINEX instance

change_STA(code, soln, add_sta)[source]

change STA values for a given code and soln

clear()[source]

Clear the sinex

common(H_Gpoint, prefit=3.5, strict=True)[source]

Returns a dictionary of Gpoint common to the current Sinex object and a dictionary (code,soln) of Gpoint Coordinates will be the ones from the Sinex and NOT from the list of Gpoints commons point are points with the same code pt and soln

classmethod from_sinex(snx)[source]

Constructs a PYACS Sinex instance from a P. Rebishung sinex instance

get_STA(code, epoch, soln=None, soln_file=None, psd_file=None, discontinuity=None)[source]

Provides the predicted coordinates for a site at a given epoch. Accounts for soln and psd if provided.

info_gpoint(code, soln=None)[source]

Print info for a given code and optionally soln

lcode()[source]

Returns a list of all point codes in current Sinex object

print_STA(code, soln=None)[source]

print STA values for a given code and optional soln

read_apr(lexclude=[], discontinuity=None, rename=None)[source]

Read a Globk apr file.

Parameters:
  • lexclude (list, optional) – Site codes to exclude from reading.

  • discontinuity (object, optional) – If provided, used to populate the SOLN field (e.g. from Discontinuity/IGS soln).

  • rename (dict, optional) – Keys: sinex file; values: list of (‘OLD_CODE’, ‘NEW_CODE’). Often from Read_Conf_Pyacs.

Returns:

Dictionary with (CODE, SOLN) keys and Gpoint instance values.

Return type:

dict

read_section_estimate(lexclude=[], lonly=[], discontinuity=None, rename=None, exclude=None)[source]

Read the ESTIMATE section of a SINEX file.

Returns a dictionary keyed by (CODE, SOLN) with Gpoint instance values.

Parameters:
  • lexclude (list, optional) – Site codes to exclude from reading.

  • lonly (list, optional) – If non-empty, only these codes are considered.

  • discontinuity (object, optional) – If provided, used to populate the SOLN field (e.g. from Discontinuity/IGS soln).

  • rename (dict, optional) – Keys: sinex file; values: list of (‘OLD_CODE’, ‘NEW_CODE’). Often from Read_Conf_Pyacs.

  • exclude (object, optional) – Additional exclusion filter.

Returns:

Dictionary with (CODE, SOLN) keys and Gpoint instance values.

Return type:

dict

Notes

A point in SINEX is defined by CODE, PT, DOMES and SOLN; here PT and DOMES are ignored for versatility.

site(code, soln)[source]

return site for a given code and soln

subset_from_code(lcode, lsoln=None)[source]

Takes a subset from a SINEX according to a list of code and optionally a list of associated soln. Returns a dictionary of Gpoint with key (code,soln)

subset_from_keys(H)[source]

Takes a subset from a SINEX according to the key of a dictionary made of (code,soln) Returns a dictionary of Gpoint with key (code,soln)

write_sinex(sinex_name, Agency_Code='IRD')[source]
write_tsxyz(fname, HCOV=None)[source]

Write a tsxyz file from the current Sinex instance

pyacs.sol.sinex.glred_1_day(glx, dir_prt, dir_log, apr, eq_rename=None)[source]

run glred over a day

pyacs.sol.sinex.glx2snx(glx, snx, dir_snx='.')[source]

converts a GLOBK glx file into a sinex file

pyacs.sol.sinex.snx2ssc(snx, ssc, dir_ssc)[source]

simplifies a sinex file into a ssc file