Can I adapt asam cdfx write() settings?

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 Comment

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.

Sign in to comment.

Answers (1)

Aditya
Aditya on 29 Sep 2025
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

Categories

Find more on Weather and Atmospheric Science in Help Center and File Exchange

Products

Release

R2022b

Tags

Asked:

on 15 Sep 2025

Answered:

on 29 Sep 2025

Community Treasure Hunt

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

Start Hunting!