After adding possability to save the baselines with the fit functions into a pycdf file, we use the pycdf in a script to generate the .BLV file. However the fit that is included
is not used and you always get
Reading PYCDF with CDFLIB
Found special header content !!!!!!!!!!!!!!!! -- version 1.2
-> functions loaded
writeBLV: no baseline function(s) specified - using default values
After adding possability to save the baselines with the fit functions into a pycdf file, we use the pycdf in a script to generate the .BLV file. However the fit that is included is not used and you always get
the script written is straighforward
I went through the code and found out that the fit objects are in the header under DataFunctionObject. So I quickly changed the method
https://github.com/geomagpy/magpy/blob/6a560b1cf7b9a0a76604250cbdb3ccf3aa2595a9/magpy/lib/format_imf.py#L2188
I just added in the beginning
and on line 2304 # get functionlist I changed
This is probably not the best way to do it but I managed to generate a correct BLV and it can help to better understand the problem