Skip to content

Installing NetCDF Python Packages

I was trying to remember how I have installed netCDF4 and related libraries for Python, and what I need to do differently for Windows systems vs. the Linux systems I usually use. On Linux, sometimes I use the system netCDF C libaries, but often I compile and install specific versions of HDF5 and netCDF4 from scratch. Here is how I have built netCDF for various Docker container images. # Build HDF5 cd hdf5-x.y.x ./configure --prefix=/usr/local --enable-shared --enable-hl make make install cd .. # Built NetCDF4 cd netcdf-x.y.z LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure --enable-netcdf-4 --enable-dap --enable-shared --prefix=/usr/local --disable-doxygen make make install cd .. # NetCDF4 Fortran cd netcdf-fortran-x.y.z ./configure --enable-shared --prefix=/usr/local make make install cd .. netcdf4-python I typically try to use pip to install Python libraries if I can. Use pip if you need to, but I am using conda and conda-forge as much as possible now, in fact by using conda, the above compilation steps are usually not necessary as far as I know. See below.

Read more →

March 17, 2018

Using the Blockchain for Open-access Journals?

One thing that excites me about the current buzz around blockchain technology is its use for open science. I can’t speak to the feasibility, but it seems to me that a distributed ledger could be an ideal place to publish and provide open-access to scientific research papers and articles. If including a way to store, deliver and update supporting data, a blockchain could deliver research products that link directly to the data and analysis–providing an unparalleled level of provenance and context for research and results. Citations and work building on similar pieces of data could be connected allowing for straighforward literature searches and discovery.

Read more →

March 10, 2018

sci-wms

python web map service for netcdf/thredds met-ocean data

Read more →

January 1, 2012

ugrid

standard conventions, encoding and tools for unstructured meshes

Read more →

January 1, 2012

Overlooked Tools: 'at'

If you find you are using commands like sleep to run a one-off task at a specific time, then meet the GNU at command. at will allow you to specify a time to run a specific command, and accepts a wide range of different formats including “now + 4 hours”, “noon”, and “next tuesday”. The command will read commands from stdin or using the -f to specifiy a file to be executed using the default /bin/sh.

Read more →