Dear MSNoise users,
I want to calculate the cross-component of ZE, ZN, NE as well as
auto-correlation. I set the related configuration parameters as below;
autocorr Y
cc_type CC
cc_type_single_station_AC AC
cc_type_single_station_SC SC
components_to_compute EE,NN,ZZ
components_to_compute_single_station ZN,NE,ZE
when I run the command "_msnoise compute_cc_", I face the below error:
/home/user/anaconda3/lib/python3.7/site-packages/obspy/io/mseed/core.py:790:
UserWarning: The encoding specified in trace.stats.mseed.encoding does
not match the dtype of the data.
A suitable encoding will be chosen.
warnings.warn(msg, UserWarning)
cc_type_single_station_SC = %s not implemented, exiting
I will be grateful if guide me on how to calculate cross-component and
auto-correlation.
All the best,
Navid
Dear,
thanks for using msnoise.
in the future, send your email tot the mailing list, because you'll get
probably as faster answer and then others can also see it.
if your "waveforms" folder is not structured in one of the supported
ways, you need to use the "--path .... --recursively" as described with
great details in the documentation. You also have to use the "--init"
flag. Please read the documentation, all this is described. The second
command will of course not work , as zero files have been scanned.
http://msnoise.org/doc
Regards,
Thomas
Le 25/04/2020 à 07:27, P SION KUMARI a écrit :
> Hello,
> I do have data in mseed format in a folder called "waveforms". I
> opened the terminal in same folder and tried to scan the data and
> inserting them in the stations table in the database using the command
> line "msnoise -t 2 scan_archive", it displayed some thing like this
> 2020-04-25 05:14:23.581645 msnoise [pid 12408][INFO]: *** Starting:
> Scan Archive ***
> 2020-04-25 05:14:23.582203 msnoise [pid 12408][INFO]: Will work on 2
> thread(s)
> 2020-04-25 05:14:23.588244 msnoise [pid 12408][INFO]: Updating
> availability: scanning the archive for files modified 1 day, 0:00:00
> ago or less.
> 2020-04-25 05:14:23.591155 msnoise [pid 12408][INFO]: Will search for
> files between 1970-01-01 and 2021-01-01.
> 2020-04-25 05:14:23.627326 msnoise [pid 12408][INFO]: Scanning 0
> directories...
> 2020-04-25 05:14:23.637353 msnoise [pid 12408][INFO]: *** Finished:
> Scan Archive ***
> 2020-04-25 05:14:23.637494 msnoise [pid 12408][INFO]: It took 0.06 seconds
>
> And after that I used command line "msnoise populate --fromDA" and
> then opened the msnoise dashboard, I found displaying " 0 files
> identified in the archive: 0 new, 0 modified and 0 archived" in the
> Data Availability table.
> I know you have put lot of efforts in the documentation to make us
> understand well but I am failing to figure out where I am going wrong.
> It would be very helpful if you could help me to proceed further
> regarding the above mentioned.
>
> Thank You
>
> Regards
> P. Sion Kumari
> Research student
> National Geophysical Research Institute, India
Dear MSNoise users,
I have just installed mMSNoise 1.6.1. When I run "msnoise compute_dtt",
I faced the following error.
I appreciate in advance for any help.
2020-04-17 08:13:19.415993 msnoise [pid 25050][INFO]: *** Starting:
Compute DT/T ***
Traceback (most recent call last):
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py",
line 1246, in _execute_context
cursor, statement, parameters, context
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/default.py",
line 588, in do_execute
cursor.execute(statement, parameters)
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/cursors.py",
line 170, in execute
result = self._query(query)
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/cursors.py",
line 328, in _query
conn.query(q)
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/connections.py",
line 517, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/connections.py",
line 732, in _read_query_result
result.read()
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/connections.py",
line 1075, in read
first_packet = self.connection._read_packet()
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/connections.py",
line 684, in _read_packet
packet.check_error()
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/protocol.py",
line 220, in check_error
err.raise_mysql_exception(self._data)
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/err.py", line
109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.InternalError: (1055, "Expression #1 of SELECT list is not
in GROUP BY clause and contains nonaggregated column 'p3.jobs.ref' which
is not functionally dependent on columns in GROUP BY clause; this is
incompatible with sql_mode=only_full_group_by")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/user/anaconda3/bin/msnoise", line 8, in <module>
sys.exit(run())
File
"/home/user/anaconda3/lib/python3.7/site-packages/msnoise/scripts/msnoise.py",
line 1202, in run
cli(obj={})
File "/home/user/anaconda3/lib/python3.7/site-packages/click/core.py",
line 764, in __call__
return self.main(*args, **kwargs)
File "/home/user/anaconda3/lib/python3.7/site-packages/click/core.py",
line 717, in main
rv = self.invoke(ctx)
File "/home/user/anaconda3/lib/python3.7/site-packages/click/core.py",
line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/user/anaconda3/lib/python3.7/site-packages/click/core.py",
line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/user/anaconda3/lib/python3.7/site-packages/click/core.py",
line 555, in invoke
return callback(*args, **kwargs)
File
"/home/user/anaconda3/lib/python3.7/site-packages/click/decorators.py",
line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File
"/home/user/anaconda3/lib/python3.7/site-packages/msnoise/scripts/msnoise.py",
line 824, in compute_dtt
main(loglevel=loglevel)
File
"/home/user/anaconda3/lib/python3.7/site-packages/msnoise/s06compute_dtt.py",
line 165, in main
interval=datetime.timedelta(days=interval))
File
"/home/user/anaconda3/lib/python3.7/site-packages/msnoise/api.py", line
1569, in updated_days_for_dates
order_by(Job.day).all()
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/orm/query.py",
line 3233, in all
return list(self)
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/orm/query.py",
line 3389, in __iter__
return self._execute_and_instances(context)
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/orm/query.py",
line 3414, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py",
line 982, in execute
return meth(self, multiparams, params)
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/sql/elements.py",
line 293, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py",
line 1101, in _execute_clauseelement
distilled_params,
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py",
line 1250, in _execute_context
e, statement, parameters, cursor, context
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py",
line 1476, in _handle_dbapi_exception
util.raise_from_cause(sqlalchemy_exception, exc_info)
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/util/compat.py",
line 398, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/util/compat.py",
line 152, in reraise
raise value.with_traceback(tb)
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py",
line 1246, in _execute_context
cursor, statement, parameters, context
File
"/home/user/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/default.py",
line 588, in do_execute
cursor.execute(statement, parameters)
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/cursors.py",
line 170, in execute
result = self._query(query)
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/cursors.py",
line 328, in _query
conn.query(q)
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/connections.py",
line 517, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/connections.py",
line 732, in _read_query_result
result.read()
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/connections.py",
line 1075, in read
first_packet = self.connection._read_packet()
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/connections.py",
line 684, in _read_packet
packet.check_error()
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/protocol.py",
line 220, in check_error
err.raise_mysql_exception(self._data)
File
"/home/user/anaconda3/lib/python3.7/site-packages/pymysql/err.py", line
109, in raise_mysql_exception
raise errorclass(errno, errval)
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (1055,
"Expression #1 of SELECT list is not in GROUP BY clause and contains
nonaggregated column 'p3.jobs.ref' which is not functionally dependent
on columns in GROUP BY clause; this is incompatible with
sql_mode=only_full_group_by")
[SQL: SELECT jobs.ref AS jobs_ref, jobs.day AS jobs_day, jobs.pair AS
jobs_pair, jobs.jobtype AS jobs_jobtype, jobs.flag AS jobs_flag,
jobs.lastmod AS jobs_lastmod
FROM jobs
WHERE jobs.day >= %(day_1)s AND jobs.day <= %(day_2)s AND jobs.jobtype =
%(jobtype_1)s AND jobs.lastmod >= %(lastmod_1)s GROUP BY jobs.day ORDER
BY jobs.day]
[parameters: {'day_1': datetime.date(2016, 7, 1), 'day_2':
datetime.date(2018, 10, 31), 'jobtype_1': 'DTT', 'lastmod_1':
datetime.datetime(2020, 4, 16, 4, 13, 19, 472342)}]
(Background on this error at: http://sqlalche.me/e/2j85)
Regards,
Navid
Dear Thomas,
Corentin has sent you in a separate email the resp file. The resp file is for the same channel mentioned the message (SHZ).
Unfortunately I'm not using msnoise 1.6.1...
Regards,
Chiou Ting
________________________________
From: msnoise-bounces(a)mailman-as.oma.be <msnoise-bounces(a)mailman-as.oma.be> on behalf of msnoise-request(a)mailman-as.oma.be <msnoise-request(a)mailman-as.oma.be>
Sent: Wednesday, 8 April 2020 8:00 PM
To: msnoise(a)mailman-as.oma.be <msnoise(a)mailman-as.oma.be>
Subject: MSNoise Digest, Vol 65, Issue 2
Send MSNoise mailing list submissions to
msnoise(a)mailman-as.oma.be
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman-as.oma.be/mailman/listinfo/msnoise
or, via email, send a message with subject or body 'help' to
msnoise-request(a)mailman-as.oma.be
You can reach the person managing the list at
msnoise-owner(a)mailman-as.oma.be
When replying, please edit your Subject line so it is more specific
than "Re: Contents of MSNoise digest..."
Today's Topics:
1. Re: Removing Instrument Response (Thomas Lecocq)
2. Re: Removing Instrument Response (Thomas Lecocq)
----------------------------------------------------------------------
Message: 1
Date: Wed, 8 Apr 2020 11:34:28 +0200
From: Thomas Lecocq <Thomas.Lecocq(a)seismology.be>
To: <msnoise(a)mailman-as.oma.be>
Subject: Re: [MSNoise] Removing Instrument Response
Message-ID: <a45ba931-04f2-cad4-ae2f-5741948019c8(a)seismology.be>
Content-Type: text/plain; charset="windows-1252"; format=flowed
Dear Chiou Ting,
Could you send me (directly) the resp file, it seems the mailing list
system doesn't allow attachments.
From the message says, it looks there is no "response information" for
that channel.
Are you using msnoise 1.6.1 (latest bugfix) ?
Regards,
Thomas
Le 08/04/2020 ? 11:31, Tan Chiou Ting a ?crit?:
> Hi all,
>
> I would appreciate some help on removing instrument response.
> I looked at the documentation and it seems we can use resp format for
> the instrument response files. However, when I run compute_cc, it says:
>
>
> My config is
>
>
> and my db.ini is in /home/msnoise/projects/gede, while the response
> file is in?/home/msnoise/projects/gede/inventory
>
> I've been playing around with the response file itself and where it is
> located, but I still can't get it to work.
> Attached is my response file.
> Would anyone know what's the problem? Thanks!
>
> Regards,
> Chiou Ting
> ------------------------------------------------------------------------
>
> CONFIDENTIALITY: This email is intended solely for the person(s) named
> and may be confidential and/or privileged. If you are not the intended
> recipient, please delete it, notify us and do not copy, use, or
> disclose its contents.
> Towards a sustainable earth: Print only when necessary. Thank you.
>
>
> _______________________________________________
> MSNoise mailing list
> MSNoise(a)mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise
------------------------------
Message: 2
Date: Wed, 8 Apr 2020 11:55:19 +0200
From: Thomas Lecocq <Thomas.Lecocq(a)seismology.be>
To: <msnoise(a)mailman-as.oma.be>
Subject: Re: [MSNoise] Removing Instrument Response
Message-ID: <46b8dfba-e1b4-840d-3689-914c47887e76(a)seismology.be>
Content-Type: text/plain; charset="windows-1252"; format=flowed
Dear Chiou Ting,
Corentin sent me the resp file.
Actually, msnoise doens't allow resp files (I thought it did...)
You should therefore convert it to dataless or inventoryXML (not
stationXML).
please also open a ticket in the Issue tab on github. This instrument
response stuff will be corrected in the next version, thanks to the
changes made in obspy1.2.0 in the way the inventories can be read.
Cheers
Thomas
Le 08/04/2020 ? 11:34, Thomas Lecocq a ?crit?:
> Dear Chiou Ting,
>
>
> Could you send me (directly) the resp file, it seems the mailing list
> system doesn't allow attachments.
>
> From the message says, it looks there is no "response information" for
> that channel.
>
>
> Are you using msnoise 1.6.1 (latest bugfix) ?
>
>
> Regards,
>
> Thomas
>
>
> Le 08/04/2020 ? 11:31, Tan Chiou Ting a ?crit?:
>> Hi all,
>>
>> I would appreciate some help on removing instrument response.
>> I looked at the documentation and it seems we can use resp format for
>> the instrument response files. However, when I run compute_cc, it says:
>>
>>
>> My config is
>>
>>
>> and my db.ini is in /home/msnoise/projects/gede, while the response
>> file is in?/home/msnoise/projects/gede/inventory
>>
>> I've been playing around with the response file itself and where it
>> is located, but I still can't get it to work.
>> Attached is my response file.
>> Would anyone know what's the problem? Thanks!
>>
>> Regards,
>> Chiou Ting
>> ------------------------------------------------------------------------
>>
>> CONFIDENTIALITY: This email is intended solely for the person(s)
>> named and may be confidential and/or privileged. If you are not the
>> intended recipient, please delete it, notify us and do not copy, use,
>> or disclose its contents.
>> Towards a sustainable earth: Print only when necessary. Thank you.
>>
>>
>> _______________________________________________
>> MSNoise mailing list
>> MSNoise(a)mailman-as.oma.be
>> http://mailman-as.oma.be/mailman/listinfo/msnoise
> _______________________________________________
> MSNoise mailing list
> MSNoise(a)mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise
>
------------------------------
_______________________________________________
MSNoise mailing list
MSNoise(a)mailman-as.oma.be
http://mailman-as.oma.be/mailman/listinfo/msnoise
End of MSNoise Digest, Vol 65, Issue 2
**************************************
Hi all,
I would appreciate some help on removing instrument response.
I looked at the documentation and it seems we can use resp format for the instrument response files. However, when I run compute_cc, it says:
[cid:474268db-60eb-4610-9151-93695c30df39]
My config is
[cid:433dd485-9d79-4811-9ff2-2045bc0ea1e1]
and my db.ini is in /home/msnoise/projects/gede, while the response file is in /home/msnoise/projects/gede/inventory
I've been playing around with the response file itself and where it is located, but I still can't get it to work.
Attached is my response file.
Would anyone know what's the problem? Thanks!
Regards,
Chiou Ting
________________________________
CONFIDENTIALITY: This email is intended solely for the person(s) named and may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us and do not copy, use, or disclose its contents.
Towards a sustainable earth: Print only when necessary. Thank you.