2012-03-15 07:26:48 +08:00
|
|
|
PARMS=""; ARGS=""; CON="" ; CE=""; OCON="" ; VAR=""
|
2012-08-01 04:34:13 +08:00
|
|
|
alias q0=;alias qq=;alias qv=;alias q=;alias qh=;alias qqh=;alias qall=;alias qv=;alias qo=;
|
|
|
|
|
2012-09-07 03:44:03 +08:00
|
|
|
TOP="/home/dmh/mach/trunk"
|
2012-08-16 01:55:25 +08:00
|
|
|
#TOP="/cygdrive/f/svn/trunk"
|
2012-09-07 03:44:03 +08:00
|
|
|
#TOP="/cygdrive/c/Users/dmh/svn/trunk"
|
2012-08-01 04:34:13 +08:00
|
|
|
|
2012-08-22 00:46:10 +08:00
|
|
|
#PROG=./ncd
|
|
|
|
PROG="$TOP/ncdump/ncdump"
|
2012-08-01 04:34:13 +08:00
|
|
|
|
|
|
|
P=`pwd`
|
|
|
|
|
2012-09-07 03:44:03 +08:00
|
|
|
#T="1990-S1700101.HDF.WVC_Lat"
|
|
|
|
T="synth1"
|
2012-08-01 04:34:13 +08:00
|
|
|
|
|
|
|
F="file://$TOP/ncdap_test/testdata3/$T"
|
2012-08-22 00:46:10 +08:00
|
|
|
#F="http://motherlode.ucar.edu:8081/dts/$T?f64"
|
2012-08-09 07:15:18 +08:00
|
|
|
#F="http://motherlode.ucar.edu:8080/thredds/dodsC/testdods/coads_climatology.nc"
|
2012-08-03 02:43:21 +08:00
|
|
|
#F="http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd20120801/gfs_hd_00z"
|
2012-08-16 01:55:25 +08:00
|
|
|
#F="http://hycom.coaps.fsu.edu/thredds/dodsC/atl_ops"
|
2012-08-18 04:51:03 +08:00
|
|
|
|
2012-08-10 00:57:35 +08:00
|
|
|
|
2012-08-22 00:46:10 +08:00
|
|
|
VAR=f64
|
2012-08-01 04:34:13 +08:00
|
|
|
|
2012-08-22 00:46:10 +08:00
|
|
|
PARMS="[log]"
|
2012-01-30 02:56:29 +08:00
|
|
|
#PARMS="${PARMS}[netcdf3]"
|
2012-08-09 07:15:18 +08:00
|
|
|
#PARMS="${PARMS}[fetch=disk]"
|
2012-08-22 00:46:10 +08:00
|
|
|
PARMS="${PARMS}[cache]"
|
2012-08-10 00:57:35 +08:00
|
|
|
#PARMS="${PARMS}[prefetch]"
|
2012-01-30 02:56:29 +08:00
|
|
|
#PARMS="${PARMS}[nocache]"
|
|
|
|
#PARMS="${PARMS}[noprefetch]"
|
2012-03-15 07:26:48 +08:00
|
|
|
#PARMS="${PARMS}[wholevar]"
|
2012-04-09 06:47:38 +08:00
|
|
|
#PARMS="${PARMS}[show=fetch]"
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2012-08-01 04:34:13 +08:00
|
|
|
# Pick in order
|
|
|
|
if test "x$PROG" = x ; then
|
|
|
|
for f in ../ncdump/.libs/lt-ncdump ../ncdump/.libs/ncdump ../ncdump/ncdump ./ncd ; do
|
|
|
|
if test -f $f ; then
|
|
|
|
PROG="$f"
|
|
|
|
break;
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
if test "x$PROG" = x ; then
|
|
|
|
echo "cannot locate ncdump; defaulting"
|
|
|
|
PROG="../ncdump/ncdump"
|
|
|
|
fi
|
2011-09-22 03:17:57 +08:00
|
|
|
|
2011-09-17 02:36:08 +08:00
|
|
|
U="${PARMS}$F"
|
|
|
|
if test "x$CON" != "x" ; then U="${PARMS}$F?$CON"; fi
|
|
|
|
UALL="${PARMS}$F"
|
|
|
|
#ARGS="-h $ARGS"
|
|
|
|
#ARGS="-w $ARGS"
|
|
|
|
#ARGS="-c $ARGS"
|
2012-03-09 06:21:12 +08:00
|
|
|
|
2011-09-17 02:36:08 +08:00
|
|
|
VARGS="--leak-check=full"
|
2012-08-01 04:34:13 +08:00
|
|
|
|
2011-09-17 02:36:08 +08:00
|
|
|
alias qq="gdb --args $PROG $ARGS '$U'"
|
|
|
|
alias qv="valgrind $VARGS PROG $ARGS '$U'"
|
|
|
|
alias q0="$PROG $ARGS '$U'"
|
|
|
|
alias qh="$PROG -h $ARGS '$U'"
|
2012-08-10 00:57:35 +08:00
|
|
|
alias qk="$PROG -k $ARGS '$U'"
|
2012-08-03 02:43:21 +08:00
|
|
|
alias qvar="$PROG -v $VAR $ARGS '$U'"
|
2011-09-17 02:36:08 +08:00
|
|
|
alias qqh="gdb --args $PROG -h $ARGS '$U'"
|
|
|
|
alias qall="$PROG -h $ARGS '${UALL}'"
|
|
|
|
alias qv="valgrind $VARGS $PROG $ARGS '$U'"
|
2012-01-30 12:32:12 +08:00
|
|
|
if test "x$CON" = "x" ; then
|
2012-01-30 02:56:29 +08:00
|
|
|
alias qo="~/svn/oc/octest -p dds -p datadds -DN -DX1 $F"
|
2012-01-30 12:32:12 +08:00
|
|
|
else
|
|
|
|
alias qo="~/svn/oc/octest -p dds -p datadds -DN -DX1 -C $CON $F"
|
|
|
|
fi
|
2011-09-16 00:57:16 +08:00
|
|
|
|
2011-05-25 05:48:44 +08:00
|
|
|
if test 1 = 0; then
|
2011-09-16 00:57:16 +08:00
|
|
|
F="http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd20110908/gfs_hd_00z"
|
2011-09-17 02:36:08 +08:00
|
|
|
CON="absvprs[0:10][6:6][0:10][0:10]"
|
2011-09-16 00:57:16 +08:00
|
|
|
CON="absvprs[0:1:64][6:1:6][0:1:360][0:1:719]"
|
|
|
|
F="http://ferret.pmel.noaa.gov/geoide/dodsC/ct_flux"
|
2011-05-28 02:57:35 +08:00
|
|
|
F="http://motherlode.ucar.edu:9080/thredds/dodsC/fmrc/NCEP/GFS/Alaska_191km/NCEP-GFS-Alaska_191km_fmrc.ncx"
|
2011-05-25 05:48:44 +08:00
|
|
|
F="file:///home/dmh/nc/oc/dataset-duacs-nrt-over30d-global-merged-madt-h"
|
|
|
|
F="http://oceanwatch.pfeg.noaa.gov/opendap/GLOBEC/GLOBEC_cetaceans"
|
|
|
|
CON="number&number>6"
|
|
|
|
F="http://dapper.pmel.noaa.gov/dapper/argo/argo_all.cdp"
|
|
|
|
#CON="&location.LATITUDE<1&location.LATITUDE>-1"
|
|
|
|
F="http://test.opendap.org:8080/dods/dts/test.03"
|
|
|
|
#CON="s0,s1"
|
|
|
|
F="http://oceanwatch.pfeg.noaa.gov/opendap/GLOBEC/GLOBEC_cetaceans"
|
|
|
|
CON="lat,lon&lat>42.0&lat<=42.5"
|
|
|
|
CON="number&number>6"
|
|
|
|
F="http://motherlode.ucar.edu:8080/thredds/dodsC/testdods/in.nc"
|
|
|
|
F="http://ceda.ac.uk/dap/neodc/casix/seawifs_plankton/data/monthly/PSC_monthly_1998.nc"
|
|
|
|
F="http://test.opendap.org:8080/dods/dts/test.02"
|
|
|
|
F="http://test.opendap.org/opendap/data/nc/coads_climatology.nc"
|
2012-08-01 04:34:13 +08:00
|
|
|
F="file://${TOP}/ncdap_test/testdata3/test.PointFile"
|
|
|
|
F="file://${TOP}/ncdap_test/testdata3/synth1"
|
2011-05-25 05:48:44 +08:00
|
|
|
F="http://dods.ndbc.noaa.gov/thredds/dodsC/data/stdmet/46029/46029h9999.nc"
|
|
|
|
CON="wind_dir[1:10][0:0][0:0]"
|
2011-11-14 12:20:19 +08:00
|
|
|
F="http://nomads.ncep.noaa.gov:9090/dods/gens/gens20111011/gep20_00z"
|
|
|
|
CON="ens,time,lat,lon,prmslmsl[0:1:0][0:1:64][0:1:10][0:1:10]"
|
2012-03-15 07:26:48 +08:00
|
|
|
F="http://esrl.noaa.gov/psd/thredds/dodsC/Datasets/noaa.oisst.v2/sst.wkmean.1990-present.nc"
|
2012-01-30 02:56:29 +08:00
|
|
|
F="http://motherlode.ucar.edu:8080/thredds/dodsC/station/metar/Surface_METAR_20111122_0000.nc"
|
|
|
|
CON="weather[0:10]"
|
2012-03-15 07:26:48 +08:00
|
|
|
F="http://nomad1.ncep.noaa.gov:9090/dods/reanalyses/reanalysis-1/6hr/pgb/pgb"
|
|
|
|
VAR=hgtprs
|
2011-11-14 12:20:19 +08:00
|
|
|
fi
|
2012-02-14 08:25:32 +08:00
|
|
|
|
2012-08-01 04:34:13 +08:00
|
|
|
|