-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NLLOC lat/lon conversion #72
Comments
Well.. you should just replace the function such that it converts from the coordinates you use in NonLinLoc (this is assuming that in NonLinLoc you use |
Thanks, OK but when we use something like this "TRANS LAMBERT WGS-84 35.50 50.50 32.0 38.0 0.0" which is already WGS, then what would be gk2lonlat? In this case our reference is WGS84! |
OK, so currently, I guess you should just put def gk2lonlat(x, y):
return x, y |
I did it but here is the result! please find attachement
…On 1/12/18, Tobias Megies ***@***.***> wrote:
OK, so currently, I guess you should just put
```python
def gk2lonlat(x, y):
return x, y
```
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#72 (comment)
--
Dear
Regards
______________________
Saeed Soltani Moghadam.
PhD student of Earthquake Seismology @ IIEES, Tehran, Iran.
Tel: (+98) 917 709 7029
|
Attachments to email replies are not retained by Github.. |
sorry, by the way it did not work. i think the problem is i need to convert x/y from Cartesian coordinate system (source and station relative to map center in TRANS line of NLL control file) to lon/lat. So the output coordinate system is WGS-84 but i dont have any idea about the input coordinate system. |
Finally i found a solution and here is the change list: |
Ah, I think I understand what the problem is now.. basically in your case we need to parse the Compare two flavors of the hypocenter output file:
I'll try to come up with a simple switch for the configuration file, so that this can be done without hacking the source code in the future.. maybe even later today or this week |
Yes, actually i made a change to use GEOGRAPHIC but it didn't resolve my problem because stations are also needed to change their positions. |
Hmm.. I don't understand, can you clarify? I don't see how station coordinates are ever handled in something else than lon/lat.. |
Yes you right. Only source and scatter points are using gk2lonlat function.
…On 1/15/18, Tobias Megies ***@***.***> wrote:
> but it didn't resolve my problem because stations are also needed to
> change their positions.
Hmm.. I don't understand, can you clarify? I don't see how station
coordinates are ever handled in something else than lon/lat..
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#72 (comment)
--
Dear
Regards
______________________
Saeed Soltani Moghadam.
PhD student of Earthquake Seismology @ IIEES, Tehran, Iran.
Tel: (+98) 917 709 7029
|
Ok, so what I would do is add a config option for nlloc that can either be..
The latter two cases would then use |
scatters are in x,y relative to geographical center in introduced in TRANS line. So they need to be converted according to reference coordinate system. |
Hi,
Could you please help me how to set gk2lonlat function correctly when using our own coordinate system in NLLOC?
Regards
The text was updated successfully, but these errors were encountered: