> I have a 2D floating point array of size 200 by 300 and its a gray scale
Try this:
convert -size 200x200 -depth 32 -define quantum:format=floating-point \
gray:myimage image.jpg
for example. You may need to specify the -endian option as well.