Forum

Author Topic: My TXT file can not be imported python,why?  (Read 3447 times)

1104312139@gm.kuas.edu.tw

  • Newbie
  • *
  • Posts: 22
    • View Profile
My TXT file can not be imported python,why?
« on: December 09, 2016, 02:52:30 PM »
Hello
I need to import the coordinates to my code but the file is always not read during execution
I hope the code have external
Why?
Thank you

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: My TXT file can not be imported python,why?
« Reply #1 on: December 09, 2016, 03:04:14 PM »
Hello,

Can you replace "\" with "/" in the file path string? Does it help?
Best regards,
Alexey Pasumansky,
Agisoft LLC

1104312139@gm.kuas.edu.tw

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: My TXT file can not be imported python,why?
« Reply #2 on: December 09, 2016, 03:44:54 PM »
Hello,
Dear Alexey
I try "\" with "/" but it or not read
my txt file is "csv" is there an error?
Thanks you

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: My TXT file can not be imported python,why?
« Reply #3 on: December 09, 2016, 04:13:38 PM »
Hello,

For me it worked with the following line:
Code: [Select]
chunk.loadReference("C:/Program Files/Agisoft/PhotoScan Pro/dsd.txt", format = "csv", columns = "nxyz", delimiter =",")You need to specify the order of the columns and delimiter, if they are different from the default.
Best regards,
Alexey Pasumansky,
Agisoft LLC

1104312139@gm.kuas.edu.tw

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: My TXT file can not be imported python,why?
« Reply #4 on: December 10, 2016, 10:43:01 AM »
Dear  Alexey,
ok i success, very very thanks you love you :-* :-* :-* :-*