def to_shapefile(self, filename, kstpkper=None, totim=None, mflay=None,
                     attrib_name='lf_data'):

        plotarray = np.atleast_3d(self.get_data(kstpkper=kstpkper,
                                                totim=totim, mflay=mflay)
                                  .transpose()).transpose()
        if mflay != None:
            attrib_dict = {
                attrib_name + '{0:03d}'.format(mflay): plotarray[0, :, :]}
        else:
            attrib_dict = {}
            for k in range(plotarray.shape[0]):
                name = attrib_name + '{0:03d}'.format(k)
                attrib_dict[name] = plotarray[k]
        from flopy.export.shapefile_utils import write_grid_shapefile
        write_grid_shapefile(filename, self.sr, attrib_dict)
@return: the absolute position of wrapper on the page
dataset/ETHPy150Open modflowpy/flopy/flopy/utils/datafile.py/LayerFile.to_shapefile--crossover with--dataset/ETHPy150Open rwl/muntjac/muntjac/ui/drag_and_drop_wrapper.py/WrapperTargetDetails.getAbsoluteTop