[GRASS-user] grass and numpy (garray.array). problem when saving array to grass layer

Hi all,
I'm using grass gis 7.0 on Ubuntu
I've used the python library to import a grass raster layer in numpy
(from grass.script import array as garray)
then I would like to export a derived array:

myarray.write(mapname="tmp",overwrite=True)

but I obtain this error:

ERROR: Required parameter <input> not set:
  (Binary raster file to be imported)
that is triggered by r.in.bin

has someone encountered the same problem and solved it?

many thanks

Ivan