diff --git a/libdap2/env b/libdap2/env index 34f247a21..7cf1b8526 100644 --- a/libdap2/env +++ b/libdap2/env @@ -11,8 +11,8 @@ PARMS="${PARMS}[cache]" PARMS="${PARMS}[show=fetch]" -F="http://dapper.pmel.noaa.gov/dapper/argo/argo_all.cdp" -CON="location.LATITUDE,location.attributes.DIRECTION&location.LATITUDE<=1&location.LATITUDE>-1" +F="http://motherlode.ucar.edu:8080/thredds/dodsC/station/metar/Surface_METAR_20120101_0000.nc" +CON="weather[0:10]" #VAR="person.name" PROG="./ncd" diff --git a/ncdap_test/expectremote3/Makefile.am b/ncdap_test/expectremote3/Makefile.am index 92ac31379..a9131b1dc 100644 --- a/ncdap_test/expectremote3/Makefile.am +++ b/ncdap_test/expectremote3/Makefile.am @@ -27,4 +27,5 @@ test.sds1.dmp test.sds2.dmp test.sds3.dmp \ test.sds4.dmp test.sds5.dmp test.vs1.dmp \ test.vs2.dmp test.vs3.dmp test.vs4.dmp \ test.vs5.dmp whoi.dmp \ -GLOBEC_cetaceans.1.dmp GLOBEC_cetaceans.2.dmp +GLOBEC_cetaceans.1.dmp GLOBEC_cetaceans.2.dmp \ +Surface_METAR_20120101_0000.nc.1.dmp diff --git a/ncdap_test/expectremote3/Surface_METAR_20120101_0000.nc.1.dmp b/ncdap_test/expectremote3/Surface_METAR_20120101_0000.nc.1.dmp new file mode 100644 index 000000000..76653ea08 --- /dev/null +++ b/ncdap_test/expectremote3/Surface_METAR_20120101_0000.nc.1.dmp @@ -0,0 +1,60 @@ +netcdf Surface_METAR_20120101_0000 { +dimensions: + recNum = UNLIMITED ; // (11 currently) + weather_len = 16 ; +variables: + char weather(recNum, weather_len) ; + weather:long_name = "Weather phenomena" ; + weather:_FillValue = "" ; + weather:reference = "WMO #306, code table 4658" ; + weather:_DODS_strlen = 16 ; + weather:_DODS_dimName = "weather_len" ; + +// global attributes: + :title = "METAR Data from NWS" ; + :version = 2.3 ; + :processor = "metar2nc version v1.2" ; + :Conventions = "Unidata Observation Dataset v1.0" ; + :standard_name_vocabulary = "CF-1.0" ; + :description = "Metar Data from NWS distributed through the Unidata IDD\n", + " realtime datastream. 1 day\'s worth of data" ; + :time_coordinate = "time_observation" ; + :cdm_datatype = "Station" ; + :stationDimension = "station" ; + :station_id = "station_id" ; + :station_description = "station_description" ; + :latitude_coordinate = "latitude" ; + :longitude_coordinate = "longitude" ; + :altitude_coordinate = "altitude" ; + :geospatial_lat_max = "90.0" ; + :geospatial_lat_min = "-90.0" ; + :geospatial_lon_max = "360.0" ; + :geospatial_lon_min = "0.0" ; + :time_coverage_start = "1325375100 seconds since 1970-01-01 00 UTC" ; + :time_coverage_end = "1325461440 seconds since 1970-01-01 00 UTC" ; + :observationDimension = "recNum" ; + :notes = "\n", + " The metar2nc decoder creates a netCDF file based on a set of variables \n", + " that are commonly used in display programs. Since not all the variables\n", + " that are possible(over 135) are written, the raw METAR report is stored \n", + " for future decoding of variables not explicited specified. The \n", + " lastChild variable gives the record number of the most recent report \n", + " for a particular station and the prevChild variable is the record \n", + " number of the next most recent. By following the links, all the reports\n", + " for a particular station can be extracted." ; + :_DODS_Unlimited_Dimension = "recNum" ; +data: + + weather = + "\000\327\017\001\000\000\000\000_name", + "\000\327\017\001\000\000\000\000_name", + "\000\327\017\001\000\000\000\000_name", + "\000\327\017\001\000\000\000\000_name", + "\000\327\017\001\000\000\000\000_name", + "\000\327\017\001\000\000\000\000_name", + "\000\327\017\001\000\000\000\000_name", + "\000\327\017\001\000\000\000\000_name", + "\000\327\017\001\000\000\000\000_name", + "\000\327\017\001\000\000\000\000_name", + "\000\327\017\001\000\000\000\000_name" ; +} diff --git a/ncdap_test/tst_remote.sh b/ncdap_test/tst_remote.sh index 2bcfc860e..f6da4bb02 100755 --- a/ncdap_test/tst_remote.sh +++ b/ncdap_test/tst_remote.sh @@ -21,7 +21,7 @@ longtests="$5" if test "x$timing" = "x1" ; then leakcheck=0; fi # get the list of test files -WHICHTESTS="S1 C1 C2 C4" +WHICHTESTS="S1 C1 C2" if test -n "$longtests"; then WHICHTESTS="${WHICHTESTS} L1 LC1" fi @@ -225,9 +225,11 @@ for i in $WHICHTESTS ; do C1) TESTURL="$REMOTEURLC1" ; TESTSET="$REMOTETESTSC1" ; constrained=1 ;; C2) TESTURL="$REMOTEURLC2" ; TESTSET="$REMOTETESTSC2" ; constrained=1 ;ncconstrained=0 ;; C3) TESTURL="$REMOTEURLC3" ; TESTSET="$REMOTETESTSC3" ; constrained=1 ;ncconstrained=0 ;; + C4) TESTURL="$REMOTEURLC4" ; TESTSET="$REMOTETESTSC4" ; constrained=1 ;ncconstrained=0 ;; LC1) TESTURL="$REMOTEURLLC1" ; TESTSET="$REMOTETESTSLC1" ; constrained=1 ;; X) TESTURL="$REMOTEURLX" ; TESTSET="$REMOTETESTSX" ; constrained=0 ;; XC) TESTURL="$REMOTEURLXC" ; TESTSET="$REMOTETESTSXC" ; constrained=1 ;; + *) echo "Unknown which test: $i" ;; esac cd ${RESULTSDIR}