NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
NetCDF folks, a Thanks to Christoph Gohlke, we have a native port of NetCDF fortran 4.2-beta3 on Windows. http://www.lfd.uci.edu/~gohlke/netcdf-4.1.3-win-dev.zip I tried building the sample F77 simple_xy_rd.f http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-tutorial/simple_005fxy_005frd_002ef.html program, modified to open an OPeNDAP dataset instead of a local netCDF file. It worked great! I haven't got the F90 build quite figured out yet, but hopefully someone else can figure out the last step. My "build32.bat" file looks like this: rem Build sample F77 and F90 programs that read OPeNDAP with IFORT on Windows rem This uses Chrisoph Gohlke's NetCDF 4.1.3 built with Intel Fortran 11.1 at rem <http://www.lfd.uci.edu/~gohlke/netcdf-4.1.3-win-dev.zip> rem Specify where you unzipped the above distribution: set NETCDF=c:\rps\netcdf-4.1.3-win-dev rem Set PATH to ensure the netcdf 4.1.3 "netcdf.dll" is found (in the x32 or x64 directory) set PATH=%NETCDF%\bin\x32;%PATH% rem Set LIBDIR to the correct "netcdf.lib" (x32 or x64) set LIBDIR=%NETCDF%\lib\x32 rem Sample F77 program ifort /exe:simple_xy_rd_dap.exe /fpp /names:lowercase /assume:underscore /libs:dll /threads /nologo simple_xy_rd_dap.f /link /libpath:"%LIBDIR%" netcdf.lib rem Sample F90 program rem build typeSizes.mod and netcdf.mod ifort /c /fpp /names:lowercase /assume:underscore /threads /libs:dll %NETCDF%\netcdf-4.1.3-curl-fortran\f90\typeSizes.f90 ifort /c /fpp /names:lowercase /assume:underscore /threads /libs:dll %NETCDF%\netcdf-4.1.3-curl-fortran\f90\netcdf.f90 ifort /exe:simple_xy_rd_dap_f90.exe /fpp /names:lowercase /assume:underscore /libs:dll /threads /nologo simple_xy_rd_dap_f90.f90 /link /libpath:"%LIBDIR%" netcdf.lib -- Dr. Richard P. Signell (508) 457-2229 USGS, 384 Woods Hole Rd. Woods Hole, MA 02543-1598
netcdfgroup
archives: