#! /usr/bin/env python
from ppclass import pp

## AVERAGED PROFILE
temp = pp()
temp.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc"
temp.var = "temp"
temp.x = "-180,180"
temp.y = "-90,90"
temp.t = "0,1"
temp.get()
temp.defineplot()
temp.p[0].title = "This is an averaged temperature profile"
temp.makeplot()

## ZONAL MEAN
u = pp()
u.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc"
u.var = "u"
u.x = "-180,180"
u.y = None
u.t = "0.5"
u.filename = "zonalmean"
u.get()
u.defineplot()
u.p[0].div = 30.
u.p[0].colorb = "RdBu_r"
u.p[0].title = "This is a zonal mean"
u.makeplot()

## ZONAL MINIMUM
u.compute = "min"
u.filename = "zonalmin"
u.get()
u.defineplot()
u.p[0].div = 30.
u.p[0].colorb = "cool"
u.p[0].title = "This is minimum over zonal axis"
u.makeplot()

## ZONAL MAXIMUM
u.compute = "max"
u.filename = "myplot"
u.get()
u.defineplot()
u.p[0].div = 30.
u.p[0].colorb = "hot"
u.p[0].title = "This is maximum over zonal axis"
u.makeplot()

## MAP OF MAXIMUM OVER TIME
u.compute = "max"
u.x = None
u.y = None
u.t = "0,1"
u.z = 20000.
u.get()
u.defineplot()
u.p[0].div = 30.
u.p[0].title = "This is maximum over time"
u.makeplot()
