Giter Club home page Giter Club logo

Comments (10)

csboucher avatar csboucher commented on June 26, 2024

I too am having this problem, but only when using negative longitude or latitude. I am currently looking through the code to see if they somehow define the negative values differently or if there is a different way in shell to define negative numbers.

from straintool.

xanthospap avatar xanthospap commented on June 26, 2024

Hi there,

here is what i think the problem is: when performing computations to estimate strain tensor parameters, the input ellipsoidal coordinates are transformed to UTM coordinates. We have placed a limitation when transforming to UTM, that all stations considered should fall within the same (UTM) zone. We are currently working on removing this limitation. I will have news soon.

Xanthos

from straintool.

xanthospap avatar xanthospap commented on June 26, 2024

Hi @cysarine ,

please check the answer discussed in #68 . Let me know if that fixes the issue.

Xanthos

from straintool.

cysarine avatar cysarine commented on June 26, 2024

Hello @xanthospap ,
Thank you very much for your answer. I have reviewed and followed the instructions in #68 . And the software has run without any errors. However, when reviewing the strain_info.dat file the coordinates generated in degrees of lat and long do not correspond to my study area. Attached image of the file.

Hope you can help me solve this problem. Greetings

Strain_info_dat
station_info_dat

from straintool.

xanthospap avatar xanthospap commented on June 26, 2024

You are right,

i didn't correctly predict the side-effects of the change! sorry for this. I will patch this and and send a fix in the following hours.

from straintool.

xanthospap avatar xanthospap commented on June 26, 2024

@cysarine

i have made changes to the source code to fix the bug. Quite a few things had to be corrected, so i have created a new branch committed to the bugfix. It is called bug68.

Please pull the new branch and check if the program runs as expected. Something like git fetch; git checkout --track origin/bug68 should do the job (more info https://stackoverflow.com/questions/9537392/git-fetch-remote-branch). After the pull, you should also re-install the pystrain package (aka go to the folder StrainTool/pystrain and execute the command sudo python setup.py install).

Please let me know if that fixes the problem. If not, could you please share your input file so that i can further check/debug the source code?

Xanthos

from straintool.

cysarine avatar cysarine commented on June 26, 2024

Hello there,
I have installed the software with the corrections you made, however, the strain_info.dat file keeps giving the same error with wrong lat and long. I attach the file of my study area. Thanks for your help

IGP_VEL.txt

from straintool.

xanthospap avatar xanthospap commented on June 26, 2024

@cysarine ,

i have made a few changes in the source code and hopefully it should now produce sensible results. I have tried issuing the command ./StrainTensor.py -i ../data/IGP_VEL.txt -r=-79.0/-75.5/-12.5/-8.5 --x-grid-step=0.5 --y-grid-step=0.5 --dmin=1 --dmax=500 --dstep=1 --Wt=24 -c -g and it seems to produce realistic values (i attach the result file).

The changes i made are in the same branch (aka bug68), so you will need to pull the latest changes (>git pull origin bug68) and then reinstall the pystrain package).

Please give it a try and let me know if it works as expected.

Xanthos

strain_info.txt

from straintool.

xanthospap avatar xanthospap commented on June 26, 2024

dear @cysarine ,

have you tried the new version of the software (that is pulling the branch bug68)? Does it work as expected?

Xanthos

from straintool.

cysarine avatar cysarine commented on June 26, 2024

Hi Xanthos,
Thanks a lot for your help, the new version of the software works for me.

Cisarine

from straintool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.