Other articles


  1. Select time ranges in multidimensional arrays with pandas

    Task

    Select specific time ranges from multidimensional arrays
    
    

    Solution

    Pandas periods

    I like pandas for very easy time handling, and would like to use similar approach when work with multidimensional arrays, for example from netCDF files. There are already some efforts to do this. However I don't need anything complicated, just select some months, years of time periods. For this I can use pandas itself and benefit from its great time indexing. Below I will show a small example of how to do this.

    Necessary imports (everything can be installed from Anaconda)

    read more

    There are comments.

links

social