Hi Rita, First of all thank you very much for including a working test case. :-)
There is indeed a bug in the ReadXML routine for the CovarianceMatrix. Instead of overwriting the workspace variable with the contents from the file, it was appending the blocks to the existing covmat_sx, ending up with 6 blocks after reading instead of 3. I will commit a fix soon. As a workaround in your version, you can delete the covmat_sx WSV before reading it: WriteXML( "ascii", covmat_sx, "covmat_sx1.xml") Delete(covmat_sx) ReadXML( covmat_sx, "covmat_sx1.xml") Thanks a lot for reporting this. Cheers, Oliver > On 14. Jan 2020, at 21:17, Rita Kajtar <rita.kaj...@gmail.com> wrote: > > Hello! > > > In one of my tests with TestOEM.arts if I add: > > WriteXML( "ascii", covmat_sx, "covmat_sx1.xml") > ReadXML( covmat_sx, "covmat_sx1.xml") > > right after the retrieval quantities definition, but before retrievalDefClose > (file attached) in TestOEM.arts, I get the message included below. > I have also tried considering a binary format instead of ascii and I get the > same error message. > > Is it possible to have a bug in the Write/Read methods? > > <Screen Shot 2020-01-14 at 9.02.03 PM.png> > > > Best regards, > Rita Kajtar > <TestOEM.arts>_______________________________________________ > arts_users.mi mailing list > arts_users.mi@lists.uni-hamburg.de > https://mailman.rrz.uni-hamburg.de/mailman/listinfo/arts_users.mi _______________________________________________ arts_users.mi mailing list arts_users.mi@lists.uni-hamburg.de https://mailman.rrz.uni-hamburg.de/mailman/listinfo/arts_users.mi