python4oceanographers

Turning ripples into waves

Interactive plots with mpld3

I usually use IPython notebook in my classes, they are a great tool for teaching code and science or even both at the same time.

However, when I am using the notebook to teach, I miss interaction with matplotlib figures. One can drop the %matplotlib inline magic to force the ...

Snell-Descartes Law

(Updating my Waves and Tides laboratory lecture on Snell-Descartes Law. This post was written in Portuguese.)

Altura e direção de onda usando a lei de snell e batimetria realística

Região do estudo

Utilizaremos a lei de snell-descartes para estudar o ângulo de refração e a altura de ondas na praia ...

Mean Dynamic Topography

(Updating my laboratory lecture on Geostrophic Currents. This post was written in Portuguese.)

Notebook para calcular a corrente geostrófica entre dois pontos usando o os dados de Mean Dynamic Height do arquivo mdt_cnes_cls2009_global_v1.1.nc.

Esse notebook visa explorar dados de Altura Dinâmica Média calculando a corrente geostrófica gerado pela ...

Building this blog

People often ask me: How can I can build a blog similar to this one? What tools are you using? What is IPython notebook role in your blog?

If you are familiar with Pelican and want to jump ahead before reading the whole post, check out the blog code repository ...

Convert to and from UTM coordinates with pyproj

This post is a quick note on how to convert to and from UTM coordinates using pyproj.

As the end of the year approaches my TODO list gets bigger and bigger and my posts get smaller and smaller... Well, this one is small but I find it useful. I always ...

Matplotlib zoomed axis

This post is just a very simple example on how to use matplotlib's zoomed_inset_axes. It is an easy shortcut to create very sophisticated plots.

We need to import mark_inset, to show lines marking where we are zooming, and zoomed_inset_axes to create the actual zoomed axes.

In [2]:
import numpy ...

Chemical Molecule Drawing with rdkit

This post is just a quick introduction on how to use rdkit python bindings to draw chemical molecules.

I have a very special friend that downloads terrible jpegs/pngs from the internet to use in her lectures. Every time, I promise myself that I will make her better figures. Well ...

Wave animations

I started to update several of my old MatlabTM scripts for the Waves & Tides course I'm teaching. They are a compilation of courses I took in the past, and/or scripts I found online. Most of them are not that interesting, unless you are taking my course :), but others ...

OMPA lecture

The following slides are an Introduction to Optimum Multi-Parametric Water Mass Analysis in Portuguese.

In [2]:
HTML('<iframe src="https://ocefpaf.github.io/descriptive_oceanography/extra_OMP/index.html" width=735 height=600></iframe>')
Out[2]:
In [3]:
HTML(html)
Out[3]:

This post was written as an IPython notebook. It is ...