[ncl-talk] Mystery (perhaps) solved

Barry Lynn barry.h.lynn at gmail.com
Tue Mar 7 22:46:23 MST 2017


It turns out the data in the wrfinput file was transcribed correctly.

So, the programs I sent before to read a variable and substitute data in a
wrfinput file variable work fine.

The problem was in accessing the array within WRF.

On Tue, Mar 7, 2017 at 5:29 PM, Barry Lynn <barry.h.lynn at gmail.com> wrote:

> Thank you for giving it a go.
> ---------- Forwarded message ----------
> From: Barry Lynn <barry.h.lynn at gmail.com>
> Date: Mon, Mar 6, 2017 at 6:55 PM
> Subject: An NCL Mystery (regarding writing to wrfinput_d03)
> To: ncl-talk <ncl-talk at ucar.edu>
>
>
> Hello:
>
> I wrote a program (feed_data.ncl -- with a bit of help from Dennis, Mary,
> etc) to read an ascii file and write the data to the variable "l_obs" in
> the wrfinput_d03.nc file.
>
> When I read the asci file and then write the data to wrfinput_d03.nc, and
> then plot the data (using l_obs_map.ncl) it looks absolutely fine
> (attached).
>
> However, when I access the data within the WRF itself it is not located at
> the correct indices.  For instance, points that should be at about latitude
> 30.95, longitude 36.6 are at latitude 28, longitude 35).
>
> I realize that there is a switching of indices from the NCL to the WRF,
> but I assumed that this was done correctly/automatically​
>  lobs_output_1.3km.txt
> <https://drive.google.com/file/d/0B3E3GjUeKpBdMTJGOHd0R00ya0E/view?usp=drive_web>
> ​ as the size of the array in wrfinput_d03 is correct.
>
> Just to reiterate, I can read the data with ncl from wrfinput_d03.nc and
> map it (and it corresponds to what I see using a different mapping
> program).  However, when I access the array in the WRF, as
> l_obs(i,k_lev,j), where k_lev is the time increment, it is not in the
> correct location.
>
> Thank you for your suggestions.
>
> Barry
>
>
>
>
> --
> Barry H. Lynn, Ph.D
> Senior Lecturer,
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(914)%20432-3108>
>
>
>
> --
> Barry H. Lynn, Ph.D
> Senior Lecturer,
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(914)%20432-3108>
>



-- 
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170308/5e90174c/attachment.html 


More information about the ncl-talk mailing list