python4oceanographers

Turning ripples into waves

Using Matlab Toolboxes inside IPython

Tidal analysis in python can be quite difficult. During my MatlabTM times I used the t_tide a lot and I end up comparing other packages to t_tide.

The only python alternative one that comes close to t_tide is tappy.

Tappy seems to be a good one, but it was build ...

Catching ISON fever!

Since the last post I've been playing more with PyEphem. One of the many interesting features of this astronomical computations module is the ability to read external orbital elements.

Here is an example on how to create an ISON comet object.

We can get the ISON comet orbital data ...

The ggplot interface for python

There has been a lot of buzz around the python ggplot module recently. I must confess that the original (ggplot2 for R) for R is not a tool in my utility belt. However, every now and then I find myself teaching it to biologist/ecologist that are stuck with R ...

Better colormaps with brewer2mpl

We already used the brewer2mpl module in previous posts. However, we did not showed it in detail. This post is just to draw attention to this interesting module that can access the Colorbrewer2.0 website and convert colormaps directly to matplotlib format.

Let's start importing by cartopy, iris, pyplot ...

Cartopy and the Natural Earth Dataset

Alternative dataset to plot the Brazilian political boundaries.

We already saw some of the advantages of cartopy over other mapping tools. However, as a Brazilian, I really miss a more up-to-date political boundary than those present in tools like GMT, m_map, and basemap.

Luckily cartopy can Read On ↵

Cartopy as an alternative to basemap

The previous post I've mentioned both iris and cartopy modules, and talked a little bit on the use of iris to download, read and plot a gridded data-set (A.K.A. the iris cube). Here I'll show a little bit more about cartopy.

The best feature so far ...

Using iris to read gridded files

Learning how to use iris cubes and cartopy plotting.

I'm experimenting with iris cubes and cartopy plotting. Both libraries are part of the SciTools package developed by the UK Met Office:

In [2]:
HTML('<iframe src=http://scitools.org.uk width=700 height=350></iframe>')
Out[2]:

They are ...

Downloading several hdf files from a server

This post is a quick example on how to use download several hdf 4 files by "scrapping" NASA's server.

Manually downloading several hdf files is, most of the time, impractical. Some time ago I helped a friend with a similar problem with a simple python script. This post is ...