netcdf

netcdf vs. hdf5?

Anyone out there have enough experience w/ NetCDF and HDF5 to give some pluses / minuses about them as a way of storing scientific data? I've used HDF5 and would like to read/write via Java but the interface is essentially a wrapper around the C libraries, which I have found confusing, so NetCDF seems intriguing but I know almost nothi...

Multidimensional list(array) reassignment problem

Good day coders and codereses, I am writing a piece of code that goes through a pile of statistical data and returns what I ask from it. To complete its task the method reads from one multidimensional array and writes into another one. The piece of code giving me problems is: writer.variables[variable][:, :, :, :] = reader.variables[va...

NetCdf: how to obtain min and max for variable

NetCdf: For a grid you can obtain the minimum and maximum value for data in the following way: MAMath.MinMax dataMinMax = grid.getMinMaxSkipMissingData( data); float min = (float) (dataMinMax.min); float max = (float) (dataMinMax.max); but what if you just have a ucar.nc2.Variable. Can you also obtain this kind of information? Kind reg...

Problem linlking netcdf.lib on windows PGI Visual Fortran...

I am using PGI Visual Fortran in (Windows OS) to build a project/solution consisting of a fortran (f90) library and an executable. The f90 library links to the netcdf.lib. The f90 compiles and builds OK, but when I try to link it to the executable I get the following errors: Compiling Project ... Linking... error LNK2019: unresolve...

how I can find out, which compiler I have used

I have installed NetCDF "binary-netcdf-4.0.1_gfortran_gfortran_c++.tar ". But I am not sure about the gfortran compiler I have used. How can I find the compiler I have used? ...

Extending a series of nonuniform netcdf data in a numpy array

Hello, I am new to python, apologies if this has been asked already. Using python and numpy, I am trying to gather data across many netcdf files into a single array by iteratively calling append(). Naively, I am trying to do something like this: from numpy import * from pupynere import netcdf_file x = array([]) y = [...some list of ...

C - Discard the edges of an arbitrary level of a multidimensional array

I have some geographical data, that I'm trying to parse into a usable format. The data is kept in NetCDF files, and is read out as a multidimensional array. My problem comes because the source of the geographical data has a strip of longitude on each side of the grid that overlaps the other side. That is, I have a longitude point of -1 d...

weird range value in the colorbar, matplotlib

Hey guys, I am a new user to the python & matplotlib, this might be a simple question but I searched the internet for hours and couldn't find a solution for this. I am plotting precipitation data from which is in the NetCDF format. What I find weird is that, the data doesn't have any negative values in it.(I checked that many times,ju...

Dynamic Contiguous 3D arrays in C

I'm trying to implement dynamically allocated contiguous 3D arrays in a C code. The arrays must be contiguous because I'm relying on netCDF output of the arrays. Now I adapted a solution posted here Stack OverFlow Solution. This works fine for dynamically allocating the arrays and indexing them...however, when netCDF outputs them ther...