Project

General

Profile

netcdf4 support under Windows 7 32-bit

Added by Beate K over 8 years ago

Hi,

I'm processing NCEP/NCAR reanalysis data via python script for further use in ArcGIS on a Windows 7 32-bit machine. So in the past I've copied the files from cdo-1.6.4-win32.zip to my system32 and installed the python packages "setuptools" and "cdo" from https://pypi.python.org/pypi/ to use cdo within python. Unfortunately the data format of NCEP/NCAR has been changed from netCDF3 to netCDF4-classic data format (http://www.esrl.noaa.gov/psd/data/gridded/netcdf4.html).

If I understand everything right, I have to install libs4cdo to get access to netcdf4 under Windows.
After looking around in the forum a bit I've installed cygwin with all packages containing the following strings:
- make
- gcc
- ssl
- ssh
- curl
- zlib
- hdf5
- netcdf
- doxygen
- h5
After this I've tried to install libs4cdo, but it's always aborting with errors. I've attached a log file from the installation process.
I've also seen the cdo-1.6.9-cygwin64-static-hdf5-1.8.14.zip version, but I have no idea how to install it (just copying to system32 does not work?!). I've also tested this on a Windows 7 64-bit machine without success.

Anyone who can help me with this, especially the right order of installation steps?
Thanks in advance,
Beate


Replies (5)

RE: netcdf4 support under Windows 7 32-bit - Added by Ralf Mueller over 8 years ago

Hi Beate!
From what I saw in your logfile, I guess, you're working under cygwin. Installation of netcdf/hdf5/... via libs4cdo is not needed for cygwin (I should add this to the cygwin/windows wiki page.)!

If you want to compile cdo, you can install netcdf from the cygwin package repository (its setup.exe) or you use the exe file from cdo-1.6.9-cygwin64-static-hdf5-1.8.14.zip. Just put is some where like /usr/local/bin or /usr/bin, basically anywhere, where you shell can find it. I built it with static linking to most of the libraries, so there should by nothing extra needed for running.

hth
ralf

RE: netcdf4 support under Windows 7 32-bit - Added by Beate K over 8 years ago

Hi Ralf,

thanks for your help! I've decided to convert the NCEP/NCAR files from NetCDF4-classic format to NetCDF3 via cygwin and to continue using my old python script with these files...

Regards,
Beate

RE: netcdf4 support under Windows 7 32-bit - Added by Ralf Mueller over 8 years ago

If you work with cygwin anyway, you could use the prebuilt binary or built it yourself. You'll get support for all formats out of the box. the netcdf3-limitation is win32-only

hth
ralf

RE: netcdf4 support under Windows 7 32-bit - Added by Beate K over 8 years ago

I've got a python script with 600 lines of code to create ArcGIS shapefiles and maps out of the NCEP/NCAR netcdf3 data and as I'm not really familiar with how to make my old script run under cygwin, file conversion was the easiest way to continue using my old script without any further adaptions. But my first approach was to realize the processing of netcdf4 files via python-cdo package, but I didn't really know how to make it run and this was the reason for my first posting. As I'm mainly GIS specialist and this is the only task I have to use netcdf data, cdo and cygwin for, I'm now really happy with my quick & dirty solution ;-).

Best regards,
Beate

RE: netcdf4 support under Windows 7 32-bit - Added by Ralf Mueller over 8 years ago

happiness of course rules ;)

    (1-5/5)