I am sending a tiny version (so it can be sent as an attachment) of the file in which I experienced the problem. I have experienced it on other files as well.
e2proc3d.py :32:32:32:0 SmallDisk.hdf --apix=6.74 --process=testimage.disc:height=7:major=4:minor=4
^The above was used to create the file SmallDisc with apix of 6.74. Reading its header (header SmallDisk.hdf) gives the right info about the size etc, but the apix is 1.0 I then further converted SmallDisk into SmallDisk_A.hdf with apix of 6.74
e2proc3d.py SmallDisk SmallDisk_A.hdf --apix=6.74 .Same issue as above. The header gives the pixel size of 1.
But when I use e2iminfo.py -H SmallDisk.hdf, I get the right pixel value. So in the EMAN2 system, the file should behave well. But the problem is that reading/processing this file in other systems (like Chimera) which are sometimes convenient and required, uses its pixel value of 1 for displaying the structure which distorts/scales it compared to other relevant structures. Therefore, I have to convert hdf to mrc (using e2proc3d.py) and then use IMOD's alterheader to change the pixel size in mrc (alterheader does not work in hdf) and then change back the mrc to hdf. After which, the header YY.hdf reads the right pixel value and opens accordingly in Chimera. For some other .hdf files, --apix works and even their header YY.hdf reads the pixel value specified in --apix.
Thanks & cheers,