NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #GPN-843560]: IDV v4.1u1: Problem plotting field calculated by formula via bundle saved with no data source



> Unidata support,
> 
> I am running IDV v4.1u1 (nightly build, downloaded 11/25/13) on a Mac running 
> Mac OS X v10.9 (Mavericks).
> 
> I am reading a WRF-ARW model output file in NetCDF format. (The file is 
> accessible via HTTP at 
> http://virga.sfsu.edu/data/wrf/wrfout_2013-11-21_12_GFS_CenCal_BayArea_EastBay.n<http://virga.sfsu.edu/data/wrf/wrfout_2013-11-21_12_GFS_CenCal_BayArea_EastBay.nc>c
>  and via RAMADDA catalog server at 
> http://virga.sfsu.edu:8080/repository/thredds > “WRF Model Output” > 
> http://virga.sfsu.edu/data/wrf/wrfout_2013-11-21_12_GFS_CenCal_BayArea_EastBay.nc).
> 
> I have created a formula that simply adds a constant to a field. (The 3-D 
> native field in the WRF model output file comprises potential temperature in 
> Kelvins on a terrain-following [sigma] coordinate surface with 300K 
> subtracted from it.) The formula looks like this:
> 
> PPT + 300  (where the IDV interprets PPT as a field variable for which it 
> prompts the user)
> 
> The first time I tried this, I plotted the field successfully (as a contour 
> plan view of on a particular sigma level at a particular time), then saved 
> the display as a bundle with “Data Sources” unchecked.
> 
> I then cleared all displays and data sources from the IDV, loaded the same 
> data source used to create the bundle originally (either via URL or via 
> RAMADDA), and loaded the bundle.
> 
> The bundle did its thing without any error messages. It plotted a display 
> label and legend label correctly. However, it didn’t create a plot of the 
> requested field.
> 
> I got the same results if I create an entry in my local Jython library 
> consisting of the following:
> 
> # Convert perturbation potential temperature from WRF model output to 
> potential temperature
> # by adding 300K to the perturbation potential temperature field.
> #
> def add300(PPT):
> """ Addition of a constant = 300K """
> return PPT + 300
> 
> I then create a formula that looks simply like this:
> 
> add300(PPT)
> 
> Using this had the same results.
> 
> Both of these formulas are placed in “Grids” category. One is called 
> “Potential temperature from perturbation potential temperature from the WRF 
> model”, and the other is called “Pot Temp from Pert Pot Temp (WRF)”.
> 
> Since then, I tried to create the display using both formulas from scratch 
> (without loading a previously created bundle), but couldn’t get the IDV to 
> plot the contours. I’m not sure what I’m doing differently this time.
> 
> I’ve attached a screen shot of the results and and an IDV bundle that was 
> saved with “Data Source” checked.
> 
> — Dave
> 

Dave,
       Http is not the access protocol for the grid model data,  only opendap 
supported in the IDV when accessing the remote data.


Yuan
> 
> 
> ****************************************************************
> *                                      |         __ __    \|/  *
> *   Dr. Dave Dempsey                   | )   ^  /|| ||\  --0-- *
> *   Dept. of Earth & Climate Sciences  |) ) ^  / ||_|| \  /|\  *
> *   San Francisco State University     | ) )  /  | _ |  \      *
> *   1600 Holloway Ave.                 |)   )/   || ||   \     *
> *   San Francisco, CA   94132          | )   )   ||_||    \    *
> *                                      |)  ) )   | _ |     \   *
> *   Phone:  (415) 338-7716             |  )   )  || ||      \  *
> *   FAX:    (415) 338-7705             |)   )  )~~~~~~~~~~~~~~~*
> *   Email:  address@hidden<mailto:address@hidden>           |  )  )  )  ~  ~  
>  ~ ~  *
> *                                      |)  )   ) )  ~   ~  ~   *
> ****************************************************************
> 
> 
> 
> 


Ticket Details
===================
Ticket ID: GPN-843560
Department: Support IDV
Priority: Normal
Status: Closed