Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
142 views

Presentation Intro To Python and Metocean Data Analysis

This document provides an introduction to using Python for metocean data analysis. It defines metocean data as including parameters like wind, waves, tide, temperature and more. It describes different sources of metocean data like global models, field measurements, and regional models. It then discusses why metocean data analysis is important for assessing weather windows and design loads for operations. The document proceeds to introduce Python programming concepts like data types, structures and manipulation. It also introduces the Google Colab notebook platform and provides a case study example of using Python to analyze wind data from Indonesia for determining a workability schedule at a port.

Uploaded by

ferdinanfirdaus
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views

Presentation Intro To Python and Metocean Data Analysis

This document provides an introduction to using Python for metocean data analysis. It defines metocean data as including parameters like wind, waves, tide, temperature and more. It describes different sources of metocean data like global models, field measurements, and regional models. It then discusses why metocean data analysis is important for assessing weather windows and design loads for operations. The document proceeds to introduce Python programming concepts like data types, structures and manipulation. It also introduces the Google Colab notebook platform and provides a case study example of using Python to analyze wind data from Indonesia for determining a workability schedule at a port.

Uploaded by

ferdinanfirdaus
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

INTRODUCTION TO

PYTHON AND ITS


APPLICATION FOR
METOCEAN DATA
ANALYSIS
Thank you for your support, this webinar is a fundraising event
to support a non-profit organization “Happy Project”

Presented by:
Dinda Mazeda
Singapore, 28 November 2020
WHAT IS METOCEAN?
Metocean
• Wind
• Wave
• Tide
• Current
• Salinity
• Density
• Temperature
• Atmospheric Pressure
• Cloud cover
• Etc..

Photo source https://www.imarest.org/reports/650-metocean-procedures-guide/file

Introduction to Python and Its Application for Metocean Data Analysis


METOCEAN DATA
Global Data (Numerical Model
and Satellite Observation)
• Global spatial coverage
• Cover long data duration (varies between agencies)
• Available in public domain sources
• Low spatial and temporal resolution (grid data up to few km and
data interval can be few hours or daily)

Photo source: https://www.data.jma.go.jp/mscweb/data/himawari/sat_img.php?area=se3

Introduction to Python and Its Application for Metocean Data Analysis


Field Measurement Data
• Site specific and reliable quantification data
• Higher temporal data resolution (data interval can be customized
from hours to up to minutes)
• High expenditure for installation and maintenance
• Limited spatial resolution

Photo source https://www.imarest.org/reports/650-metocean-procedures-guide/file

Introduction to Python and Its Application for Metocean Data Analysis


Regional Data
• regional numerical model validated and calibrated using field
measurement data or satellite observations.

Photo source: https://www.deltares.nl/en/projects/metocean-database-offshore-waters-abu-dhabi-u-e/

Introduction to Python and Its Application for Metocean Data Analysis


WHY METOCEAN IS IMPORTANT ?
https://www.instagram.com/p/CG6jIGuHww9/

Introduction to Python and Its Application for Metocean Data Analysis


Metocean Data Analysis
• Weather Windows
• Operational Climate
• Extreme Climate
• Input to Design Loads Cases
• Etc..

Reference: https://www.imarest.org/reports/650-metocean-procedures-guide/file

Introduction to Python and Its Application for Metocean Data Analysis


Weather Windows
• The minimum time period within an operational limit required to
perform a given activity. Weather windows required for safe
operations.

Reference: https://www.fugro.com and https://www.imarest.org/reports/650-metocean-procedures-guide/file

Introduction to Python and Its Application for Metocean Data Analysis


PYTHON
What is Python?
• An interpreted, high-level and general-
purpose programming language
• Created by Guido van Rossum in 1980s
• First released in 1991
• The latest version is 3.9 and released in 5th
October 2020
• The logo is based on Mayan
representations of snakes. The structure of
the snake representations the natural
coiling/nesting of a snake as seen side on

Introduction to Python and Its Application for Metocean Data Analysis


Python's Philosophy :
• Beautiful is better than ugly.
• Explicit is better than implicit.
• Simple is better than complex.
• Complex is better than complicated.
• Readability counts.

Introduction to Python and Its Application for Metocean Data Analysis


Python Library
• Pandas
• NumPy
• Scipy
• Matplotlib
• Seaborn
• NETCDF4
• Xarray
• Octant
• Pyroms
• Cartopy
• And many more..
Reference: https://pyoceans.github.io/sea-py/
https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf

Introduction to Python and Its Application for Metocean Data Analysis


GOOGLE COLAB NOTEBOOK
What is Google Colab Notebook?
Colaboratory, or "Colab" for short, allows you to write and
execute Python in your browser, with:
• Zero configuration required
• Free access to GPUs (graphics processing unit)
• Easy sharing

Introductory Video:
https://youtu.be/inN8seMm7UI

Introduction to Python and Its Application for Metocean Data Analysis


Data Type
• Strings : Characters, identify with quote r double quote
e.g ‘Hello World’
• Integers : Whole numbers
e.g 1 2 3 4 10
• Floats: Numbers that have a decimal point
e.g 2.50 3.14
• Booleans: Binary variable that can have one of two possible
values, True or False

Introduction to Python and Its Application for Metocean Data Analysis


Data Structure
• List: Sequence of data or an Array constructed using square
brackets [ ]

C List = [ A, B, C, D, E ]

Introduction to Python and Its Application for Metocean Data Analysis


Data Structure
• Dictionary: Data consist of a pair of keys and values
constructed using curly braces {key : value}

KEY VALUE

A 1

B 2
Dictionary = {A:1, B:2, C:3, D:4, E:5}
C 3

D 4

E 5

Introduction to Python and Its Application for Metocean Data Analysis


Data Manipulation
• Indexing : python index start at 0

0 A

1 B

2 C List = [ A, B, C, D, E ]

3 D

4 E

Introduction to Python and Its Application for Metocean Data Analysis


Data Manipulation
• For – Loop
• While – Loop

B List = [ A, B, C, D, E ]

C
For i in List:
D print (i) #order to python to do something
E
#the result will be
A
B
C
D
E

Introduction to Python and Its Application for Metocean Data Analysis


Data Manipulation
• If – Else – Statement

B List = [ A, B, C, D, E ]

D #we want to check if H is available in variable List


If H in List:
E print (‘data is available’)
Else:
print (‘data is not available’)

#the result will be


data is not available

Introduction to Python and Its Application for Metocean Data Analysis


Google Colab Notebook:
https://bit.ly/python_metocean_101
CASE STUDY
Case Study
Simple weather window analysis will be done to determine the
workability schedule for various operation at North Jakarta
Port.
The assessment will be based on hypothetical scenario as
follows
• Wind speed limit for crane operation: 7m/s
• Wind speed limit for lifting operation: 5m/s
• Wind speed limit for installation operation: 10m/s
Wind data will be retrieved from Indonesian agency for
meteorology, climatology, and geophysics (BMKG) on
http://dataonline.bmkg.go.id/home
Q&A

You might also like