Re: netcdf for nim

2019-10-25 Thread mikebelanger
@Vindaar sorry my mistake! I made the assumption that grib2 was a kind of HDF5 format. But the more I read into it - it looks like grib2 is a totally different beast. As to why I'm doing this - I'm always looking for more performant ways of reading grib2s. They can get big, and many existing

Re: netcdf for nim

2019-10-22 Thread mratsim
When (TM) I add Keras model loading support to Arraymancer, I will need the HDF5 files reading/writing for sure.

Re: netcdf for nim

2019-10-20 Thread mikebelanger
It looks like Netcdf4 is based on HDF5 ([https://en.wikipedia.org/wiki/Hierarchical_Data_Format)](https://en.wikipedia.org/wiki/Hierarchical_Data_Format\)). But it doesn't look like grib2 is based on HDF5. Although their usage cases are the same. That said, if you think the HDF5 library could

Re: netcdf for nim

2019-10-19 Thread Vindaar
Up to right now I didn't even know of grib2 files. I need to read up on what kind of file format that is first. I suppose it's based on HDF5 files, too? If it is, I should think we should be able to make it work. Regarding other nimhdf5 users: I'd love to be corrected, but as far as I'm aware

Re: netcdf for nim

2019-10-19 Thread mikebelanger
Actually in doing some more research - I found that GDAL ( [https://gdal.org](https://gdal.org)/ ) opens grib2s, and some kind of netcdf formats. Not sure if its the specific version you're looking for. Looks like somebody has already started writing headers for gdal in nim, too:

Re: netcdf for nim

2019-10-19 Thread mikebelanger
I'd like to bump this just because I'm also interested in working with kind of thing. In my case, I'm interested in opening .grib2 files. I know the netcdf4 python wrapper can do it - but if I could work in nim, that'd be sweet :) I looked at the examples section in the HDF5 repo that Vindaar

Re: netcdf for nim

2019-08-26 Thread Vindaar
Hey! As far as I'm aware there are no bindings to the NetCDF library so far. I personally don't have any experience working with NetCDF. However, I'm aware that since NetCDF4, it's actually just based on HDF5. So depending on your use cases it _might_ be possible to use

netcdf for nim

2019-08-26 Thread Nobody
Hi everyone, I am currently taking up MS Meteorology and I want to use nim for my thesis. I need a netcdf library but I don't know how to interface existing netcdf libraries written in other languages (I am not a programmer). Could anyone write a netcdf library for nim? Thanks in advance.