From f4792abbcf967623a375133e96637def76a5c6d7 Mon Sep 17 00:00:00 2001 From: ucar-tmeyer Date: Tue, 14 Nov 2023 21:11:56 +0000 Subject: [PATCH] Fix NUCAPS "null" resource name (on all OS's) by setting from within https://github.com/Unidata/awips2/commit/716561d3e100b9564760b9cf4f40cd6d8e65b9a9 --- .../viz/npp/nucaps/rsc/NucapsSoundingMapResourceData.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cave/com.raytheon.uf.viz.npp.nucaps/src/com/raytheon/uf/viz/npp/nucaps/rsc/NucapsSoundingMapResourceData.java b/cave/com.raytheon.uf.viz.npp.nucaps/src/com/raytheon/uf/viz/npp/nucaps/rsc/NucapsSoundingMapResourceData.java index 2bc57347f9..e500bfcaf1 100644 --- a/cave/com.raytheon.uf.viz.npp.nucaps/src/com/raytheon/uf/viz/npp/nucaps/rsc/NucapsSoundingMapResourceData.java +++ b/cave/com.raytheon.uf.viz.npp.nucaps/src/com/raytheon/uf/viz/npp/nucaps/rsc/NucapsSoundingMapResourceData.java @@ -23,6 +23,7 @@ import com.raytheon.uf.common.time.util.TimeUtil; import com.raytheon.uf.viz.core.exception.VizException; import com.raytheon.uf.viz.core.rsc.AbstractVizResource; import com.raytheon.uf.viz.core.rsc.LoadProperties; +import com.raytheon.uf.viz.npp.nucaps.NucapsNSharpResourceData; import com.raytheon.uf.viz.npp.sounding.rsc.NPPSoundingMapResourceData; import com.raytheon.viz.pointdata.PointDataRequest; @@ -38,6 +39,8 @@ import com.raytheon.viz.pointdata.PointDataRequest; * Dec 16, 2015 18191 pwang Initial creation. Color code dots base on QC value * Feb 03, 2016 18588 wkwock Fix update nucaps data issue. * Apr 14, 2016 18588 wkwock Improve the performance. + * Sep 14, 2016 mjames setNsharpResourceData and setResourceName from within + * (fixes NUCAPS Availability on OS X) * * * @@ -61,6 +64,10 @@ public class NucapsSoundingMapResourceData extends NPPSoundingMapResourceData { throws VizException { NucapsSoundingMapResource resource = new NucapsSoundingMapResource(this, loadProperties); + + this.setNsharpResourceData(NucapsNSharpResourceData.class); + this.setResourceName("NUCAPS"); + if (objects instanceof PluginDataObject[]) { resource.addRecordsNoUpdate((PluginDataObject[]) objects); }