SlideShare a Scribd company logo
1 of 22
Download to read offline
5/9/2022
Seismic Analysis Using
Python
By:
Mahmoud Badawy
(Lecturer of Geophysics, Geology Department,
Faculty of Science, Alexandria University, Egypt)
1
“Data Analysis and
Interpretation in Earth
Science”
Dr. Mahmoud Badawy
Dr. Mahmoud Badawy 2
5/9/2022
$?
Dr. Mahmoud Badawy 3
5/9/2022
$?
What happened!
Open what?
Using what?
Dr. Mahmoud Badawy 4
Numerous step-by-step code
examples in the field of Earth Sciences.
Allows proficient use of Python in
visualizing, analyzing, and modelling
geological data.
Specifically minded for teaching
Python to geologists.
5/9/2022
It’s how you make software (Using Software)??????
What do you want to [code, build, debug, deploy, collaborate
on, analyze, learn] today?
Code faster
Work smarter
Data Analyst?
Data Science?
Machine Learning?
Artificial Intelligent?
Computer Science
Students!!!!!!
Type less, code more
IntelliCode is a powerful set of
automatic code completion tools
that understand your code context:
variable names, functions, and the
type of code you’re writing.
This makes IntelliCode able to
complete up to a whole line at once,
helping you code more accurately
and confidently.
Dr. Mahmoud Badawy 6
5/9/2022
Stop problems before they’re problems
Integrated debugging is a core part of every Visual
Studio product.
You can step through your code and look at the values
stored in variables, set watches on variables to see when
values change, examine the execution path of your code,
and just about anything else you need to check out under
the hood.
Dr. Mahmoud Badawy 7
5/9/2022
Dr. Mahmoud Badawy 8
Language Time!
5/9/2022
5/9/2022 Dr. Mahmoud Badawy 9
5/9/2022 Dr. Mahmoud Badawy 10
5/9/2022 Dr. Mahmoud Badawy 11
5/9/2022 Dr. Mahmoud Badawy 12
5/9/2022 Dr. Mahmoud Badawy 13
5/9/2022 Dr. Mahmoud Badawy 14
5/9/2022 Dr. Mahmoud Badawy 15
5/9/2022 Dr. Mahmoud Badawy 16
Dr. Mahmoud Badawy 17
5/9/2022
Dr. Mahmoud Badawy 18
Which prompt you will use
Cmd
Anaconda
Powershell
?
Library
Packages
Modules
Anaconda prompt:
pip install numpy
pip install matplotlib
pip install obspy
pip install segyio
Pip install petrel
pip install seismic_canvas
pip install seismic-attributes
5/9/2022
Python Language to handle with seismic specific libraries:
Dr. Mahmoud Badawy 19
stream = _read_segy('C:/Users/M.M.Badawy/Desktop/Name of Data Folder/X-Line 1.segy', headonly = True)
import numpy as np
import matplotlib.pyplot as plt
from obspy.io.segy.segy import _read_segy
plt.imshow(data.T, cmap="RdBu", min=-100, max=100, aspect='auto')
import numpy as np
import matplotlib.pyplot as plt
from obspy.io.segy.segy import _read_segy
one_trace = steam.traces[3]
data = np.stack(t.data for t in steam.traces)
data.shape
stream = _read_segy('C:/Users/M.M.Badawy/Desktop/SEGY/X-Line 5.segy', headonly = True)
plt.imshow(data.T, cmap="RdBu", vmin=-100, vmax=100, aspect='auto')
5/9/2022
Dr. Mahmoud Badawy 20
5/9/2022
Dr. Mahmoud Badawy 21
5/9/2022
5/9/2022 Dr. Mahmoud Badawy 22
>>>print (“Thanks”)
Thanks

More Related Content

What's hot

Ultra high temperature metamorphism
Ultra high temperature metamorphismUltra high temperature metamorphism
Ultra high temperature metamorphism
Omer M. Ahmed
 

What's hot (20)

Geomagnetism.ppt
Geomagnetism.pptGeomagnetism.ppt
Geomagnetism.ppt
 
