[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[IDV #ZKB-937399]: z to pressure in wrf
- Subject: [IDV #ZKB-937399]: z to pressure in wrf
- Date: Thu, 22 May 2014 16:42:01 -0600
> I tried to upload a sample file, the smallest I have is 600mb and I receive
> the error that it exceeds the limit. Any suggestions? Thanks,
> Shannon
>
Basically, go to Edit > Formulas > Jython library, and select local jython, and
define a simple Jython formula like this:
def setPressureValues(fieldimpl) :
from jarray import array
pressures=array([1000.0, 900.0, 800.0, ....], 'f')
ff = GridUtil.setPressureValues(fieldimpl, pressures)
return ff
finish pressures array assuming you have those values.
and then, you can call this from Formula > Grid > Define a grid diagnostic, and
type setPressureValues(a) when a window popup, and you should know what to do
from here.
Yuan
> -----Original Message-----
> From: Unidata IDV Support [mailto:address@hidden]
> Sent: Thursday, May 22, 2014 5:11 PM
> To: address@hidden
> Cc: address@hidden
> Subject: [IDV #ZKB-937399]: z to pressure in wrf
>
> >
> > Can you provide further details on how to do that. I have not used the
> > formula functionality of IDV yet and an example would be great.
> > Thanks -Shannon
> >
>
> Could you upload a sample file? I would like to try it first and let you know
> if it is working.
>
> http://motherlode.ucar.edu/repository/alias/idvupload
>
> Yuan
> > -----Original Message-----
> > From: Unidata IDV Support [mailto:address@hidden]
> > Sent: Thursday, May 22, 2014 4:02 PM
> > To: address@hidden
> > Cc: address@hidden
> > Subject: [IDV #ZKB-937399]: z to pressure in wrf
> >
> > > Thank you Yuan for the swift reply!
> > > OK, we have partial success. Your recommendation if using Transect
> > > display does yield a vertical scale in both height and pressure. But I
> > > do not see how to extract that cross section to netcdf as in the vertical
> > > cross section plot (dashboard then calculate vertical cross section then
> > > displays then file then save displayed data as netcdf). Can you help with
> > > that? Thanks!
> > >
> > > Shannon
> >
> > If you want to save a netcdf file with pressure as its vertical coordinate,
> > you need to use the formula to do the calculation before the exporting and
> > saving data.
> >
> >
> > Yuan
> > >
> > > -----Original Message-----
> > > From: Unidata IDV Support [mailto:address@hidden]
> > > Sent: Thursday, May 22, 2014 12:25 PM
> > > To: address@hidden
> > > Cc: address@hidden
> > > Subject: [IDV #ZKB-937399]: z to pressure in wrf
> > >
> > > > Hi,
> > > >
> > > > My name is Shannon Davis and I am a researcher at Woods Hole
> > > > Oceanographic, and an atmospheric scientist who uses IDV. First,
> > > > big fan of the software, and want to pass on my appreciation for a
> > > > great job. Second, I have a technical problem I wondered if
> > > > anybody could help with. The issue is with some WRF output files
> > > > (ncdf). Thus far I have been able to process them, slice and dice
> > > > the data as I wished but all in z coordinates. I would like to
> > > > transform to pressure coordinates. Specifically, I would like to
> > > > extract some vertical cross sections and save them as smaller
> > > > netcdf. I have done this already with z vertical coordinates which
> > > > seem to load by default in IDV. Any way to do it using pressure as the
> > > > vertical coordinate? Thanks for any help!
> > > >
> > > >
> > > >
> > > > Shannon
> > > >
> > > >
> > > >
> > > Hi Shannon,
> > > Thanks for your comment on the IDV, it would be nice if you can provide
> > > your successful story of using the IDV in your research and share with
> > > the community.
> > >
> > > For the vertical coordinates, you might try using the Transect display
> > > which has the vertical scale in both height and pressure. See the
> > > section of the workshop on this at:
> > >
> > > http://www.unidata.ucar.edu/software/idv/docs/workshop/page_transect
> > > vi
> > > ews.html
> > >
> > > Yuan
> > >
> > > Ticket Details
> > > ===================
> > > Ticket ID: ZKB-937399
> > > Department: Support IDV
> > > Priority: Normal
> > > Status: Open
> > >
> > >
> > >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: ZKB-937399
> > Department: Support IDV
> > Priority: Normal
> > Status: Open
> >
> >
> >
>
>
> Ticket Details
> ===================
> Ticket ID: ZKB-937399
> Department: Support IDV
> Priority: Normal
> Status: Open
>
>
>
Ticket Details
===================
Ticket ID: ZKB-937399
Department: Support IDV
Priority: Normal
Status: Open