netcdf-c | Official GitHub repository for netCDF-C libraries

 by   Unidata C Version: v4.9.2 License: BSD-3-Clause

kandi X-RAY | netcdf-c Summary

kandi X-RAY | netcdf-c Summary

netcdf-c is a C library. netcdf-c has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

The Unidata network Common Data Form (netCDF) is an interface for scientific data access and a freely-distributed software library that provides an implementation of the interface. The netCDF library also defines a machine-independent format for representing scientific data. Together, the interface, library, and format support the creation, access, and sharing of scientific data. The current netCDF software provides C interfaces for applications and data. Separate software distributions available from Unidata provide Java, Fortran, Python, and C++ interfaces. They have been tested on various common platforms. NetCDF files are self-describing, network-transparent, directly accessible, and extendible. Self-describing means that a netCDF file includes information about the data it contains. Network-transparent means that a netCDF file is represented in a form that can be accessed by computers with different ways of storing integers, characters, and floating-point numbers. Direct-access means that a small subset of a large dataset may be accessed efficiently, without first reading through all the preceding data. Extendible means that data can be appended to a netCDF dataset without copying it or redefining its structure. NetCDF is useful for supporting access to diverse kinds of scientific data in heterogeneous networking environments and for writing application software that does not depend on application-specific formats. For information about a variety of analysis and display packages that have been developed to analyze and display data in netCDF form, see. For more information about netCDF, see.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              netcdf-c has a low active ecosystem.
              It has 440 star(s) with 236 fork(s). There are 45 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 256 open issues and 1113 have been closed. On average issues are closed in 263 days. There are 26 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of netcdf-c is v4.9.2

            kandi-Quality Quality

              netcdf-c has no bugs reported.

            kandi-Security Security

              netcdf-c has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              netcdf-c is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              netcdf-c releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of netcdf-c
            Get all kandi verified functions for this library.

            netcdf-c Key Features

            No Key Features are available at this moment for netcdf-c.

            netcdf-c Examples and Code Snippets

            No Code Snippets are available at this moment for netcdf-c.

            Community Discussions

            QUESTION

            Unresolved External Symbols When Using NetCDF (Installed via vcpkg) with CMake in a C++ Project on Visual Studio
            Asked 2020-Sep-29 at 22:48

            The question has been updated sinces its original posting. I have kept everything for context and information for people in the future, but the latest information and issues are at the bottom.

            I have found somewhat similar questions posted previously about related subjects, but none of them seemed to have a clear, concise resolution for what exactly I'm doing. I'm hoping that by asking this question, I can get an answer and there will also be a more clear answer available on the internet for future people with similar troubles.

            I am trying to create a simple example C++ code using NetCDF in Visual Studio 2019 with CMake as the build system. I installed NetCDF using vcpkg, specifically the command

            vcpkg install netcdf-cxx:x64-windows

            which installed all prerequisite packages and netcdf-cxx:x64-windows to C:\Program Files\vcpkg\packages.

            In the project itself, I have two main files: main.cpp and CMakeLists.txt. The directory structure is as follows:

            ...

            ANSWER

            Answered 2020-Sep-29 at 22:48

            Alright, I found a solution! It most certainly is not a perfect solution, but it is a solution.

            Unfortunately, I was not able to get it to work on Visual Studio with Windows. I will probably try again at some point, but I think the version of netCDF-cxx4 is out of date on vcpkg or something. I am currently away from my primary work station, so I will have to try again on there to see if I can get a solution in Visual Studio. Anyway, here's what I did that seemed to work:

            1. I downloaded Ubuntu 20.04.1 via the Windows Subsystem for Linux (WSL). I'm not sure if this will work for older or newer versions of Ubuntu, but I assume that it will. I also am using the Windows Terminal that they mention on that page and set up my colors with the vimrc example file found here.

            This changes how your file system works a bit by adding two layers above C:\, which are /mnt/. You can navigate to your files on Windows by going to /mnt/c/Users/ and to the Ubuntu subsystem by going to /. I named my Ubuntu account usr, so the 'desktop' Ubuntu files are kept in /home/usr. For all of the subsequent steps, I am using the Ubuntu terminal window in the Windows Terminal application.

            There was also an issue with installing zlib via vcpkg after enabling WSL, but I don't know how to resolve it nor have I found a solution anywhere.

            1. I downloaded a C++ compiler by running sudo apt install build-essential, and installed CMake and netCDF-C via sudo apt install cmake libnetcdf-dev.

            2. I installed netCDF-cxx4 by cloning their GitHub repository to my home directory /home/usr and using the commands

            Source https://stackoverflow.com/questions/63940803

            QUESTION

            Create CMake for NetCDF C++
            Asked 2020-Sep-19 at 02:20

            I am trying to create a CMake file for my project which uses NetCDF. I am very new at CMake (this is my first try), so I apologize if some of this stuff is evident.

            To install NetCDF I followed the steps in the git guide shown here

            I believe I did the steps correctly. I am trying to use the NetCDF C++ library, but I also had to install the C library for compilation purposes. I did this by using:

            ...

            ANSWER

            Answered 2020-Sep-18 at 16:44

            The netCDFCxxConfig.cmake file is what you want to use. From quickly looking at the GitHub repository, there is a template for this file (netCDFCxxConfig.cmake.in), but not one for netCDFConfig.cmake.in. Therefore, my conclusion is the maintainers probably changed the config file name at some point, and forgot to update their README documentation to netCDFCxxConfig.cmake.

            You can add the location of the netCDFCxxConfig.cmake file to the CMAKE_PREFIX_PATH list variable in your CMake file. Then, link to the imported target netCDF::netcdf defined in the netCDFCxxConfig.cmake file.

            Source https://stackoverflow.com/questions/63958643

            QUESTION

            Conan create package with dependencies
            Asked 2020-Mar-27 at 19:00

            I'm trying to build a conan package for netcdf-c. NetCDF requires zlib and hdf5 as dependencies, both of them are available through the conan center.

            I added them as requirements to my conanfile.py. When running conan create . testing/build to create the conan package from my conanfile.py CMake is not able to build netcdf-c. The output of conan create shows me that zlib and hdf5 are installed, but can't be found. When compiling netcdf-c with cmake I have to set configure it like this: CPPFLAGS="-I${H5DIR}/include -I${ZDIR}/include" LDFLAGS="-L${H5DIR}/lib -L${ZDIR}/lib" --prefix=${NCDIR} --disable-dap. How can I set these flags inside my conanfile.py ?

            conanfile.py:

            ...

            ANSWER

            Answered 2020-Mar-27 at 19:00

            Indeed your requirements are installed, but CMake doesn't know about it. Conan won't do it automatically, thus, you need to add the generator conan_find_package in your list, which will provide the Findxxx.cmake files for your build:

            Source https://stackoverflow.com/questions/60888435

            QUESTION

            How do I get CMake to find my test in my C library project?
            Asked 2019-Nov-11 at 12:50

            I have a project here: https://github.com/edhartnett/ncglm

            It is a small C library for reading netCDF data files from the Geostationary Lightning Mapper. I have an autotools build which works fine, and I'm trying to add a CMake build.

            The directory structure is simple, there is a main directory, a src directory, and a test directory.

            In the main directory I have:

            ...

            ANSWER

            Answered 2019-Nov-11 at 12:50

            add_subdirectory(src test)

            This is invalid / it doesn't do what you think it does. What you want to do is:

            Source https://stackoverflow.com/questions/58800721

            QUESTION

            Writing xarray list-type attributes to netCDF
            Asked 2018-Apr-23 at 17:28

            I wish to have a list of strings as an attribute in an xarray Dataset that survives serialization to netCDF. I believe this is possible with the NC_STRING type in netCDF-4. xarray supports this but I can't get it to persist after writing to and reading from a netCDF file. After the roundtrip, the attr comes back with the list elements concatenated. I'm thinking I might have to set an encoding parameter, and although I know how to do this for variables, I don't know how for attributes.

            ...

            ANSWER

            Answered 2018-Apr-23 at 17:28

            Encoding lists of strings as attributes has been implemented in xarray and should be in the next release (0.10.4).

            Source https://stackoverflow.com/questions/49581072

            QUESTION

            R- plotting 2.5 grid netcdf data with country contour
            Asked 2018-Jan-12 at 05:23

            I'm trying to plot precipitation data which has a 2.5 x 2.5 grid with the country contour on top, the data is available in this link: https://www.esrl.noaa.gov/psd/data/gridded/data.cmap.html "Mean (Enhanced Monthly)"

            I was using the answer from: R - Plotting netcdf climate data. However I get an error.

            This is what I have done:

            ...

            ANSWER

            Answered 2018-Jan-11 at 04:34

            There's several things that need to be fixed:

            1) ano does not seem to be defined anywhere. Perhaps it was defined interactively?

            Source https://stackoverflow.com/questions/48199431

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install netcdf-c

            To install the netCDF-C software, please see the file INSTALL in the netCDF-C distribution, or the (usually more up-to-date) document:.
            Building NetCDF

            Support

            A language-independent User's Guide for netCDF, and some other language-specific user-level documents are available from:. A mailing list, netcdfgroup@unidata.ucar.edu, exists for discussion of the netCDF interface and announcements about netCDF bugs, fixes, and enhancements. For information about how to subscribe, see the URL.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link