From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.236.90.67 with SMTP id d43mr6990156yhf.36.1381997944390; Thu, 17 Oct 2013 01:19:04 -0700 (PDT) X-Received: by 10.49.82.69 with SMTP id g5mr2239qey.24.1381997944374; Thu, 17 Oct 2013 01:19:04 -0700 (PDT) Path: border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.ewetel.de!newsfeed.kamp.net!newsfeed.kamp.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!i2no16961048qav.0!news-out.google.com!9ni45434qaf.0!nntp.google.com!i2no16961041qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 17 Oct 2013 01:19:04 -0700 (PDT) In-Reply-To: <75105857-fe2f-4437-9214-f8a154432a1a@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=159.149.44.166; posting-account=uPViEgkAAACC04vaTYL5Kyk76brV1MA_ NNTP-Posting-Host: 159.149.44.166 References: <75105857-fe2f-4437-9214-f8a154432a1a@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2eea5fbf-e0ae-4067-9459-0a5e21e22d63@googlegroups.com> Subject: Re: Ada library to read/write matlab files? From: Maurizio Tomasi Injection-Date: Thu, 17 Oct 2013 08:19:04 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 2507 X-Original-Bytes: 2897 Xref: number.nntp.dca.giganews.com comp.lang.ada:183647 Date: 2013-10-17T01:19:04-07:00 List-Id: On Wednesday, October 16, 2013 5:33:16 PM UTC+2, mockturtle wrote: > Are you aware of an available library to read/write matlab (binary) files? I tried googling around a bit (just a bit) without finding anything. > > As an alternative, something to read/write HDF or CDF (not netCDF since it requires a specific matlab package [if I remember correctly...]). > > I would like something "independent", that is, interfacing with other libraries (e.g., matlab API) is something I would rather avoid. I am not a Matlab user, but I know it can handle FITS files. So you might want to give a try to my library AdaFITS: https://github.com/ziotom78/adafits However, I am not sure it will fit your needs, as it has the following caveats: 1. It requires CFITSIO to be installed, so it is not "independent". However, CFITSIO is available in binary form for a variety of platforms. 2. It only reads ASCII/binary tables, there is no support (yet) for reading/writing images. 3. It requires an Ada2012 compiler (but I think should be trivial to make it work with an Ada2005 compiler, and it is definitively something I'll eventually fix). Maurizio. P.S. I too am interested in HDF5 bindings for Ada. I have already generated thin bindings using the gcc's trick suggested by Per Sandberg, but I surely will put some more work in them in order to make them easier to use.