gnssrefl.gnssir_old module

gnssrefl.gnssir_old.apply_refraction_corr(lsp, ele, p, T)
Parameters:
  • lsp (dictionary) – info from make_json_input

  • ele (numpy array of floats) – elevation angles (deg)

  • p (float) – pressure

  • T (float) – temperature (C)

Returns:

ele – elevation angle (deg)

Return type:

numpy array of floats

gnssrefl.gnssir_old.gnssir_guts(station, year, doy, snr_type, extension, lsp)

Computes lomb scargle periodograms for a given station, year, day of year etc.

Parameters:
  • station (string) – 4 character station name

  • year (integer) – full year

  • doy (integer) – day of year

  • snr_type (integer) – snr file type

  • extension (string) – optional subdirectory to save results

  • lsp (dictionary) –

    e1float

    min elev angle, deg

    e2float

    max elev angle, deg

    NReglist of floats

    noise region for RH peak2noise , meters

    azvallist of floats

    pairs of azimuth regions, i.e. [0 90 90 180]

gnssrefl.gnssir_old.local_update_plot(x, y, px, pz, ax1, ax2, failure)

updates result plot

Parameters:
  • x (numpy array) – elevation angle (deg)

  • y (numpy array) – SNR (volt/volt)

  • px (numpy array) – reflector height (m)

  • pz (numpy array) – spectral amplitude (volt/volt)

  • ax1 (matplotlib figure control) – top plot

  • ax2 (matplotlib figure control) – bottom plot

  • failure (boolean) – whether periodogram fails QC

gnssrefl.gnssir_old.onesat_freq_check(satlist, f)

for a given satellite name - tries to determine if you have a compatible frequency

Parameters:
  • satlist (list) – integer

  • f (integer) – frequency

Returns:

satlist – integer

Return type:

list

gnssrefl.gnssir_old.plot2screen(station, f, ax1, ax2, pltname)

Add axis information and Send the plot to the screen. https://www.semicolonworld.com/question/57658/matplotlib-adding-an-axes-using-the-same-arguments-as-a-previous-axes

Parameters:

station (string) – 4 character station ID

gnssrefl.gnssir_old.read_json_file(station, extension)

picks up json instructions for calculation of lomb scargle periodogram

Parameters:
  • station (str) – 4 character station name

  • extension (str) – experimental subdirectory - default is ‘’

Returns:

lsp

Return type:

dictionary

gnssrefl.gnssir_old.set_refraction_params(station, dmjd, lsp)

set values used in refraction correction

Parameters:
  • station (string) – 4 character station name

  • dmjd (float) – modified julian date

  • lsp (dictionary) –