Hi Ethan, I've just tried this, but didn't seem to have worked... I am using TDS Version 4.2.20100707.0012, downloaded from: ftp://ftp.unidata.ucar.edu/pub/thredds/4.2/snapshot/thredds.warThe standalone ncWMS is still displaying the image correctly, but using TDS (and the GoDiva2 link), I'm still getting a lot of black areas. I had to copy the wmsConfig.xml file across to $TOMCAT_HOME/content/thredds.
I've changed the config to use the same colour scale as what's shown in the standalone ncWMS:
<datasetPath pathSpec="testAll/20010101*.nc"> <pathDefaults> <allowFeatureInfo>false</allowFeatureInfo> <defaultPaletteName>rainbow</defaultPaletteName> </pathDefaults> <variables> <variable id="sea_surface_temperature"><defaultColorScaleRange>272 306.3</defaultColorScaleRange>
</variable> </variables> </datasetPath>I think this setting should be OK - because when I clicked on the GoDiva link at the bottom, the colour scales (on the right hand side) was shown as 272 to 306.3.
And now, for the comparison: http://localhost:8080/ncWMS-1.0RC2/wms?LAYERS=AVHRR%2Fsea_surface_temperature&ELEVATION=0&TIME=2001-01-01T22%3A44%3A00.000Z&TRANSPARENT=true&STYLES=boxfill%2Frainbow&CRS=EPSG%3A4326&COLORSCALERANGE=271.99%2C306.31&NUMCOLORBANDS=254&LOGSCALE=false&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&EXCEPTIONS=XML&FORMAT=image%2Fpng&BBOX=103.98999786377,-48.020000457764,165.02000427246,-7.9899997711182&WIDTH=256&HEIGHT=256 http://localhost:8080/thredds/wms/testAll/20010101-ABOM-L3P_GHRSST-SSTsubskin-AVHRR_MOSAIC_01km-AO_DAAC-v01-fv01_0.nc?service=WMS&version=1.3.0&request=GetMap&Layers=sea_surface_temperature&ELEVATION=0&TIME=2001-01-01T22%3A44%3A00.000Z&TRANSPARENT=true&STYLES=boxfill%2Frainbow&CRS=EPSG%3A4326&COLORSCALERANGE=271.99%2C306.31&NUMCOLORBANDS=254&LOGSCALE=false&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&EXCEPTIONS=XML&FORMAT=image%2Fpng&BBOX=103.98999786377,-48.020000457764,165.02000427246,-7.9899997711182&WIDTH=256&HEIGHT=256And have attached the resulting images. There were generated using the file located here:
http://opendap-ivec.arcs.org.au/thredds/fileServer/IMOS/SRS/ABOM-L3P_GHRSST-SSTsubskin-AVHRR_MOSAIC_01km/2001/20010101-ABOM-L3P_GHRSST-SSTsubskin-AVHRR_MOSAIC_01km-AO_DAAC-v01-fv01_0.nc Cheers, -Pauline. On 20/07/10 1:53 AM, Ethan Davis wrote:
Hi Pauline, Could you try this in our latest TDS snapshot and/or send an example dataset? The latest TDS snapshot is 4.2.20100707.0012. It is available from our FTP server at ftp://ftp.unidata.ucar.edu/pub/thredds/4.2/snapshot/ Thanks, Ethan On 7/16/2010 11:13 PM, Pauline Mak wrote:Hi all, I've just downloaded the latest version of TDS and tried out WMS on some datasets. It looks like the TDS implementation of the WMS server is ignoring the _FillValue attribute...? I've tried this on ncWMS-1.0RC2 and it was able to generate a correct image. I used the same KVP (except for LAYERS!) for both ncWMS and TDS: http://localhost:8080/ncWMS-1.0RC2/wms?LAYERS=bomTest%2Ftemp&ELEVATION=-5&TIME=2010-07-07T12%3A00%3A00.000Z&TRANSPARENT=true&STYLES=boxfill%2Frainbow&CRS=EPSG%3A4326&NUMCOLORBANDS=254&LOGSCALE=false&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&EXCEPTIONS=XML&FORMAT=image%2Fpng&BBOX=0,-90,180,90&WIDTH=256&HEIGHT=256 http://localhost:8080/thredds/wms/testAll/ocean_an_20100707_temp.nc?LAYERS=temp&ELEVATION=-5&TIME=2010-07-07T12%3A00%3A00.000Z&TRANSPARENT=true&STYLES=boxfill%2Frainbow&CRS=EPSG%3A4326&NUMCOLORBANDS=254&LOGSCALE=false&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&EXCEPTIONS=XML&FORMAT=image%2Fpng&BBOX=0,-90,180,90&WIDTH=256&HEIGHT=256 And got the attached images (tds.png is generated from TDS, wms_ncwms.png is generated by ncWMS). I am currently using: Version 4.2.20100607.1833 - 20100607.1833 With Java version: java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065) Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode) We had observe the same behaviour on another TDS server too, although, I'm not sure what OS it's running on, or what the version of Java it's using. I think at some point in time, I had a version of 4.2 that worked with _FillValues correctly, but I no longer have access to that version anymore to do a comparison... Cheers, -Pauline._______________________________________________ thredds mailing list thredds@xxxxxxxxxxxxxxxx For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
-- Pauline Mak AODN-DO Ph: (03) 6226 8586 Mob: 0411 638 196 Email: pauline.mak@xxxxxxxxxxx
Attachment:
TDS.png
Description: PNG image
Attachment:
ncWMS.png
Description: PNG image
thredds
archives: