This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Mark- > Institution: Univ. of Colorado > Package Version: 2.1 > Operating System: Linux > Hardware Information: Java: home: /usr/local/idv/IDV_2.1/jre version: > 1.5.0_06 j3d:1.3.1 > Inquiry: Overall, I have had lots of success and fun in getting my netcdf > data from the > AMPS archive into IDV. However, it has not been completely successful. In my > netcdf file I am attempting use both pressure and sigma vertical coordinates. > When I use pressure it works wonderfully, when I use sigma, I get this error: > > An error has occurred: > Couldn't get data > Gridded3DSet: samples do not form a valid grid (51,9,0) The problem is that your latitudes change direction at the 52 point: [48]: 18.218628,-87.33871,5673.8726 [49]: 12.376205,-87.41195,5656.7305 [50]: 6.261139,-87.45691,5609.3237 [51]: 0.0,-87.47207,5539.839 [52]: -6.261139,-87.45691,5506.035 [53]: -12.376221,-87.41195,5472.393 [54]: -18.218628,-87.33871,5419.2974 where I would expect them to change at the 103 point since yc is dimensioned to be 102. Am I missreading that? Is this an artifact of the pole? The fact that the pressure levels work is a fluke in that we don't check for grid consistency. For a grid like this, that would probably lead to problems on data probing. > The netcdf file can be accessed at: > http://foehn.colorado.edu/antarctica/amps/nc/200502.nc > > I have checked this file against the CF checker > http://titania.badc.rl.ac.uk/cgi-bin/cf-checker.pl > and > http://motherlode.ucar.edu:8080/thredds/cdmValidate.html > with no noticeable errors to my amateur eye. > > I'd appreciate any help. Don Murray > ****************** > Stack trace: > visad.SetException: Gridded3DSet: samples do not form a valid grid (51,9,0) > at visad.Gridded3DSet.<init>(Gridded3DSet.java:327) > at visad.GriddedSet.create(GriddedSet.java:218) > at visad.GriddedSet.create(GriddedSet.java:130) > at > visad.EmpiricalCoordinateSystem.ensureNoCoordinateSystem(EmpiricalCoordinateSystem.java:108) > at visad.EmpiricalCoordinateSystem.<init>(EmpiricalCoordinateSystem.java:81) > at > ucar.unidata.data.grid.GeoGridAdapter.makeDomainWithVerticalTransform(GeoGridAdapter.java:927) > at > ucar.unidata.data.grid.GeoGridAdapter.getSpatialDomainSet(GeoGridAdapter.java:411) > at > ucar.unidata.data.grid.GeoGridAdapter.getFlatField(GeoGridAdapter.java:1033) > at > ucar.unidata.data.grid.GeoGridAdapter.makeSequence(GeoGridAdapter.java:1181) > at ucar.unidata.data.grid.GeoGridAdapter.getSequence(GeoGridAdapter.java:983) > at > ucar.unidata.data.grid.GeoGridDataSource.makeFieldImpl(GeoGridDataSource.java:832) > at > ucar.unidata.data.grid.GeoGridDataSource.getDataInner(GeoGridDataSource.java:604) > at ucar.unidata.data.DataSourceImpl.getData(DataSourceImpl.java:1510) > at ucar.unidata.data.DirectDataChoice.getData(DirectDataChoice.java:319) > at ucar.unidata.data.DataChoice.getData(DataChoice.java:550) > at ucar.unidata.data.DataInstance.getData(DataInstance.java:239) > at ucar.unidata.data.DataInstance.getData(DataInstance.java:203) > at ucar.unidata.data.grid.GridDataInstance.init(GridDataInstance.java:204) > at ucar.unidata.data.grid.GridDataInstance.<init>(GridDataInstance.java:161) > at ucar.unidata.data.grid.GridDataInstance.<init>(GridDataInstance.java:142) > at > ucar.unidata.idv.control.PlanViewControl.doMakeDataInstance(PlanViewControl.java:1050) > at > ucar.unidata.idv.control.DisplayControlImpl.initializeDataInstance(DisplayControlImpl.java:2719) > at > ucar.unidata.idv.control.DisplayControlImpl.setData(DisplayControlImpl.java:2701) > at ucar.unidata.idv.control.PlanViewControl.setData(PlanViewControl.java:415) > at > ucar.unidata.idv.control.ContourPlanViewControl.setData(ContourPlanViewControl.java:115) > at ucar.unidata.idv.control.PlanViewControl.init(PlanViewControl.java:321) > at > ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1172) > at > ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:925) > at ucar.unidata.idv.ControlDescriptor.initControl(ControlDescriptor.java:946) > at ucar.unidata.idv.ControlDescriptor$1.run(ControlDescriptor.java:874) > at ucar.unidata.util.Misc$2.run(Misc.java:931) > > > Ticket Details =================== Ticket ID: XWV-899527 Department: Support IDV Priority: Normal Status: Open