Re: [Matplotlib-users] depth longitude plot

2013-03-02 Thread Sudheer Joseph
Tank you very much for both solutions Phil, with best regards, Sudheer  *** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragath

Re: [Matplotlib-users] depth longitude plot

2013-03-02 Thread Phil Elson
Incidentally, if you wanted to do this a little more expressively than indexing, you could look into using iris ( http://scitools.org.uk/iris/docs/latest/index.html). It doesn't currently support DAP, but if you had the NetCDF file (from * http://www.marine.csiro.au/dods-data/climatology-netcdf/lev

Re: [Matplotlib-users] depth longitude plot

2013-03-02 Thread Phil Elson
Perhaps something like: from matplotlib import pyplot as plt from netCDF4 import Dataset import numpy as np url=*' http://www.marine.csiro.au/dods/nph-dods/dods-data/climatology-netcdf/levitus_monthly_temp_98.nc '* ds = Dataset(url) temp = ds.variables[*'TEMP'*] lats = ds.variables[*'**