Hi All,
I am trying to decompress at gzipped netcdf file and place the decompressed
file in the same folder without the *.gz extension. I am using gzip. If I
use the following code nothing happens.

import gzip
filepath="D:/test/surfacetemp.nc.gz"
compresseddata=gzip.open(filepath, "rb")
file_content=compresseddata.read()

How can I output the decompressed file? something like:
output=file_content.write(filepath[:-3])

thanks
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to