Hi, I have problems figuring out the right way to use the SavePICT operation to save a graph as a tif. I tried different versions but none of them work. During compile the colon (:) between C and Users is marked and it says non-existant data folder. However I successfully used the same path with the ImageLoad operation (at the bottom).
[quote=finn]
SavePICT /E=-7 /B=288 /P=C:Users:Admins:Desktop:test:Graph1.tif
[/quote]
The /P flag expects the name of a Path object made with NewPath or Misc->New Path.... Also, without having as "Graph1.tif" at the end, Igor would prompt you for the file name.
[quote=finn]
//SavePICT /E=-7 /B=288 "C:Users:Admins:Desktop:test" as Graph1.tif
[/quote]
Igor doesn't know what to do with the string containing your path because it doesn't correspond to a parameter for SavePICT. You could use that string to make a NewPath. Also, the file name should be quoted.
The third version has combined problems from the first two.
I think it should work properly like this:
SavePICT/E=-7/B=288 as "C:Users:Admins:Desktop:test:Graph1.tif"
Here is a bit of code I use to save images to a folder with today's date
You can obviously change the "savefolder" or "filename" to whatever you would like.
October 20, 2011 at 08:02 am - Permalink
October 20, 2011 at 10:00 am - Permalink
SavePICT /E=-7 /B=288 /P=C:Users:Admins:Desktop:test:Graph1.tif
[/quote]
The /P flag expects the name of a Path object made with NewPath or Misc->New Path.... Also, without having as "Graph1.tif" at the end, Igor would prompt you for the file name.
[quote=finn]
//SavePICT /E=-7 /B=288 "C:Users:Admins:Desktop:test" as Graph1.tif
[/quote]
Igor doesn't know what to do with the string containing your path because it doesn't correspond to a parameter for SavePICT. You could use that string to make a NewPath. Also, the file name should be quoted.
The third version has combined problems from the first two.
I think it should work properly like this:
October 20, 2011 at 10:12 am - Permalink
October 21, 2011 at 04:55 am - Permalink