Talk:Raster map.py-code

From GeoMod

Jump to: navigation, search

Now contains smoothe surface map function.

Pickling

Lurbano 18:47, 28 April 2008 (CDT) Can now save a raster_map using pickle_map method (use unpickle_map function to load.

  • Pickling example use
outf = open("aquifer_top.pkl", "w")
aquifer.top.pickle_map(outf)
outf.close()
  • Unpickling example:

pickle_test.py

from raster_map import *

in_file_name = "aquifer_top.pkl"
infile = open(in_file_name)

top = unpickle_map(infile)
Personal tools