ImageFile.__init__(*args, **kargs)[source]

Mostly a pass through to ImageArray constructor.

Local attribute is image. All other attributes and calls are passed through to image attribute.

There is one special case of creating an ImageFile from a Stoner.Core.DataFile. In this case the the DataFile is assummed to contain (x,y,z) data that should be converted to a map of z on a regular grid of x,y. The columns for the x,y,z data can be taken from the DataFile’s Stoner.Core.DataFile.setas attribute or overridden by providing xcol, ycol and zcol keyword arguments. A further shape keyword can spewcify the shape as a tuple or “unique” to use the unique values of x and y or if omitted asquare grid will be interpolated.