Closed GoogleCodeExporter closed 9 years ago
To actually read the data from the netCDF variable object pv, you have to slice
it (see section 6 of the docs). pv[:] reads all the data.
So,
pvsq = pv[:]**2
pv[:] = pvsq
should do what you want.
Original comment by whitaker.jeffrey@gmail.com
on 21 Feb 2012 at 2:03
Thanks. It was not clear that without a write statement the variable was
written to the file. Now I understand.
/M
Original comment by shejo...@gmail.com
on 22 Feb 2012 at 7:40
Original comment by whitaker.jeffrey@gmail.com
on 26 Feb 2014 at 2:04
Original issue reported on code.google.com by
shejo...@gmail.com
on 21 Feb 2012 at 1:38