Convert AMPX binary files to ASCII files

72 views
Skip to first unread message

Jeongwon Seo

unread,
Jun 26, 2020, 5:40:01 PM6/26/20
to SCALE Users Group
Hello, guys.

These days, I have been trying to read and write AMPX binary files.
But I haven't found a way to do it.

I am trying to use Exsite, Visual Studio, and so on,
but none of them gives a clear answer.

Could you advise on this? 
I have been stuck here for a while... 

Rob Lefebvre

unread,
Jun 26, 2020, 7:51:13 PM6/26/20
to SCALE Users Group
Hi Jeongwon Seo,
I think the easiest route would be to create your own utility that would compile and link against the AmpxLoader API. After this, you can write the data to an ASCII format of your preference.

This is 'simple' if you 1) have the SCALE source code, and 2) are proficient with wrestling Windows compilers. I am assuming you are on Windows considering you mentioned Visual Studio. 

Are you on Windows? 

Is JSON an acceptable ASCI format? What is the application/language into which you are incorporating the data?

Best regards,
Rob Lefebvre
SCALE Code System

Jeongwon Seo

unread,
Jun 27, 2020, 3:02:26 PM6/27/20
to scale-us...@googlegroups.com
Thank you for your reply.

First, I have installed SCALE on Windows and Linux and the source codes of it.

So I am trying both OS to find the way.
Either way would be fine. 

I am not very familiar with JSON things. 
If I need it, please give me some advice. 

Thank you,
Jeongwon

Rob Lefebvre

unread,
Jun 27, 2020, 3:24:58 PM6/27/20
to SCALE Users Group
Hi Jeongwon,
Do you have the source to compile? 

Also, how are you incorporating the data? Is it via a python script, or something else (Fortran or C++)? 

Jeongwon Seo

unread,
Jun 27, 2020, 3:38:07 PM6/27/20
to SCALE Users Group
Yes, I can compile SCALE on Linux environment.

I prefer to use a python script.
Once I have data libraries in ASCII format, I can handle it.

Thanks,

Jeongwon Seo

unread,
Jun 29, 2020, 10:56:56 AM6/29/20
to SCALE Users Group
Hi, Rob.

So, do you suggest writing a code referring to the code AmpxLoader.h? 

I am not familiar with C++ language much. 

Could you give me some details?

Thanks!
Reply all
Reply to author
Forward
0 new messages