python4oceanographers

Turning ripples into waves

Super moon

Yesterday we had the super "moon event". Unfortunately Salvador was cloudy and the show was not as impressive as we expected. All the same, watching the sunset while the moon was rising by the Barra lighthouse was quite impressive. The super moon event inspired me to go back there next ...

Blending pandas and iris

If you have not checked Nikolay Koldunov's Earthpy blog by now stop reading this and click on my blog roll at the bottom right of the page. This post is basically "re-post" from his time-series part 2. I will to try reproduce his results using my two favorite tools ...

Building sites with Jekyll

I am building a new website with Jekyll for work using the gh-pages framework. This post contains some notes to remind me how to do it.

Jekyll is a ruby tool (always wanted to try ruby out) to build static websites. GitHub uses Jekyll automatic under the hood. That means ...

Running

I added together two of my hobbies (running and python) into one python package: python-corrida is a small module based on a Fortran program originally designed by Paulo Polito. The module computes a spreadsheet for your training. It was based on a paper that, unfortunately, no one seems to find ...

Plotting shaded relief

This is a quick post to test Cartopy's shaded relief plots. I never had to plot something like this before, but recently a friend asked me how to this with python and I got interested.

After a quick Google search I found several blogs post about this. The best ...

Virtual environment with conda

In my last post about conda I forgot to mentioned one important step! We must add my binstar channel to make python-oceans available via conda. Also, I do not think I emphasized the importance of creating virtual environments and how to create new ones. After answering questions about this over ...

Exploratory analysis using seaborn

This week I was helping a friend to explore her data-set with some simple statistics and plots. So I decided to try seaborn out.

It is a really nice library that, together with pandas, becomes a powerful tool to take the first steps while exploring your data.

Here is a ...

Is my dataset CF-compliant?

If you never heard about the Climate and Forecast (CF)) Metadata Conventions you are probably living under a rock deep down the Mariana Trench.

Now, hearing about it is one thing, claiming to fully understand it is another. First, it is under constant change, second, it seems to be more ...