Can I adapt asam cdfx write() settings?

9 visualizaciones (últimos 30 días)
Kristóf Levente
Kristóf Levente el 15 de Sept. de 2025
Respondida: Aditya el 29 de Sept. de 2025 a las 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 comentario
Kristóf Levente
Kristóf Levente el 15 de Sept. de 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.

Iniciar sesión para comentar.

Respuestas (1)

Aditya
Aditya el 29 de Sept. de 2025 a las 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

Categorías

Más información sobre Weather and Atmospheric Science en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by