Skip to content

Commit

Permalink
ckp
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisHeimbigner committed Mar 11, 2017
1 parent 98f5de4 commit 1aab755
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 18 deletions.
30 changes: 15 additions & 15 deletions libdap2/env
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ alias xx="cd ..;make; cd libdap2"
PARMS=""; ARGS=""; CON="" ; CE=""; OCON="" ; VAR=""; SHARP='#'
alias q0=;alias qq=;alias qv=;alias q=;alias qh=;alias qqh=;alias qall=;alias qv=;alias qo=;

F="http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.dailyavgs/pressure/air.1947.nc"
F='https://cida.usgs.gov/thredds/dodsC/new_gmo?longitude[0:1:461],latitude[0:1:221],time[0:1:22644]'

if test -e "/cygdrive/f/git/netcdf-c" ; then
TOP="/cygdrive/f/git/netcdf-c"
elif test -e "/cygdrive/d/git/netcdf-c" ; then
if test -e "/cygdrive/d/git/netcdf-c" ; then
TOP="/cygdrive/d/git/netcdf-c"
elif test -e "/cygdrive/f/git/netcdf-c" ; then
TOP="/cygdrive/f/git/netcdf-c"
elif test -e "/home/dmh/git/netcdf-c" ; then
TOP="/home/dmh/git/netcdf-c"
else
Expand All @@ -25,15 +25,15 @@ fi
P=`pwd`

PARMS="log"
#PARMS="${PARMS}&netcdf3"
#PARMS="${PARMS}&fetch=disk"
#PARMS="${PARMS}&cache"
#PARMS="${PARMS}&nocache"
#PARMS="${PARMS}&wholevar"
PARMS="${PARMS}&show=fetch"
#PARMS="${PARMS}&noprefetch"
#PARMS="${PARMS}&prefetch"
#PARMS="${PARMS}&prefetch=eager"
#PARMS="${PARMS}[netcdf3]"
#PARMS="${PARMS}[fetch=disk]"
#PARMS="${PARMS}[cache]"
#PARMS="${PARMS}[nocache]"
#PARMS="${PARMS}[wholevar]"
PARMS="${PARMS}[show=fetch]"
#PARMS="${PARMS}[noprefetch]"
#PARMS="${PARMS}[prefetch]"
#PARMS="${PARMS}[prefetch=eager]"
PARMS="[log][cache][noprefetch]"

VARGS="--leak-check=full"
Expand All @@ -52,10 +52,9 @@ if test "x$PROG" = x ; then
PROG="../ncdump/ncdump"
fi

if test "x$PARMS" != "x" ; then PARMS="\#$PARMS"; fi
U="$F"
if test "x$CON" != "x" ; then U="$U?$CON"; fi
UALL="$U${PARMS}"
UALL="${PARMS}$U"
#ARGS="-h $ARGS"
#ARGS="-w $ARGS"
#ARGS="-c $ARGS"
Expand Down Expand Up @@ -133,4 +132,5 @@ F="http://nomads.ncep.noaa.gov:9090/dods/gens/gens20140123/gep_all_12z"
VAR=prmslmsl
F="http://data.nodc.noaa.gov/thredds/dodsC/testdata/pathfinderAgg/pathFinderV5.2_night.ncml"
CON="sst_dtime.sst_dtime"
F="http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.dailyavgs/pressure/air.1947.nc"
fi
2 changes: 0 additions & 2 deletions libdap2/ncd2dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,6 @@ fprintf(stderr,"buildvars.candidate=|%s|\n",var->ncfullname);
}
}



definename = getdefinename(var);

#ifdef DEBUG1
Expand Down
16 changes: 15 additions & 1 deletion oc2/ocnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@
#include "occompile.h"
#include "ocdebug.h"

/* If enabled, then DAS attributes that cannot
be connected to any variable will be shown as
global attributes. No obvious reason to enable
except possibly for debugging purposes.
*/
#undef SHOWORPHAN

static const unsigned int MAX_UINT = 0xffffffff;

static OCerror mergedas1(OCnode* dds, OCnode* das);
static OCerror mergedods1(OCnode* dds, OCnode* das);
static OCerror mergeother1(OCnode* root, OCnode* das);
static char* pathtostring(OClist* path, char* separator);
static void computefullname(OCnode* node);
#ifdef SHOWORPHAN
static OCerror mergeother1(OCnode* root, OCnode* das);
#endif

/* Process ocnodes to fix various semantic issues*/
void
Expand Down Expand Up @@ -334,13 +343,16 @@ ocddsdasmerge(OCstate* state, OCnode* dasroot, OCnode* ddsroot)
if(das == NULL) continue;
mergedods1(ddsroot,das);
}

#ifdef SHOWORPHAN
/* 6. Assign other orphan attributes, which means
construct their full name and assign as a global attribute. */
for(i=0;i<oclistlength(dasnodes);i++) {
OCnode* das = (OCnode*)oclistget(dasnodes,i);
if(das == NULL) continue;
mergeother1(ddsroot, das);
}
#endif

done:
/* cleanup*/
Expand Down Expand Up @@ -406,6 +418,7 @@ mergedods1(OCnode* dds, OCnode* dods)
return OCTHROW(stat);
}

#ifdef SHOWORPHAN
static OCerror
mergeother1(OCnode* root, OCnode* das)
{
Expand Down Expand Up @@ -433,6 +446,7 @@ mergeother1(OCnode* root, OCnode* das)
stat = OC_EDAS;
return OCTHROW(stat);
}
#endif

static void
ocuncorrelate(OCnode* root)
Expand Down

0 comments on commit 1aab755

Please sign in to comment.