[MSNoise] Station list

Thomas Lecocq Thomas.Lecocq at seismology.be
Tue Sep 20 15:10:46 UTC 2016


Hi,

you probably checked "keep all" parameter. it's really not properly 
tested. just avoid it for the moment.

Thomas


On 20/09/2016 15:50, VICIC BLAZ [PHD0900016] wrote:
> Sorry, but there is another problem...
>
> i ran:
>
> msnoise -t 2 scan_archive --init
>
> msnoise new_jobs
>
> without problems.
>
>
> then i tried with
>
> msnoise -t 4 compute_cc
>
>
> it starts to work, but after some time it produces this error:
>
> ...
>
> 2016-09-20 16:42:18 [DEBUG] Azimuth=258.9
> Process Process-1:
> Traceback (most recent call last):
>    File "/home/blaz/miniconda2/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
>      self.run()
>    File "/home/blaz/miniconda2/lib/python2.7/multiprocessing/process.py", line 114, in run
>      self._target(*self._args, **self._kwargs)
>    File "/home/blaz/miniconda2/lib/python2.7/site-packages/msnoise/s03compute_cc.py", line 683, in main
>      export_allcorr(db, ccfid, allcorr[ccfid])
>    File "/home/blaz/miniconda2/lib/python2.7/site-packages/msnoise/api.py", line 825, in export_allcorr
>      df.to_hdf(os.path.join(path, date+'.h5'), 'data')
>    File "/home/blaz/miniconda2/lib/python2.7/site-packages/pandas/core/generic.py", line 1101, in to_hdf
>      return pytables.to_hdf(path_or_buf, key, self, **kwargs)
>    File "/home/blaz/miniconda2/lib/python2.7/site-packages/pandas/io/pytables.py", line 259, in to_hdf
>      complib=complib) as store:
>    File "/home/blaz/miniconda2/lib/python2.7/site-packages/pandas/io/pytables.py", line 389, in __init__
>      'importing'.format(ex=str(ex)))
> ImportError: HDFStore requires PyTables, "No module named tables" problem importing
>
> I tried reinstalling PyTables without luck.
>
>
> Thanks!
>
>
> ________________________________
> From: msnoise-bounces at mailman-as.oma.be <msnoise-bounces at mailman-as.oma.be> on behalf of VICIC BLAZ [PHD0900016] <BLAZ.VICIC at phd.units.it>
> Sent: Tuesday, September 20, 2016 3:43:22 PM
> To: msnoise at mailman-as.oma.be
> Subject: Re: [MSNoise] Station list
>
> Thanks, it works now.
>
>
> Blaž
>
> ________________________________
> From: msnoise-bounces at mailman-as.oma.be <msnoise-bounces at mailman-as.oma.be> on behalf of Thomas Lecocq <Thomas.Lecocq at seismology.be>
> Sent: Tuesday, September 20, 2016 3:01:07 PM
> To: msnoise at mailman-as.oma.be
> Subject: Re: [MSNoise] Station list
>
> Hi,
>
> You have to import data_structure too :
>
> from msnoise.data_structures import data_structure
>
>
> otherwise it'll fail (your custom.py file is not valid, fails at import).
>
> Thomas
>
>
> On 20/09/2016 12:59, VICIC BLAZ [PHD0900016] wrote:
>> Thank you.
>>
>>
>> Which brings me to the 2nd question...
>>
>> I tried to populate with this command, but of course it is not working...
>>
>>
>> What I tried:
>>
>>
>> in the folder
>>
>> msnoise/data I have put a miniseed file of one station of one day.
>>
>> Name of the miniseed is in the format:
>>
>> STA.NET.CHAN.YEAR.DAY
>>
>>
>> as data_folder in settings I have set this folder.
>>
>>
>> in the data_structures.py I added this line:
>>
>> data_structure['SEI'] = "STA.NET.CHAN.YEAR.DAY"
>>
>>
>> i created a custom.py script:
>>
>>
>> from obspy import read
>>
>> data_structure['SEI'] = "STA.NET.CHAN.YEAR.DAY"
>>
>> def populate():
>>       st = read("*")
>>       st.merge()
>>
>>       stations = []
>>
>>       for tr in st:
>>           sta = str(tr.stats.station)
>>           net = str(tr.stats.network)
>>           stations.append(str("%s_%s") % (net, sta))
>>
>>       return stations
>>
>> So,now i have main folder with sub folder data, where I have miniseed file. in the main folder I put custom.py and db.ini and, if I understand right, run msnoise populate from here. In the browser I set data_folder to where my miniseed is and data_structure as SEI.
>>
>> When i run the populate command, i get error:
>>
>>
>> ()
>>>> Populating the Station table
>> ()
>> Can't parse the archive for format SEI !
>> trying to import local parser (should return a station list)
>> ()
>> No file named custom.py in the /home/blaz/Documents/msnoise folder
>>
>> (custom.py IS in /home/blaz/Documents/msnoise)
>> I hope I was clear enough.
>>
>> Thanks!
>>
>>
>>
>>
>>
>> ________________________________
>> From: msnoise-bounces at mailman-as.oma.be <msnoise-bounces at mailman-as.oma.be> on behalf of Thomas Lecocq <Thomas.Lecocq at seismology.be>
>> Sent: Tuesday, September 20, 2016 12:56:56 PM
>> To: msnoise at mailman-as.oma.be
>> Subject: Re: [MSNoise] Station list
>>
>> Hi,
>>
>> Yes, this bug was recently reported by another user and I haven't had
>> time to fix it.
>>
>> The best way to add the station currently is to use the "msnoise
>> populate" command.
>>
>> Cheers,
>>
>> Thomas
>>
>>
>> On 20/09/2016 11:51, VICIC BLAZ [PHD0900016] wrote:
>>> Dear all
>>>
>>>
>>> I would like to try to use msnoise. I installed it on Ubuntu 16.04, and as far as I know, everything was installed as planed.
>>>
>>> Now, I open msnoise admin and try to manually add stations in the browser. I set NET, STA, X, Y, ALT, COORD and click save. When I do that, I get a lot of errors:
>>>
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__
>>>
>>> return self.wsgi_app(environ, start_response)
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app
>>>
>>> response = self.make_response(self.handle_exception(e))
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception
>>>
>>> reraise(exc_type, exc_value, tb)
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
>>>
>>> response = self.full_dispatch_request()
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
>>>
>>> rv = self.handle_user_exception(e)
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
>>>
>>> reraise(exc_type, exc_value, tb)
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
>>>
>>> rv = self.dispatch_request()
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request
>>>
>>> return self.view_functions[rule.endpoint](**req.view_args)
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/base.py", line 69, in inner
>>>
>>> return self._run_view(f, *args, **kwargs)
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/base.py", line 368, in _run_view
>>>
>>> return fn(self, *args, **kwargs)
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/model/base.py", line 1920, in create_view
>>>
>>> model = self.create_model(form)
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/contrib/sqla/view.py", line 1028, in create_model
>>>
>>> if not self.handle_view_exception(ex):
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/contrib/sqla/view.py", line 1011, in handle_view_exception
>>>
>>> return super(ModelView, self).handle_view_exception(exc)
>>>
>>>      *
>>> File "/home/blaz/miniconda2/lib/python2.7/site-packages/flask_admin/contrib/sqla/view.py", line 1022, in create_model
>>>
>>> model = self.model()
>>>
>>> TypeError: __init__() takes exactly 9 arguments (1 given)
>>>
>>>
>>>
>>> What am I doing wrong?
>>>
>>>
>>> Thanks,
>>>
>>> Blaz
>>> _______________________________________________
>>> MSNoise mailing list
>>> MSNoise at mailman-as.oma.be
>>> http://mailman-as.oma.be/mailman/listinfo/msnoise
>> _______________________________________________
>> MSNoise mailing list
>> MSNoise at mailman-as.oma.be
>> http://mailman-as.oma.be/mailman/listinfo/msnoise
>> _______________________________________________
>> MSNoise mailing list
>> MSNoise at mailman-as.oma.be
>> http://mailman-as.oma.be/mailman/listinfo/msnoise
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise



More information about the MSNoise mailing list