|
24 | 24 | Licence |
25 | 25 | ------- |
26 | 26 |
|
27 | | -Copyright 2019 Pascal Audet & Helen Janiszewski |
| 27 | +Copyright 2019 Pascal Audet |
28 | 28 |
|
29 | 29 | Permission is hereby granted, free of charge, to any person obtaining a copy |
30 | 30 | of this software and associated documentation files (the "Software"), to deal |
|
50 | 50 | Dependencies |
51 | 51 | ++++++++++++ |
52 | 52 |
|
53 | | -The current version has been tested using **Python 3.10** \ |
54 | | -The following package is required before install ``obstools``: |
55 | | -
|
56 | | -- `stdb <https://github.com/paudetseis/StDb>`_ |
57 | | -
|
58 | | -Other required packages (e.g., ``obspy``) |
59 | | -will be automatically installed by ``stdb``. |
| 53 | +- `stdb <https://github.com/schaefferaj/StDb>`_ |
| 54 | +- `obspy <https://github.com/obspy/obspy>`_ |
60 | 55 |
|
61 | 56 | Conda environment |
62 | 57 | +++++++++++++++++ |
63 | 58 |
|
64 | 59 | We recommend creating a custom ``conda`` environment |
65 | | -where ``OBStools`` can be installed along with some of its dependencies. |
| 60 | +where ``OBStools`` can be installed along with its dependencies. |
66 | 61 |
|
67 | 62 | .. sourcecode:: bash |
68 | 63 |
|
|
78 | 73 |
|
79 | 74 | .. sourcecode:: bash |
80 | 75 |
|
81 | | - pip install stdb |
| 76 | + pip install git+https://github.com/schaefferaj/stdb |
82 | 77 |
|
83 | 78 | Installing development branch on GitHub |
84 | 79 | +++++++++++++++++++++++++++++++++++++++ |
85 | 80 |
|
86 | 81 | .. sourcecode:: bash |
87 | 82 |
|
88 | | - pip install obstools@git+https://github.com/nfsi-canada/obstools |
| 83 | + pip install git+https://github.com/nfsi-canada/obstools |
89 | 84 |
|
90 | 85 | Installing from source |
91 | 86 | ++++++++++++++++++++++ |
|
103 | 98 |
|
104 | 99 | pip install . |
105 | 100 |
|
| 101 | +Using local data |
| 102 | +---------------- |
| 103 | +
|
| 104 | +The various scripts packaged with ``OrientPy`` use FDSN web services |
| 105 | +through and ``ObsPy`` `Client` to load waveform data. For waveform |
| 106 | +data locally stored on your hard drive, the scripts can use a `Client` |
| 107 | +that reads a `SeisComP Data Structure |
| 108 | +<https://docs.obspy.org/packages/autogen/obspy.clients.filesystem.sds.html>`_ |
| 109 | +archive containing SAC or miniSEED waveform data. Check out the scripts |
| 110 | +``bng_calc`` and ``dl_calc`` below and the argument ``--local-data`` and |
| 111 | +``--dtype`` for more details. |
| 112 | +
|
| 113 | +Station Metadata |
| 114 | +++++++++++++++++ |
| 115 | +
|
| 116 | +If you have data stored locally on your drive, it is likely you also |
| 117 | +have a station `XML <https://www.fdsn.org/xml/station/>`_ file |
| 118 | +containing the metadata. The corresponding ObsPy documentation is |
| 119 | +`here <https://docs.obspy.org/packages/obspy.core.inventory.html>`_. |
| 120 | +
|
| 121 | +To convert the station `XML` file to an input that can be read by |
| 122 | +``OrientPy``, you run the command ``gen_stdb station.xml`` (only |
| 123 | +available on StDb version 0.2.7), which will create the file |
| 124 | +``station.pkl``. If you don't have a station `XML` file but you have |
| 125 | +a dataless SEED file, you can convert it first to `XML` using `this |
| 126 | +tools <https://seiscode.iris.washington.edu/projects/stationxml-converter>`_. |
| 127 | +
|
| 128 | +Waveform Data |
| 129 | ++++++++++++++ |
| 130 | +
|
| 131 | +The SDS folder containing the waveform data has the structure: |
| 132 | +
|
| 133 | +.. code-block:: python |
| 134 | +
|
| 135 | + archive |
| 136 | + + year |
| 137 | + + network code |
| 138 | + + station code |
| 139 | + + channel code + type |
| 140 | + + one file per day and location, e.g. NET.STA.LOC.CHAN.TYPE.YEAR.DOY |
| 141 | +
|
| 142 | +
|
| 143 | +For example: |
| 144 | +
|
| 145 | +.. code-block:: python |
| 146 | +
|
| 147 | + SDS/ |
| 148 | + 2014/ |
| 149 | + YH/ |
| 150 | + LOBS3/ |
| 151 | + HH1.D/ |
| 152 | + YH.LOBS3..CH1.D.2014.332 |
| 153 | + ... |
| 154 | +
|
| 155 | +
|
| 156 | +Note, the filename does not include the extension (`.MSEED` or `.SAC`), |
| 157 | +and the characters `.D` (for type Data) that appear in both the |
| 158 | +channel code and the filename. Note also the two dots (`..`). If |
| 159 | +there is a location code, it should appear between those dots (e.g., |
| 160 | +for a location code `10`, the corresponding filename should be |
| 161 | +`YH.LOBS3.10.HH1.D.2014.332`). There is no location code for the |
| 162 | +YH.LOBS3 data, and this field is simply absent from the filenames. |
| 163 | +Finally, the day-of-year (DOY) field must be zero-padded to be exactly |
| 164 | +3 characters. |
106 | 165 | """ |
107 | 166 |
|
108 | | -__version__ = '0.2.0' |
| 167 | +__version__ = '0.2.1' |
109 | 168 |
|
110 | | -__author__ = 'Pascal Audet & Helen Janiszewski' |
| 169 | +__author__ = 'Pascal Audet' |
111 | 170 |
|
112 | 171 | from . import atacr |
113 | 172 | from . import comply |
0 commit comments