JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for GEO-TECTONICS Archives


GEO-TECTONICS Archives

GEO-TECTONICS Archives


GEO-TECTONICS@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

GEO-TECTONICS Home

GEO-TECTONICS Home

GEO-TECTONICS  August 2013

GEO-TECTONICS August 2013

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Numerical Modeling Software

From:

"Massey, Matthew A" <[log in to unmask]>

Reply-To:

Tectonics & structural geology discussion list <[log in to unmask]>

Date:

Thu, 22 Aug 2013 00:03:51 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (143 lines)

Thanks again for all the replies...this was definitely what I was hoping for, but the answers are making my choice more difficult.

To the pro-Python folks - I've had some interest in Python for several years now, mainly for writing simple scripts to implement in ArcGIS & mapping applications.  So now that you mention Python as a viable alternative for my purpose of modeling progressive deformation, I'm even more curious.  Let me reiterate that I am not a programmer.  In fact, I'm quite computer illiterate.  Keeping that in mind, would modeling in Python be OK for a beginner (that doesn't mind putting in the work)?  I don't completely understand how Python works, but is there some kind of stand-alone program(s) with a GUI that I would be using, or would it all be done in my computers terminal using command line?

___________________
Matthew A. Massey
Department Earth & Environmental Sciences
University of Kentucky
Lexington, KY 40506-053
________________________________________
From: Tectonics & structural geology discussion list [[log in to unmask]] on behalf of Robert Smallshire [[log in to unmask]]
Sent: Wednesday, August 21, 2013 10:54 AM
To: [log in to unmask]
Subject: Re: Numerical Modeling Software

Hi Matt,

I don't want to discourage you or anyone else here from cutting their own code, but I do want to sound a note of caution that writing your own "good" numerical codes requires that your have a good understanding of not only the problem you're trying to solve and the mathematics which describe it, but also knowledge of computation, programming and perhaps most importantly, numerical analysis.  I've been working professionally in geocomputing for the last 15 years and it's surprisingly easy to come up with solutions which are plausible but incorrect (sometimes to the point of being worthless) because computers don't treat numbers (particularly large and small numbers in combination) the way mathematics does (math has infinite precision, whereas computers do not). This in turn means that a lot of standard mathematical techniques you learned in school don't transfer well into code. Even some texts which are apparently respectable to the uninitiated are widely criticised in computing circles (e.g the Numerical Recipes in Fortran/C/C++/etc series).

So far as selecting modelling tools, my recommendation would be to use off-the-shelf modelling packages where possible - a few mechanics packages have been mentioned in this thread so far.  That way, you're sharing the development cost, which can be significant, with all the other users and this software is much more likely to work properly to boot.   If you do need to roll your own, consider choosing tools in use by other people in your local community so you can get immediate help and ideas.   If that isn't appropriate, any of Matlab, Mathematica or Python will be able to do the job.  Of these, Python is definitely the better programming tool. Python will leave you with a more maintainable solution (read: cheaper in the long run), but you may get something working quicker with one of the other packages.  If you do choose Python, consider some training, either online or in the classroom to get you up and running quickly.  You can complete an online Python Fundamentals programming course in a couple of days, which will give you a head start.

I've seen a lot of pretty awful "academic" code in my time (I even wrote some of it way back!), so it would be nice to see people start off on the right foot, saving themselves a lot of time and avoiding misleading themselves and their peers with dodgy results.  I'd like to see many more (all!) scientists be prepared to publish their code - otherwise their results are too hard to reproduce and verify.

Disclosure: I own and run a company, Sixty North, which offers training (online/classroom), consulting and development for geoscience and geospatial software in a variety of languages, including Python. Get in touch off-list if you'd like to know more. And before this turns into an advert.

Regards,

Rob






On 21 August 2013 15:51, Richard Styron <[log in to unmask]<mailto:[log in to unmask]>> wrote:
Hi Matt,

At the risk of setting off a 'which language is better' flame war, I would encourage the use of Python instead of MATLAB.  It's free (as in speech and beer) software, so you don't have to worry at all about licenses, and has a broad and mature set of scientific libraries (based on NumPy, SciPy, and Pandas).  It also has a diverse set of developers working on all sorts of additional functionality, from statistics to mapping to machine learning.

There are a few weakness with respect to MATLAB, the biggest of which is probably that the plotting functions are a bit clunkier, but there are a lot of strengths as well, which stem from the fact that it is a complete general programming language.  Prominently among them are the use of modules/namespaces that allow for much better organization of code; the more experienced user base (MATLAB users often only know MATLAB, while Python users often use other languages as well, so the overall body of corporate knowledge is greater, meaning that you can find lots of help on sites like Stack Overflow); the ease of doing more general programming tasks, such as parsing text files (this was big for me when I was using Python to do things like automatically change variables in configuration files for thermochron modeling programs); and the ancillary packages, particularly the IPython Notebook, which is a browser-based notebook that is really, really nice for prototyping and sharing scientific code, very much inspired by the Mathematica and Mathcad notebooks.

A recent discussion of MATLAB vs. Python is here:  https://news.ycombinator.com/item?id=6111727

