Changeset 7410


Ignore:
Timestamp:
01/09/10 15:49:50 (9 years ago)
Author:
pjkersha
Message:

Updated README with details for working ncopen.c with latest NetCDF snapshot.

Location:
TI12-security/trunk/NDGSecurity/C/openDapPatch
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/NDGSecurity/C/openDapPatch

    • Property svn:ignore
      •  

        old new  
        88netcdf-4-daily.tar.gz 
        99.dods_cookies 
         10netcdf-4.1.2-beta1-snapshot2010082920 
  • TI12-security/trunk/NDGSecurity/C/openDapPatch/Makefile

    r7325 r7410  
    11 
    22NETCDF_LIB=-lnetcdf 
    3 NETCDF_LIB_PATH=-L./netcdf-4.1.2-beta1-snapshot2010081520/liblib/.libs/ 
    4 NETCDF_INCLUDES=-I./netcdf-4.1.2-beta1-snapshot2010081520/include 
     3NETCDF_ROOT_PATH=./netcdf-4.1.2-beta1-snapshot2010082920 
     4NETCDF_LIB_PATH=-L${NETCDF_ROOT_PATH}/liblib/.libs 
     5NETCDF_INCLUDES=-I${NETCDF_ROOT_PATH}/include 
    56 
    67ncopen: ncopen.c 
     
    89         
    910clean: 
    10         rm -r ncopen 
     11        -rm -f ncopen 
  • TI12-security/trunk/NDGSecurity/C/openDapPatch/README

    r6876 r7410  
    1 This version of http for the netcdf/oc library allows settings 
    2 of security certificates using environment variables 
     1The ncopen test program demonstrates NetCDF OPeNDAP access with ESG based security.  Requests are authenticated 
     2with the server with SSL client authentication. 
    33 
    4 NetCDF version 4.1.1 used.  configure with curl to enable OPeNDAP functionality: 
     41) Get NetCDF 
    55 
    6 $ ./configure --with-curl-config=/usr/bin/curl-config 
     6$ wget ftp://ftp.unidata.ucar.edu/pub/netcdf/snapshot/netcdf-4-daily.tar.gz 
     7$ tar zxvf ./netcdf-4-daily.tar.gz 
     8 
     9This test program has been tried with NetCDF version netcdf-4.1.2-beta1-snapshot20100829202.   Configure with curl to 
     10enable OPeNDAP functionality: 
     11 
     12$ cd ./netcdf-4.1.2-beta1-snapshot20100829202 
     13$ ./configure --with-curl-config=/usr/bin/curl-config --enable-shared 
     14 
     15Then build the NetCDF libraries: 
     16 
     17$ make 
     18 
     192) Make the example program: 
     20 
     21$ cd .. 
     22$ make 
     23 
     243) Ensure that the NetCDF library can be picked up: 
     25 
     26$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./netcdf-4.1.2-beta1-snapshot20100829202/liblib/.libs 
     27 
     284) Get credentials e.g. 
     29 
     30$ myproxy-logon -b -s myproxy.myhomeinstitution.somewhere -o creds.pem 
    731 
    832The example will work with proxy or standard X.509 certificates. 
     33 
     345) Set .dodsrc file to pick up the credentials: 
     35 
     36$ vi ~/.dodsrc 
     37. 
     38. 
     39. 
     40CURL.VERBOSE=1 
     41CURL.COOKIEJAR=.dods_cookies 
     42CURL.SSL.VALIDATE=1 
     43CURL.SSL.CERTIFICATE=/.../creds.pem 
     44CURL.SSL.KEY=/.../creds.pem 
     45CURL.SSL.CAPATH=<HOME DIRECTORY>/.globus/certificates 
     46 
     476) Run the example program: 
     48 
     49$ ./ncopen <OPeNDAP URI> 
     50 
     51This should print out info about variables from the file. 
Note: See TracChangeset for help on using the changeset viewer.