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
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
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[*'**