def from_file(filename, **kwargs):
ndv, xsize, ysize, geot, projection, datatype = get_geo_info(filename, **kwargs)<EOL>data = gdalnumeric.LoadFile(filename, **kwargs)<EOL>data = np.ma.masked_array(data, mask=data == ndv, fill_value=ndv)<EOL>return GeoRaster(data, geot, nodata_value=ndv, projection=projection, datatype=datatype)<EOL>
Create a GeoRaster object from a file