<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Negin,<br>
<br>
For doing the same thing as you, I have found the model level by
using the WRF height array ("z") that you can get from wrf_getvar
routine.<br>
<br>
It is also possible to create an output file from WRF-chem of
variables along a flight track. Here is some more info:<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</blockquote>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
“Tracking” output: vertical profiles of prescribed
meteorological and chemical <br>
species at a set of prescribed times and horizontal
coordinates are written to a <br>
special output file, wrfout_track_d<nn>. The namelist
variable track_loc_in is a <br>
count of the track locations and must be set to a
positive value otherwise the default <br>
setting of zero will result in no track output of any
variables. Times and locations <br>
must be specified in the file wrfinput_track.txt( see
example below). Meteorological <br>
variables z, p, t, u, v, w, alt, qcloud, qrain, qice,
qsnow, qgraup, and qvapor are output <br>
if track_loc_in is non-zero. Chemical species
concentrations may also be output if <br>
both namelist variables track_chem_num and track_chem_name
are set. The total <br>
number of chemical species to output must be <= 100.<br>
<br>
As an example the following namelist settings will output
the default meteorological <br>
variables and co and o3 species concentrations at the two
times and locations <br>
specified in the wrfinput_track.txt file :<br>
<br>
&domains<br>
track_loc_in = 2,<br>
/<br>
&chem<br>
track_chem_num = 2,<br>
track_chem_name = ‘co’, ‘o3’,<br>
/<br>
<br>
The following two lines comprise the contents of the ascii
input file <br>
wrfinput_track.txt:<br>
<br>
2010-08‐10_00:12:00 41.450 -87.300<br>
2010‐08‐10_00:36:00 41.510 -87.390<br>
<br>
This will result in the indicated variables being output
to wrfout_track_d01 at the <br>
times 00:12:00 UTC and 00:36:00 UTC on August 10, 2010 at
the grid points nearest <br>
to the points (41.450, -87.300) and (41.510, -87.390).
Note that the tracking tool <br>
does not interpolate in time. The indicated output times
need to be given in <br>
multiples of model time steps else no output is produced.
<br>
The exact Fortran format for the lines in the file
wrfinput_track.txt is <br>
(A19,1X,F7.3,1X,F7.3) and the horizontal coordinates are
ordered for latitude, <br>
longitude with standard WRF conventions wherein south
latitudes and west <br>
longitudes are negative.<br>
<br>
This information is from
<a class="moz-txt-link-freetext" href="http://www.acd.ucar.edu/wrf-chem/MOZCART_UsersGuide.pdf">http://www.acd.ucar.edu/wrf-chem/MOZCART_UsersGuide.pdf</a> <br>
<br>
-- Mary Barth<br>
<br>
<div class="moz-cite-prefix">On 2/17/15 12:00 PM,
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk-request@ucar.edu">ncl-talk-request@ucar.edu</a> wrote:<br>
</div>
<blockquote cite="mid:mailman.5.1424199604.9875.ncl-talk@ucar.edu"
type="cite">
<pre wrap="">
----------------------------------------------------------------------
Message: 1
Date: Mon, 16 Feb 2015 23:45:34 -0600
From: Negin S <a class="moz-txt-link-rfc2396E" href="mailto:negin513@gmail.com"><negin513@gmail.com></a>
Subject: [ncl-talk] flight pathway data
To: Ncl Talk <a class="moz-txt-link-rfc2396E" href="mailto:ncl-talk@ucar.edu"><ncl-talk@ucar.edu></a>
Message-ID:
        <a class="moz-txt-link-rfc2396E" href="mailto:CAJpVDhqVPP-5sXWZ2saDg4vpE4OxcWK8LcN7nwgk_gtRN99X7Q@mail.gmail.com"><CAJpVDhqVPP-5sXWZ2saDg4vpE4OxcWK8LcN7nwgk_gtRN99X7Q@mail.gmail.com></a>
Content-Type: text/plain; charset="utf-8"
Hi Everyone!
Recently I am working on extracting data along a flight pathway.
I used the following for figuring out grid index of flight data across its
pathway:
nm = getind_latlon2d (lat2d,lon2d, lat, lon)
do k=0,dimsizes(lat)-1
n = nm(k,0)
m = nm(k,1)
end
but I also need some help calculating the layer number based on flight
altitude and time step based on flight time.
I could not find any example for extracting data along flight pathway.
Basically what I wanted to do is to extract data along flight pathway from
model output(i.e. wrf-chem output) and write all the variables from model
in a txt file.
I highly appreciate all your helps.
Best Regards,
Negin
</pre>
</blockquote>
<br>
</body>
</html>