[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[IDV #MXT-681298]: Wind Speed Formula Error
- Subject: [IDV #MXT-681298]: Wind Speed Formula Error
- Date: Mon, 27 Aug 2012 11:44:35 -0600
No problem, Patrick - we're here to help!
Sean
> Sean,
>
> Thank you for continuing to follow up on this matter! Your solution makes
> sense, and I will certainly try your method.
>
> Patrick
> ________________________________________
> From: Unidata IDV Support [address@hidden]
> Sent: Monday, August 27, 2012 11:38 AM
> To: Patrick C. Campbell
> Cc: address@hidden
> Subject: [IDV #MXT-681298]: Wind Speed Formula Error
>
> Greetings Patrick,
>
> The issue is that the wind speed formula expects a 2D field. While
> at first glance the 250 mb data may seem like a 2D field, it's
> actually 3D - the level dimension is singular (i.e. has one value, 250mb),
> but that still makes it a 3D field. In order to use the windspeed
> formula, you will need to make u and v 2D fields.
>
> To do this, first select the windspeed formula:
>
> Grids->Speed from 2 components:
>
> Then, for u and v, select the "Make slice 2D" formula:
>
> u: Formulas->Grids->Make slice 2D
> v : Formulas->Grids->Make slice 2D
>
> then click OK.
>
> Now you will be prompted to select the variables to pass
> into Make slice 2D - this is where you would need to specify
> the U and V components.
>
> It's a bit of clicking around, but that's how you would go
> about doing it.
>
> Cheers,
>
> Sean
>
> > No problem, I appreciate all of your help!
> >
> > Patrick
> > Sent from my Verizon Wireless Phone
> >
> > Unidata IDV Support <address@hidden> wrote:
> >
> >
> > Awesome, thanks Patrick. I'll take a look at things to see what
> > I can figure out.
> >
> > Cheers, and thanks for the samples (very helpful to have),
> >
> > Sean
> >
> > > Yes. The surface u and v are coming from separate netCDF files as well,
> > > and these work when I calculate wind speed and spatially subset. I have
> > > uploaded them for you. They are called:
> > >
> > > Sfc_U_wnd_20100622_23.nc
> > > Sfc_V_wnd_20100622_23.nc
> > >
> > > Patrick
> > > ________________________________________
> > > From: Unidata IDV Support [address@hidden]
> > > Sent: Thursday, August 23, 2012 4:00 PM
> > > To: Patrick C. Campbell
> > > Cc: address@hidden
> > > Subject: [IDV #MXT-681298]: Wind Speed Formula Error
> > >
> > > Hi Patrick,
> > >
> > > Ok, I can reproduce the error if I try to spatially subset from within
> > > the field selector dialog box that appears after clicking "Create
> > > Display". When you do this with the surface data, are the u and
> > > v components of wind coming from separate netCDF files too?
> > > Would you mind uploaded an example of those as well?
> > >
> > > Cheers,
> > >
> > > Sean
> > >
> > > > OK, I just realized that the error message appears when trying to
> > > > specify a U.S. region after Create Display.
> > > >
> > > > See if you can reproduce the error when you don't leave it as the
> > > > default region (Global). What was confusing me was the fact that other
> > > > NCEP/NCAR NETCDF files work fine when specifying a particular region.
> > > >
> > > > Thanks,
> > > >
> > > > Patrick
> > > > ________________________________________
> > > > From: Unidata IDV Support [address@hidden]
> > > > Sent: Thursday, August 23, 2012 3:23 PM
> > > > To: Patrick C. Campbell
> > > > Cc: address@hidden
> > > > Subject: [IDV #MXT-681298]: Wind Speed Formula Error
> > > >
> > > > Hi Patrick,
> > > >
> > > > I didn't have any issues creating a 2d contour plan view using the wind
> > > > speed formula:
> > > >
> > > > * Load each netCDF file into the IDV through Dashboard->Data Choosers
> > > > * From the field selector, use the Formulas Data Sources and select
> > > > Grids->
> > > > Speed from 2 components
> > > > * Select your u and v fields in the field selector dialog box that
> > > > appears
> > > > * Choose your display
> > > > * Click create display
> > > >
> > > > How were your trying to create the wind speed map?
> > > >
> > > > Cheers,
> > > >
> > > > Sean
> > > >
> > > > > OK Sean,
> > > > >
> > > > > I think I have uploaded to two exact files I was using. Their names
> > > > > are:
> > > > >
> > > > > 250 mb_Uwnd_20100622_23.nc
> > > > > 250 mb_Vwnd_20100622_23.nc
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Patrick
> > > > > ________________________________________
> > > > > From: Unidata IDV Support [address@hidden]
> > > > > Sent: Thursday, August 23, 2012 1:49 PM
> > > > > To: Patrick C. Campbell
> > > > > Cc: address@hidden
> > > > > Subject: [IDV #MXT-681298]: Wind Speed Formula Error
> > > > >
> > > > > Hi Patrick,
> > > > >
> > > > > Would you mind uploading the exact files you are using?
> > > > >
> > > > > http://motherlode.ucar.edu/repository/alias/idvupload
> > > > >
> > > > > Thanks!
> > > > >
> > > > > Sean
> > > > >
> > > > > > Full Name: Patrick Campbell
> > > > > > Email Address: address@hidden
> > > > > > Organization: University of Wyoming
> > > > > > Package Version: 3.0u2 build date:2012-02-10 17:21 UTC
> > > > > > Operating System: Windows 7
> > > > > > Hardware: Java: home: C:\Program Files\IDV_3.0u2\jre version:
> > > > > > 1.6.0_20 j3d:1.5.2 fcs (build4)
> > > > > > Description of problem: Hello,
> > > > > >
> > > > > > Trying to simply plot the wind speed from two components U & V at a
> > > > > > pressure level 250 mb. The data are NETCDF files downloaded from
> > > > > > ESRL NCEP/NCAR Reanalysis page
> > > > > > (http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.pressure.html).
> > > > > > I have attached the V component data file I am trying to use, to
> > > > > > this support form.
> > > > > >
> > > > > > However, I get the following error:
> > > > > >
> > > > > > Creating display: Contour Plan View
> > > > > > visad.SetException: visad.SetException: Gridded3DSet.valueToGrid:
> > > > > > ManifoldDimension must be 3
> > > > > > Gridded3DSet.valueToGrid: ManifoldDimension must be 3
> > > > > >
> > > > > > Funny thing is when I download the surface U and V components the
> > > > > > IDV formulas for wind speed work correctly.
> > > > > >
> > > > > > Any help on this matter would be much appreciated.
> > > > > >
> > > > > > Thanks,
> > > > > > Patrick Campbell
> > > > > >
> > > > > > Any hel
> > > > > >
> > > > > > ******************
> > > > > > Stack trace:
> > > > > > visad.SetException: Gridded3DSet.valueToGrid: ManifoldDimension
> > > > > > must be 3
> > > > > > at visad.Gridded3DSet.valueToGrid(Gridded3DSet.java:1070)
> > > > > > at visad.Gridded3DSet.valueToIndex(Gridded3DSet.java:418)
> > > > > > at visad.FlatField.resample(FlatField.java:4740)
> > > > > > at visad.FlatField.binary(FlatField.java:2088)
> > > > > > at visad.FieldImpl.binary(FieldImpl.java:836)
> > > > > > at visad.DataImpl.binary(DataImpl.java:139)
> > > > > > at visad.DataImpl.add(DataImpl.java:179)
> > > > > > at visad.DataImpl.__add__(DataImpl.java:1393)
> > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > > > > > at java.lang.reflect.Method.invoke(Unknown Source)
> > > > > > at
> > > > > > org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
> > > > > > at
> > > > > > org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
> > > > > > at org.python.core.PyObject.__call__(PyObject.java:404)
> > > > > > at org.python.core.PyObject.__call__(PyObject.java:408)
> > > > > > at org.python.core.PyMethod.__call__(PyMethod.java:124)
> > > > > > at org.python.core.PyMethod.__call__(PyMethod.java:115)
> > > > > > at org.python.core.PyObjectDerived.__add__(PyObjectDerived.java:163)
> > > > > > at org.python.core.PyObject._basic_add(PyObject.java:2009)
> > > > > > at org.python.core.PyObject._add(PyObject.java:1995)
> > > > > > at org.python.pycode._pyx143.f$0(<string>:1)
> > > > > > at org.python.pycode._pyx143.call_function(<string>)
> > > > > > at org.python.core.PyTableCode.call(PyTableCode.java:165)
> > > > > > at org.python.core.PyCode.call(PyCode.java:18)
> > > > > > at org.python.core.Py.runCode(Py.java:1261)
> > > > > > at org.python.core.__builtin__.eval(__builtin__.java:484)
> > > > > > at org.python.core.__builtin__.eval(__builtin__.java:488)
> > > > > > at
> > > > > > org.python.util.PythonInterpreter.eval(PythonInterpreter.java:190)
> > > > > > at
> > > > > > ucar.unidata.data.DerivedDataChoice.getData(DerivedDataChoice.java:773)
> > > > > > at ucar.unidata.data.DataChoice.getData(DataChoice.java:607)
> > > > > > at
> > > > > > ucar.unidata.data.DerivedDataChoice.getData(DerivedDataChoice.java:785)
> > > > > > at ucar.unidata.data.DataChoice.getData(DataChoice.java:637)
> > > > > > at ucar.unidata.data.DataInstance.getData(DataInstance.java:243)
> > > > > > at ucar.unidata.data.DataInstance.getData(DataInstance.java:207)
> > > > > > at
> > > > > > ucar.unidata.data.grid.GridDataInstance.init(GridDataInstance.java:205)
> > > > > > at
> > > > > > ucar.unidata.data.grid.GridDataInstance.<init>(GridDataInstance.java:162)
> > > > > > at
> > > > > > ucar.unidata.data.grid.GridDataInstance.<init>(GridDataInstance.java:143)
> > > > > > at
> > > > > > ucar.unidata.idv.control.GridDisplayControl.doMakeDataInstance(GridDisplayControl.java:284)
> > > > > > at
> > > > > > ucar.unidata.idv.control.DisplayControlImpl.initializeDataInstance(DisplayControlImpl.java:3153)
> > > > > > at
> > > > > > ucar.unidata.idv.control.DisplayControlImpl.setData(DisplayControlImpl.java:3135)
> > > > > > at
> > > > > > ucar.unidata.idv.control.PlanViewControl.setData(PlanViewControl.java:643)
> > > > > > at
> > > > > > ucar.unidata.idv.control.ContourPlanViewControl.setData(ContourPlanViewControl.java:194)
> > > > > > at
> > > > > > ucar.unidata.idv.control.PlanViewControl.init(PlanViewControl.java:473)
> > > > > > at
> > > > > > ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1402)
> > > > > > at
> > > > > > ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1085)
> > > > > > at
> > > > > > ucar.unidata.idv.ControlDescriptor.initControl(ControlDescriptor.java:986)
> > > > > > at
> > > > > > ucar.unidata.idv.ControlDescriptor$1.run(ControlDescriptor.java:911)
> > > > > > at ucar.unidata.util.Misc$3.run(Misc.java:1090)
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > Ticket Details
> > > > > ===================
> > > > > Ticket ID: MXT-681298
> > > > > Department: Support IDV
> > > > > Priority: Normal
> > > > > Status: Open
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > Ticket Details
> > > > ===================
> > > > Ticket ID: MXT-681298
> > > > Department: Support IDV
> > > > Priority: Normal
> > > > Status: Open
> > > >
> > > >
> > > >
> > >
> > > Ticket Details
> > > ===================
> > > Ticket ID: MXT-681298
> > > Department: Support IDV
> > > Priority: Normal
> > > Status: Open
> > >
> > >
> > >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: MXT-681298
> > Department: Support IDV
> > Priority: Normal
> > Status: Open
> >
> >
>
> Ticket Details
> ===================
> Ticket ID: MXT-681298
> Department: Support IDV
> Priority: Normal
> Status: Closed
>
>
>
Ticket Details
===================
Ticket ID: MXT-681298
Department: Support IDV
Priority: Normal
Status: Closed