Hi,
I’d need to extract XG7F data from a 1GB7 SDIF using getsdifdata on OM 6.7, but I keep encountering this error:
“Error while evaluating the box GETSDIFDATA 7 : Illegal :utf-8 character starting at position 3”.
How is it possible to solve this annoying issue?
Thanks for your kind concern.
Best regards,
Francesco Vitale
Hello,
please attach a sample SDIF file.
thanks,
Jean
Dear Francesco,
this works for me (c.f screenshot)… By the way i use OM 6.5.1
One thing maybe is to specify the stream number, and the cnum field number.
Or it has to do with the Om version,…
Best
K
Dear Karim,
I believe that there’s a problem with the last version of OM (and maybe not only with that version). Now that I’ve explicitly specified the sid and the cnum, the issue is the same (see the attachment). Moreover, I see from your screenshot that you’ve chosen the matrix “XG70”, which gives no problems – but, as I’ve said, the trouble comes with the matrix “XG7F”: so, are you sure that it all works fine on OM 6.5.1? Thanks for your reply.
Best,
Francesco
error1.tiff (50.3 KB)
Dear Francesco,
Sorry about that… I did right now the XG7F stream and it gives this :
iam.wrk/elements/SDIF/03-read-2.omp
OM > Initializing SDIF…
OM > Loading SDIF file : /Users/haddad/Downloads/sdif/OS7.sdif
OM => ((0.0D0 0.0D0 0.0D0 3.0D0 2.0D0 1.0D0 0.0D0 -1.0D0 -2.0D0 -3.0D0 -4.0D0 0.0D0 0.0D0 0.0D0 0.0D0 0.0D0 0.0D0 0.0D0 0.0D0 0.0D0 0.0D0 0.0D0 0.0D0 0.0D0 …
long long list …
So i confirm on 6.5.1 this works. It could now be coming from the SDIF.Framework… (maybe).
can you try it out on 6.5.1 if you still got it ?
Best
K
Ok Karim,
I tried with OM 6.6, and it works (by the way: I’m on OS 10.8.5). So I guess it’s a bug on the newest version of OM. Is there a chance to get it fixed from Jean?
All the best,
Francesco
yes, I’ll fix that in 6.7.1
it’s a problem due to the matrix format (bytes instead of floats) and a change in the new GetSDIFData
Jean