Can I adapt asam cdfx write() settings?

조회 수: 9 (최근 30일)
Kristóf Levente
Kristóf Levente 2025년 9월 15일
답변: Aditya 2025년 9월 29일 4:29
Hello everyone,
I am trying to export an asam calibration using the Matlab built-in write() function.
The generated file can be re-read by matlab, but the tags include "cdfx:" and there are other dissimilarities when comparing with a file generated by another calibration generation product. I can also not read the generated cdfx file in other products, receiving an error "Unsupported cdf version; Check xsd/DTD declaration".
Is there a possibility to adapt the asam cdfx export settings somewhere in Matlab?
Thank you!
  댓글 수: 1
Kristóf Levente
Kristóf Levente 2025년 9월 15일
Matlab omits the DTD declaration when writing a cdfx file.
Removing the "cdfx:" strings from the tags and adding the DTD declaration by hand ensures readability by other products, albeit I need to access the cdfx file as a text to do that.

댓글을 달려면 로그인하십시오.

답변 (1개)

Aditya
Aditya 2025년 9월 29일 4:29
Hi Kristof,
MATLAB’s `write()` function for exporting ASAM CDFX files does not allow customization of XML namespaces or schema declarations, which can cause compatibility issues with other calibration tools expecting different formats. This is why you see tags like “cdfx:” and receive errors about unsupported CDF versions. Currently, there is no built-in way in MATLAB to change these export settings. As a workaround, you can use a script to edit the XML file and remove or modify the problematic parts, or use third-party tools to convert the file.
Thanks and Regards,
Aditya

카테고리

Help CenterFile Exchange에서 Weather and Atmospheric Science에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by