0

I have a complex 2D numpy array and I would like to save it as a tiff file to import it into IDL.

What would be the best way to do this?

Thanks!

veda905
  • 782
  • 2
  • 12
  • 32
torpedo
  • 283
  • 2
  • 15

1 Answers1

0

May be it is interesintg for you to save directly a .sav file (IDL format) from numpy using the package pIDLy (https://github.com/anthonyjsmith/pIDLy).

For me, it works like that:

#starting IDL
idl = pidly.IDL()

#save the file with the save method of idle
idl.pro('save',variable,FILENAME=name_file)

#clossing IDL session
idl.close()
VictorCB
  • 70
  • 10