Igneous petrology.....Masoom
Igneous petrology.....MasoomIgneous petrology.....Masoom
Igneous petrology.....Masoom
 
Gemcom whittle brochure
Gemcom whittle brochureGemcom whittle brochure
Gemcom whittle brochure
 
Gravity & magnetic methods in geology
Gravity & magnetic methods in geologyGravity & magnetic methods in geology
Gravity & magnetic methods in geology
 
Gravity Survey Method
Gravity Survey MethodGravity Survey Method
Gravity Survey Method
 
1940_Magmatic Differentiation.pptx
1940_Magmatic Differentiation.pptx1940_Magmatic Differentiation.pptx
1940_Magmatic Differentiation.pptx
 
Age of earth determination
Age of earth determinationAge of earth determination
Age of earth determination
 
Sedimentary Facies.ppt
Sedimentary Facies.pptSedimentary Facies.ppt
Sedimentary Facies.ppt
 
Inverse Theory in Geophysics, Lecture 1
Inverse Theory in Geophysics, Lecture 1Inverse Theory in Geophysics, Lecture 1
Inverse Theory in Geophysics, Lecture 1
 
R実践 機械学習による異常検知 02
R実践 機械学習による異常検知 02R実践 機械学習による異常検知 02
R実践 機械学習による異常検知 02
 
Mineral economic
Mineral economicMineral economic
Mineral economic
 
Gravity Method
Gravity MethodGravity Method
Gravity Method
 
Stereographic projection
Stereographic projection Stereographic projection
Stereographic projection
 
Ultra high temperature metamorphism
Ultra high temperature metamorphismUltra high temperature metamorphism
Ultra high temperature metamorphism
 
Folds
 Folds Folds
Folds
 
Bundelkhand craton
Bundelkhand cratonBundelkhand craton
Bundelkhand craton
 
Modern mining
Modern miningModern mining
Modern mining
 
Ophiolite ppt
Ophiolite pptOphiolite ppt
Ophiolite ppt
 
Geophysical Exploration
Geophysical ExplorationGeophysical Exploration
Geophysical Exploration
 
Paired metamorphic belts
Paired metamorphic beltsPaired metamorphic belts
Paired metamorphic belts
 

Similar to Python Programing Language in GeoScience-Notes.pdf

Taking The Cloud Native
Taking The Cloud NativeTaking The Cloud Native
Taking The Cloud Native
Corey Clark, Ph.D.
 
Manish Chasta - Securing Android Applications
Manish Chasta - Securing Android ApplicationsManish Chasta - Securing Android Applications
Manish Chasta - Securing Android Applications
Positive Hack Days
 

Similar to Python Programing Language in GeoScience-Notes.pdf (20)

Boston Data Engineering: Kedro Python Framework for Data Science: Overview an...
Boston Data Engineering: Kedro Python Framework for Data Science: Overview an...Boston Data Engineering: Kedro Python Framework for Data Science: Overview an...
Boston Data Engineering: Kedro Python Framework for Data Science: Overview an...
 
C language in our world 2019
C language in our world 2019C language in our world 2019
C language in our world 2019
 
Tsunami of Technologies. Are we prepared?
Tsunami of Technologies. Are we prepared?Tsunami of Technologies. Are we prepared?
Tsunami of Technologies. Are we prepared?
 
Call for Paper - International Conference on NLP, Data Mining and Machine Lea...
Call for Paper - International Conference on NLP, Data Mining and Machine Lea...Call for Paper - International Conference on NLP, Data Mining and Machine Lea...
Call for Paper - International Conference on NLP, Data Mining and Machine Lea...
 
Software Developer's Journal - 02/2012
Software Developer's Journal - 02/2012Software Developer's Journal - 02/2012
Software Developer's Journal - 02/2012
 
Webinar - Analyzing Video
Webinar - Analyzing VideoWebinar - Analyzing Video
Webinar - Analyzing Video
 
International Conference on NLP, Data Mining and Machine Learning (NLDML 2022)
International Conference on NLP, Data Mining and Machine Learning (NLDML 2022)International Conference on NLP, Data Mining and Machine Learning (NLDML 2022)
International Conference on NLP, Data Mining and Machine Learning (NLDML 2022)
 
