Can I adapt asam cdfx write() settings?

9 visualizzazioni (ultimi 30 giorni)
Kristóf Levente
Kristóf Levente il 15 Set 2025
Risposto: Aditya il 29 Set 2025 alle 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 Commento
Kristóf Levente
Kristóf Levente il 15 Set 2025
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.

Accedi per commentare.

Risposte (1)

Aditya
Aditya il 29 Set 2025 alle 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

Categorie

Scopri di più su Weather and Atmospheric Science in Help Center e File Exchange

Tag

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by