GithubHelp home page GithubHelp logo

swiftnetcdf's People

Contributors

fred-sch avatar patrick-zippenfenig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

swiftnetcdf's Issues

How to set attribute value of NC_CHAR type

Thanks for creating such a wonderful library! but I encountered some problems when setting global / variable attribute values.
If I use
file.setAttribute("TITLE", "My data set")
the value My data set will be NC_STRING type.
How can I do to make My data set to be NC_CHAR type? Thanks.

Possible memory leak when opening a netCDF-4 file

When running:

import Foundation
import SwiftNetCDF

setenv("HDF5_USE_FILE_LOCKING", "FALSE", 1)
while true {
    if let file = try NetCDF.open(path: "/home/plane/Downloads/test_echam_spectral-deflated.nc", allowUpdate: false) {
    }
}

the memory consumption keeps growing. In this case it hit 346 MiB after 10 minutes, when I shut it down.

Note

I tested this with GOTEX.C130-example.nc , smith_sandwell_topo_v8_2.nc, sresa1b_ncar_ccsm3-example.nc, test_echam_spectral-deflated.nc and test_echam_spectral.nc from https://www.unidata.ucar.edu/software/netcdf/examples/files.html and only test_echam_spectral-deflated.nc showed this behaviour.

Symbol issue in release mode

Hi, thanks for providing this great library.
I've installed netCDF via brew and if the compile target is "debug" things work fine but not in case of "release". Then I receive 40 undefined symbol errors (issues with the c library).
Does someone experienced the same issue and knows how solve it?

Many thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.