Mongo db report
Mongo db reportMongo db report
Mongo db report
 
Taking The Cloud Native
Taking The Cloud NativeTaking The Cloud Native
Taking The Cloud Native
 
PostScript: Danger Ahead?!
PostScript: Danger Ahead?!PostScript: Danger Ahead?!
PostScript: Danger Ahead?!
 
Manish Chasta - Securing Android Applications
Manish Chasta - Securing Android ApplicationsManish Chasta - Securing Android Applications
Manish Chasta - Securing Android Applications
 
Call for Paper - International Conference on NLP, Data Mining and Machine Lea...
Call for Paper - International Conference on NLP, Data Mining and Machine Lea...Call for Paper - International Conference on NLP, Data Mining and Machine Lea...
Call for Paper - International Conference on NLP, Data Mining and Machine Lea...
 
Call for Papers - International Conference on NLP, Data Mining and Machine Le...
Call for Papers - International Conference on NLP, Data Mining and Machine Le...Call for Papers - International Conference on NLP, Data Mining and Machine Le...
Call for Papers - International Conference on NLP, Data Mining and Machine Le...
 
Call for Paper - International Conference on NLP, Data Mining and Machine Lea...
Call for Paper - International Conference on NLP, Data Mining and Machine Lea...Call for Paper - International Conference on NLP, Data Mining and Machine Lea...
Call for Paper - International Conference on NLP, Data Mining and Machine Lea...
 
NanoSec Conference 2019: Code Execution Analysis in Mobile Apps - Abdullah Jo...
NanoSec Conference 2019: Code Execution Analysis in Mobile Apps - Abdullah Jo...NanoSec Conference 2019: Code Execution Analysis in Mobile Apps - Abdullah Jo...
NanoSec Conference 2019: Code Execution Analysis in Mobile Apps - Abdullah Jo...
 
Sentiment Analysis using Big Data
Sentiment Analysis using Big Data Sentiment Analysis using Big Data
Sentiment Analysis using Big Data
 
Keedio Stack: BDaaS deployment for dummies by Alessio Comisso at Big Data Spa...
Keedio Stack: BDaaS deployment for dummies by Alessio Comisso at Big Data Spa...Keedio Stack: BDaaS deployment for dummies by Alessio Comisso at Big Data Spa...
Keedio Stack: BDaaS deployment for dummies by Alessio Comisso at Big Data Spa...
 
Maintainability Sogeti Qx Day 2020
Maintainability Sogeti Qx Day 2020Maintainability Sogeti Qx Day 2020
Maintainability Sogeti Qx Day 2020
 
Common Missteps in Cross-Platform Development.pdf
Common Missteps in Cross-Platform Development.pdfCommon Missteps in Cross-Platform Development.pdf
Common Missteps in Cross-Platform Development.pdf
 
Fabric for Deep Learning
Fabric for Deep LearningFabric for Deep Learning
Fabric for Deep Learning
 

More from Faculty of Science, Alexandria University, Egypt (6)

Identification of Subsurface characterization and geomodeling.pdf
Identification of Subsurface characterization and geomodeling.pdfIdentification of Subsurface characterization and geomodeling.pdf
Identification of Subsurface characterization and geomodeling.pdf
 
Principles of seismic data interpretation m.m.badawy
Principles of seismic data interpretation   m.m.badawyPrinciples of seismic data interpretation   m.m.badawy
Principles of seismic data interpretation m.m.badawy
 
Principles of seismic data processing m.m.badawy
Principles of seismic data processing m.m.badawyPrinciples of seismic data processing m.m.badawy
Principles of seismic data processing m.m.badawy
 
Principles of petroleum geology m.m.badawy
Principles of petroleum geology m.m.badawyPrinciples of petroleum geology m.m.badawy
Principles of petroleum geology m.m.badawy
 
Principles of well logging and formation evaluation m.m.badawy
Principles of well logging and formation evaluation m.m.badawyPrinciples of well logging and formation evaluation m.m.badawy
Principles of well logging and formation evaluation m.m.badawy
 