Here are a bunch of interesting IPython Notebook examples:   https://github.com/ipython/ipython/wiki/A-gallery-of-interesting-IPython-Notebooks


A big problem with Python was that there were so many packages and versions, and it was really hard to make sure that you have versions of everything that worked together well, but in the past couple of years some new Python distributions came out that handle that for you.  There are two main ones, Anaconda (http://continuum.io/) and Enthought Canopy (https://enthought.com/).  I prefer Anaconda, but both are excellent, and free.  There are also some bells and whistles that are free for people with .edu email addresses.

Long story short, I switched to Python after using Matlab for about 2.5 years, and I started writing better code, and doing it more quickly.  Everyone else in my lab (department, really) uses MATLAB and seems to do fine.

Hope this helps,
Richard





On Tue, Aug 20, 2013 at 7:35 PM, Massey, Matthew A <[log in to unmask]<mailto:[log in to unmask]>> wrote:
Thanks for all the advice, everyone! It is all much appreciated. It seems my fate may be with MATLAB, as it's the only active software license that can definitely be confirmed by the university here right now. One plus I see about this, is that I already have Octave on my personal Mac laptop, so going between work and home shouldn't be a huge deal. Hopefully.

Thanks again!

Matt

On Aug 20, 2013, at 12:26 PM, "Dazhi Jiang" <[log in to unmask]<mailto:[log in to unmask]>> wrote:

> Hi Matt,
>
> You may also take a look at PTC's Mathcad
> (http://www.ptc.com/product/mathcad/). I have used it a lot and find it to
> be a very powerful mathematics application that can do a lot modeling that a
> structural geologist wants to do. It is very user friendly. Working in
> MathCad is like doing math on a piece of paper, truly "what you see is what
> you get". Model development, simulation, and result visualization can all be
> in the same environment and the plots are usually ready for publication.
>
> Here are a few recent works that we have done using MathCad (some papers
> have online MathCad worksheets as supplementary materials), if you want to
> have an idea what the program can potentially do:
>
> Jiang (2007a,b, JSG, p.189-200 and p. 435-452)
> https://files.acrobat.com/preview/2d0e880a-18f7-45db-95ff-425b9baea252
> https://files.acrobat.com/preview/7dbb610d-1f89-43e2-b632-e28617218348
>
> Kuiper and Jiang (2010, Tectonophysics, p.175-191)
> https://files.acrobat.com/preview/c8d9ba2c-9383-4ca6-bbdb-e9dfb429fb6b
>
> Li & Jiang 2011.pdf
> https://files.acrobat.com/preview/532ca7d2-d72c-4f2d-90c8-bc5ffe480589
>
> Jiang (2012, Computer & Geosciences, p. 52-61)
> https://files.acrobat.com/preview/87dbdd41-58ee-481d-bd07-5dd9cab078b0
>
> Jiang and Bentley (2012, JGR vol 117, B12201)
> https://files.acrobat.com/preview/f2c3a887-87e4-46eb-a30f-e2648a2a54d7
>
> Jiang (2013, JSG, p.22-34)
> Xiang and Jiang (JSG, in press)
>
> Dazhi Jiang
> Department of Earth Sciences
> Western University
> London, Ontario N6A 5B7
> Canada
> Tel: 519-661-3192<tel:519-661-3192>
> Fax: 519-661-3198<tel:519-661-3198>
> http://www.uwo.ca/earth/people/faculty/jiang.html
>
> -----Original Message-----
> From: Tectonics & structural geology discussion list
> [mailto:[log in to unmask]<mailto:[log in to unmask]>] On Behalf Of Massey, Matthew A
> Sent: August-19-13 11:35 PM
> To: [log in to unmask]<mailto:[log in to unmask]>
> Subject: Numerical Modeling Software
>
> Hi All,
>
> I'm delving into the world of numerical modeling (mostly progressive
> deformation, at this point) and wanted a some advice.  I had originally
> assumed that most structural geologists (and maybe most geologists?) use
> MATLAB or Octave, but after talking with several others, I've been informed
> this may not be entirely true.  So before I begin, I'd like to get an idea
> of what most people really are using these days, and should a beginner start
> with something else?  For the second part of that question, some things to
> keep in mind about myself: (1) I'm definitely not a programmer, nor a
> mathematician, but I think I can figure a lot of things out with some work;
> (2) at the moment, I plan on using this for modeling the evolution of finite
> strain magnitudes and orientations during 3D deformations, BUT I'm
> definitely interested in other future possibilities within the realms of
> structural geology, petrology, and geochronology.  And one last follow up
> question - can you recommend some good instructional materials for said
> software (online tutorials, papers, published textbooks/manuals, etc.)?
>
> Thanks,
>
> Matt
>
>
> ___________________
> Matthew A. Massey
> Department Earth & Environmental Sciences University of Kentucky Lexington,
> KY 40506-053

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
January 2001
December 2000
November 2000
October 2000
September 2000
August 2000
July 2000
June 2000
May 2000
April 2000
March 2000
February 2000
January 2000
December 1999
November 1999
October 1999
September 1999
August 1999
July 1999
June 1999
May 1999
April 1999
March 1999
February 1999
January 1999
December 1998
November 1998
October 1998
September 1998


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager