0

彼ら。VAX FORTRAN コードで保存された科学データム ファイルを読み込もうとしています。データは構造体に保存され、そのファイルとコードの説明は次のとおりです。FORTRAN 77 がファイルを読み取る可能性があることをググりましたが、頻繁に使用する言語は FORTRAN ではありません。データを FORTRAN や C/IDL などに読み込む方法を教えてください。変数?たとえば、構造体の N 単位がファイル "pxm.mos" に格納されています。データを変数に読み込むにはどうすればよいですか? どうもありがとう!ここに説明があります。

c     FILE name is "pxm.mos"
c     FILE AND RECORD STRUCTURE 
c       The files were created with form='unformatted', organization='sequential', 
c       access='sequential', recordtype='fixed', recordsize=512. 
c       The following VAX FORTRAN code specifies the record structure: 

            structure /PXMstruc/ 
              union 
                map 
                  integer*4 buffer(512) 
                end map 
                map 
                  integer*4 mod16           
                  integer*4 mod60          
                  integer*4 line            
                  integer*4 sct
                  integer*4 mfdsc          
                  integer*4 spare(3) 
                  real*4    datamin        
                  real*4    datamax        
                  real*4    data(0:427)   
                end map 
              end union 
            end structure 

            record /PXMstruc/ in 
4

1 に答える 1