Skip to content

Miscellaneous codes

Glenn Thompson edited this page Nov 12, 2021 · 4 revisions

dfall_tools.ipynb appears to have codes that migrated from [10_select_best_events.ipynb]. I have copied those notes here, but they are for the latter, and I still need to examine the former:

  • examine the variable onset of events listed in aaa_labelled_events.csv
  • sort catalog_all.csv by trigger_duration, and plot one event at a time
  • as above, but plot the detection window too
  • view events marked for splitting
  • read fingerprint files
  • subset catalog_all.csv for events checked but not marked to ignore, delete or split. Hopefully this logic made its way into remove_marked_events().
  • there must have been a bug where sometimes say when subclass=r but new_subclass=h, still had r=100 and needed to change this to r=0.
  • a test subset of dfall by columns

count_sfiles.ipynb: for MVOE_ Seisan database, this counts:

  • cum_N_sfiles,
  • cum_N_DSN_wavfiles,
  • cum_N_DSN_traces,
  • cum_N_ASN_wavfiles,

seisanDBwrappers.py may be an obsolete library from my 2019 ML work, with some July 2021 additions, before I made better workflows. Here are potentially useful functions:

  • def generate_monthly_csv(mm, flag_sfiles_only=False):
  • reads S-files and connected WAV-files and AEF-files, writes monthly CSV files. Useful if I need to read AEF files later?
  • def sfilecsv_daycount(list_of_csv_files):
  • count files of different classes by day
  • def resp2stationxml(SEISAN_DATA, montserrat=False):
  • convert a resp file to stationXML
  • def create_event_spectrograms(SEISAN_DATA, DB, YYYY, MM):
  • leverages IceWeb package
  • def create_catalog_website(SEISAN_DATA, DB, YYYY, MM):
  • def build_event_webpage(allwebpages, c, streamdf=None, streamplot=None, sgramplot=None, csv=None):

Clone this wiki locally