Stratigraphic column for gulf of suez, western desert and nile delta, egypt (...
Stratigraphic column for gulf of suez, western desert and nile delta, egypt (...Stratigraphic column for gulf of suez, western desert and nile delta, egypt (...
Stratigraphic column for gulf of suez, western desert and nile delta, egypt (...
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

Python Programing Language in GeoScience-Notes.pdf

  • 1. 5/9/2022 Seismic Analysis Using Python By: Mahmoud Badawy (Lecturer of Geophysics, Geology Department, Faculty of Science, Alexandria University, Egypt) 1 “Data Analysis and Interpretation in Earth Science” Dr. Mahmoud Badawy
  • 2. Dr. Mahmoud Badawy 2 5/9/2022 $?
  • 3. Dr. Mahmoud Badawy 3 5/9/2022 $?
  • 4. What happened! Open what? Using what? Dr. Mahmoud Badawy 4 Numerous step-by-step code examples in the field of Earth Sciences. Allows proficient use of Python in visualizing, analyzing, and modelling geological data. Specifically minded for teaching Python to geologists. 5/9/2022
  • 5. It’s how you make software (Using Software)?????? What do you want to [code, build, debug, deploy, collaborate on, analyze, learn] today? Code faster Work smarter Data Analyst? Data Science? Machine Learning? Artificial Intelligent? Computer Science Students!!!!!!
  • 6. Type less, code more IntelliCode is a powerful set of automatic code completion tools that understand your code context: variable names, functions, and the type of code you’re writing. This makes IntelliCode able to complete up to a whole line at once, helping you code more accurately and confidently. Dr. Mahmoud Badawy 6 5/9/2022
  • 7. Stop problems before they’re problems Integrated debugging is a core part of every Visual Studio product. You can step through your code and look at the values stored in variables, set watches on variables to see when values change, examine the execution path of your code, and just about anything else you need to check out under the hood. Dr. Mahmoud Badawy 7 5/9/2022
  • 8. Dr. Mahmoud Badawy 8 Language Time! 5/9/2022
  • 10. 5/9/2022 Dr. Mahmoud Badawy 10
  • 11. 5/9/2022 Dr. Mahmoud Badawy 11
  • 12. 5/9/2022 Dr. Mahmoud Badawy 12
  • 13. 5/9/2022 Dr. Mahmoud Badawy 13
  • 14. 5/9/2022 Dr. Mahmoud Badawy 14
  • 15. 5/9/2022 Dr. Mahmoud Badawy 15
  • 16. 5/9/2022 Dr. Mahmoud Badawy 16
  • 17. Dr. Mahmoud Badawy 17 5/9/2022
  • 18. Dr. Mahmoud Badawy 18 Which prompt you will use Cmd Anaconda Powershell ? Library Packages Modules Anaconda prompt: pip install numpy pip install matplotlib pip install obspy pip install segyio Pip install petrel pip install seismic_canvas pip install seismic-attributes 5/9/2022
  • 19. Python Language to handle with seismic specific libraries: Dr. Mahmoud Badawy 19 stream = _read_segy('C:/Users/M.M.Badawy/Desktop/Name of Data Folder/X-Line 1.segy', headonly = True) import numpy as np import matplotlib.pyplot as plt from obspy.io.segy.segy import _read_segy plt.imshow(data.T, cmap="RdBu", min=-100, max=100, aspect='auto') import numpy as np import matplotlib.pyplot as plt from obspy.io.segy.segy import _read_segy one_trace = steam.traces[3] data = np.stack(t.data for t in steam.traces) data.shape stream = _read_segy('C:/Users/M.M.Badawy/Desktop/SEGY/X-Line 5.segy', headonly = True) plt.imshow(data.T, cmap="RdBu", vmin=-100, vmax=100, aspect='auto') 5/9/2022
  • 20. Dr. Mahmoud Badawy 20 5/9/2022
  • 21. Dr. Mahmoud Badawy 21 5/9/2022
  • 22. 5/9/2022 Dr. Mahmoud Badawy 22 >>>print (“Thanks”) Thanks