Other articles


  1. Plot grid and transect with PyNGL and komod

    Task:

    Draw a grid and a transect with PyNGL module
    
    

    Solution:

    komod module
    
    

    Notebook file

    This is a short follow up of the previous post about komod module, that is essentially a set of wrapper functions for PyNGL module. Here I am going to show how to plot a grid of your model and how to draw a transect. I am going to use the same data set af before: mean temperature from the World Ocean Atlas 2009 (5 deg. resolution).

    Import modules:

    read more

    There are comments.

  2. Plot maps with PyNGL and komod

    Task:

    Quickly draw maps with PyNGL module
    
    

    Solution:

    komod module
    
    

    Notebook file

    The PyNGL module produce very nice looking maps, and it's capabilities in fine tuning the resulting image in many cases are much better compared to matplotlib Basemap module. However this flexibility come at a price: in order to draw a map of an acceptable appearance one has to write quite a long script, and specify many parameters. Of course once you find your "best ever" set of parameters, you basically copy/paste them from one script to another with only slight modifications. But at some point you get annoyed by this long sheets of code, that by the way do not look very nice in IPython notebooks, and you write a wrapper function.

    read more

    There are comments.

  3. Time series analysis with pandas

    Task:

    analysis of several time series data (AO, NAO)
    
    

    Modules:

    pandas
    
    

    Notebook file

    Here I am going to show just some basic pandas stuff for time series analysis, as I think for the Earth Scientists it's the most interesting topic. If you find this small tutorial useful, I encourage you to watch this video, where Wes McKinney give extensive introduction to the time series data analysis with pandas.

    On the official website you can find explanation of what problems pandas solve in general, but I can tell you what problem pandas solve for me. It makes analysis and visualisation of 1D data, especially time series, MUCH faster. Before pandas working with time series in python was a pain for me, now it's fun. Ease of use stimulate in-depth exploration of the data: why wouldn't you make some additional analysis if it's just one line of code? Hope you will also find this great tool helpful and useful. So, let's begin.

    read more

    There are comments.

links

social