<div dir="ltr">Hi Michael,<div><br></div><div>The thread is up on ncl-talk now.  Glad it&#39;s working for you.</div><div><br></div><div>Regards, </div><div><br></div><div>Bill</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 13, 2016 at 6:43 AM, Michael Weston <span dir="ltr">&lt;<a href="mailto:mjweston@masdar.ac.ae" target="_blank">mjweston@masdar.ac.ae</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hi Bill,<br>
    <br>
    Success!!!<br>
    Indeed it works. Thanks very much for your help! <br>
    Please confirm if I can send our correspondence as a reply to my
    original post on ncl-talk so others can see the solution for
    posterity.<br>
    <br>
    Thanks and regards<span class="HOEnZb"><font color="#888888"><br>
    Michael</font></span><div><div class="h5"><br>
    <br>
    <div class="m_539832804604893744moz-cite-prefix">On 12/10/2016 20:38, Bill Ladwig wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hi Michael,
        <div><br>
        </div>
        <div><span style="font-size:12.8px">You have several problems. 
            First, you removed the output argument from your SUBROUTINE
            declaration.  </span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">This:</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">    SUBROUTINE
            MYINTERP(V3D,Z,SFC,NX,NY,NZ)</span><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Should be this:</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">    SUBROUTINE
            MYINTERP(V3D,V2D,Z,SFC,NX,NY,<wbr>NZ)</span><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Otherwise, your data is only
            getting written to a local variable with no way of getting
            it back to the caller.</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Second, in Fortran,
            SUBROUTINES and FUNCTIONS are not the same thing. 
            SUBROUTINES do not return values, FUNCTIONS do.  In your NCL
            code, you are trying to use MYINTERP as a FUNCTION, not a
            SUBROUTINE, so this is why NCL is claiming it can&#39;t find the
            FUNCTION.</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">To fix this, you need to
            first allocate space for the output by using the NCL &#39;new&#39;
            function, then call the MYINTERP subroutine.  In other
            words, you should make your last three lines this:</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">    result = new((/ny, nx/),
            float)  ; Note, NCL uses C (row major) ordering, Fortran
            uses column major</span></div>
        <div><span style="font-size:12.8px">    IMPORT::MYINTERP(tk,
            result, p, psf, nx, ny, klev)</span></div>
        <div><span style="font-size:12.8px">    print(result)</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">This should work now, at
            least it does on my machine.  Good luck.</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Bill</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Oct 12, 2016 at 2:16 AM,
          Michael Weston <span dir="ltr">&lt;<a href="mailto:mjweston@masdar.ac.ae" target="_blank">mjweston@masdar.ac.ae</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hi Bill<br>
              <br>
              Thanks, yes that is much simpler!<br>
              My error message now is:<br>
              <br>
              <b>fatal:syntax error: MYINTERP is not a function in
                package IMPORT</b><br>
              <br>
              I am not sure what the problem is now as I have checked
              the examples on lthe WRAPIT page and have tried to follow
              them exaclty...<br>
              <br>
              I do not get a message saying <br>
              <pre>opening: /usr/local/ncl/source_code/ncl<wbr>_ncarg-6.3.0/ni/src/lib/nfpfor<wbr>t/myinterp.so
</pre>
    But I think it is opening the external statement because I recevied
    warning messages about the type of data not matching that of the
    fortran code.

    

    So, myinterp.f looks like this:

    C NCLFORTSTART

          SUBROUTINE MYINTERP(V3D,Z,SFC,NX,NY,NZ)

          IMPLICIT NONE

          INTEGER NX,NY,NZ

          REAL V3D(NX,NY,NZ),V2D(NX,NY) ! This used to be DOUBLE
    PRECISION

          REAL Z(NX,NY,NZ)

          REAL SFC(NX,NY)

    C NCLEND

          INTEGER I,J,KP,IP,IM

          LOGICAL INTERP

          DOUBLE PRECISION HEIGHT,W1,W2

    

    c does vertical coordinate increase or decrease with increasing k?

    c set offset appropriately

    

          IP = 0

          IM = 1

          IF (Z(1,1,1).GT.Z(1,1,NZ)) THEN

              IP = 1

              IM = 0

          END IF

    

          DO I = 1,NX

              DO J = 1,NY

    C Initialize to missing.  Was initially hard-coded to -999999.

                  INTERP = .false.

                  KP = NZ

    

                  DO WHILE ((.NOT.INTERP) .AND. (KP.GE.2))

                      HEIGHT=SFC(I,J)

                      IF (((Z(I,J,KP-IM).LE.HEIGHT).AND<wbr>. (Z(I,J,

         +                KP-IP).GT.HEIGHT))) THEN

                          W2 = (HEIGHT-Z(I,J,KP-IM))/

         +                     (Z(I,J,KP-IP)-Z(I,J,KP-IM))

                          W1 = 1.D0 - W2

                          V2D(I,J) = W1*V3D(I,J,KP-IM) +
    W2*V3D(I,J,KP-IP)

                          INTERP = .true.

                      END IF

                      KP = KP - 1

    

                  END DO

    

              END DO

          END DO

    

          RETURN

          END

    

    

    And my ncl script looks like this:

    

      load &quot;$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_code.ncl&quot;

      load &quot;$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/contributed.ncl&quot;

      load &quot;$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/wrf/WRFUserARW.ncl&quot;

    

      external IMPORT
&quot;/usr/local/ncl/source_code/nc<wbr>l_ncarg-6.3.0/ni/src/lib/nfpfo<wbr>rt/myinterp.so&quot;

    

      a = addfile(&quot;../wrfout_d02_2016-01<wbr>-15_06:00:00&quot;,&quot;r&quot;)

    

      tk = wrf_user_getvar(a,&quot;tk&quot;,1)   ; T in Kelvin

      p = wrf_user_getvar(a,&quot;pressure&quot;,1<wbr>)   ; T in Kelvin

      psfc= wrf_user_getvar(a,&quot;PSFC&quot;,1)/10<wbr>0. ; PSFC is in Pa, I want
    SFC-35mb, so used 3500 Pa.

      psfc= psfc-35.

    

      dimensions = dimsizes(tk)

    

      print(dimensions)

      printVarSummary(psfc)

      printMinMax(psfc,True)

    

      klev = dimensions(0)

      ny = dimensions(1)

      nx = dimensions(2)

    

      print(typeof(tk))

      print(typeof(p))

      print(typeof(psfc))

    

      t1 = IMPORT::MYINTERP(tk,p,psfc,nx,<wbr>ny,klev)

      print(t1)

    

    

    Any assistance would be appreciated.

    Regards<span class="m_539832804604893744HOEnZb"><font color="#888888">

    Michael</font></span><div><div class="m_539832804604893744h5">

    

    

    <div class="m_539832804604893744m_4611260028888960213moz-cite-prefix">On 11/10/2016 19:39, Bill Ladwig wrote:

    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hi Michael,
        <div>

        </div>
        <div>I should have explained this better.  Take your version of
          DINTERP3DZ and change the name of the routine to something
          unique, like MYINTERP, and place this in its own .f file, like
          myinterp.f.  Then, only use WRAPIT on this new fortran file.  
          You&#39;re trying to make a new routine here, not replace the one
          in NCL.  WRAPIT will generate a new shared library file for
          it.  You can then use this new routine by adding </div>
        <div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px;line-height:12pt">

          </span></div>
        <div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px;line-height:12pt">external
            MYINTERP &quot;/path/to/myinterp.so&quot;</span></div>
        <div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px;line-height:12pt">

          </span></div>
        <div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px;line-height:12pt">to
            the top of your script.</span></div>
        <div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px;line-height:12pt">

          </span></div>
        <div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px;line-height:12pt">If
            you don&#39;t assign a new name to the routine, you&#39;re going to
            have name conflict problems with the one included in NCL.  I
            would try to get the WRAPIT solution working first, because
            building NCL from source can be very difficult.</span></div>
        <div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px;line-height:12pt">

          </span></div>
        <div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px;line-height:12pt">Bill</span></div>
      </div>
      <div class="gmail_extra">

        <div class="gmail_quote">On Tue, Oct 11, 2016 at 2:01 AM,
          Michael Weston <span dir="ltr">&lt;<a href="mailto:mjweston@masdar.ac.ae" target="_blank">mjweston@masdar.ac.ae</a>&gt;</span>
          wrote:

          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hi Bill

              

              Thank you, this is exactly what I was looking for.
              Modifying the source subroutine for DINTERP3DZ was simple
              enough (I edited it in wrf_user.f but attached as
              dinterp3dz.f fyi). 

              I followed the WRAPIT instructions and then tried to run
              with the precompiled binary NCL.

              i.e. edited ni/src/lib/nfp/wrfW.c to include a new 2d
              double point precision variable as input to the function.

              

              diff wrfW.bak wrfW.c 

              17c17

              &lt;                             <wbr>              
              double *,int *,int *, int*,

              ---

              &gt;                             <wbr>              
              double *, double *,int *,int *, int*,

              1918c1918

              &lt;     NGCALLF(dinterp3dz,DINTERP3DZ)<wbr>(tmp_v3d,tmp_v2d,tmp_z,tmp_loc<wbr>,

              ---

              &gt;     NGCALLF(dinterp3dz,DINTERP3DZ)<wbr>(tmp_v3d,tmp_v2d,tmp_z,tmp_loc<wbr>,tmp_sfc,

              

              

              I then ran WRAPIT (from precompiled binary) 

              WRAPIT $NCL_SOURCE/ni/src/lib/nfp/wrf<wbr>W.c
              $NCL_SOURCE/ni/src/lib/nfpfort<wbr>ran/wrf_user.f

              to create wrfW.so

              

              I then tried to call it as suggested in an ncl script
              using (wrf_t1.ncl attached) summary below:

                external INTERP &quot;/usr/local/ncl/source_code/nc<wbr>l_ncarg-6.3.0/ni/src/lib/nfp/w<wbr>rfW.so&quot;

              begin

                INTERP::dinterp3dz(tk,p,psfc)

              end

              

              gives a warning

              warning:Could not find Init() in external file...file not
              loaded

              fatal:syntax error: line 16 in file ./wrf_t1.ncl before or
              near : 

                EX01:

              ------^

              

              fatal:error in statement

              

              So I tried using the environment route.

              export NCL_DEF_LIB_DIR=/path/to/share<wbr>d_objects 

              

              and removed the double EX01::

              

              fatal:syntax error: line 16 in file ./wrf_t1.ncl before or
              near \n 

                dinterp3dz(tk,p,psfc)

              -----------------------^

              

              fatal:syntax error: possibly an undefined procedure

              

              The next trick is to compile NCL form source...and retry
              the above.

              

              Regards<span class="m_539832804604893744m_4611260028888960213HOEnZb"><font color="#888888">

                  Michael</font></span>
              <div>
                <div class="m_539832804604893744m_4611260028888960213h5">

                  

                  

                  <div>On 10/10/2016 20:08, Bill Ladwig wrote:

                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hi Michael,
                      <div>

                      </div>
                      <div>You have found the NCL and C wrappers, but
                        the Fortran function is located at:
                        ni/src/lib/nfpfort/wrf_user.f and the routine
                        name is DINTERP1D.  You can copy and modify this
                        routine to add the X, Y loops and then wrap it
                        using the wrapit script (see <a class="m_539832804604893744m_4611260028888960213moz-txt-link-freetext" href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a>Docume<wbr>nt/Tools/WRAPIT.shtml). 

                        Or, better yet, you could copy and modify
                        DINTERP3DZ to take your surface pressure field,
                        as it&#39;s mostly set up to do what you want.  You
                        just need to change &quot;HEIGHT&quot; to grab from the 2D
                        array inside the I,J loop instead of using the
                        constant &quot;LOC&quot; value.</div>
                      <div>

                      </div>
                      <div>Best of luck,</div>
                      <div>

                      </div>
                      <div>Bill</div>
                    </div>
                    <div class="gmail_extra">

                      <div class="gmail_quote">On Mon, Oct 10, 2016 at
                        3:39 AM, Michael Weston <span dir="ltr">&lt;<a class="m_539832804604893744m_4611260028888960213moz-txt-link-abbreviated" href="mailto:mjweston@masdar.ac.ae" target="_blank">mjweston@masdar.ac.ae</a>&gt;</span>
                        wrote:

                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF"> Hi
                            Bill,

                            

                            Thanks for the reply. I hadn&#39;t considered
                            your approach yet. Unfortunately the time
                            required in looping through all points is
                            prhibitive and I would rather modify code to
                            use an array approach. Do you know where the
                            built in functions are defined in ncl?

                            e.g. wrf_interp_1d is called from
                            WRFUserARW.ncl, but is not defined in the
                            script.

                            I downloaded the source code and did a grep
                            on ALL the files;

                            

                            grep -i -H wrf_interp_1d source_files.

                            

                            It is not defined anywhere except for error
                            handling in ./ni/src/lib/nfp/wrfW.c and
                            ./ni/src/lib/nfp/wrapper.c. Perhaps I am
                            missing something here?

                            

                            Regards

                            Michael
                            <div>
                              <div>

                                

                                <div>On 05/10/2016 21:01, Bill Ladwig
                                  wrote:

                                </div>
                                <blockquote type="cite">
                                  <div dir="ltr">Hi Michael,
                                    <div>

                                    </div>
                                    <div>There is nothing in the WRF
                                      routines that will do this out of
                                      the box, but you can manually
                                      construct this yourself using
                                      wrf_interp_1d.  See <a class="m_539832804604893744m_4611260028888960213moz-txt-link-freetext" href="http://www.ncl.ucar.edu/Docume" target="_blank">http://www.ncl.ucar.edu/Docume</a><wbr>nt/Functions/Built-in/wrf_inte<wbr>rp_1d.shtml. 


                                      Assuming I&#39;m completely
                                      understanding what you are trying
                                      to do, you would have to iterate
                                      over the nx x ny horizontal grid,
                                      then supply the vertical column
                                      values for each grid point and run
                                      the wrf_interp_1d routine to get
                                      the interpolated value.  So, at
                                      each horizontal grid point, v_in
                                      would be the vertical column for
                                      your variable of interest, z_in
                                      would be the vertical coordinates
                                      for the v_in column, and z_out
                                      would be the desired surface
                                      pressure value (as an array with
                                      one element).</div>
                                    <div>

                                    </div>
                                    <div>This will probably take a while
                                      to run, so plan accordingly.</div>
                                    <div>

                                    </div>
                                    <div>Hope this helps,</div>
                                    <div>

                                    </div>
                                    <div>Bill</div>
                                  </div>
                                  <div class="gmail_extra">

                                    <div class="gmail_quote">On Tue, Oct
                                      4, 2016 at 11:59 PM, Michael
                                      Weston <span dir="ltr">&lt;<a class="m_539832804604893744m_4611260028888960213moz-txt-link-abbreviated" href="mailto:mjweston@masdar.ac.ae" target="_blank">mjweston@masdar.ac.ae</a>&gt;</span>
                                      wrote:

                                      <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                        <div text="#000000" bgcolor="#FFFFFF"> Folks,

                                          

                                          I am looking for an ncl
                                          function that can do vertical
                                          interpolation in 3d, but
                                          instead of using a constant
                                          level to interpolate to, I
                                          want to use an array variable
                                          to interpolate to.

                                          

                                          e.g. from existing function
                                          wrf_interp_3d_z

                                          

                                          <pre>function wrf_interp_3d_z (
                v3d     : numeric,  
                vert    : numeric,  
                loc [1] : numeric   
        )</pre>
                                          loc is a constant pressure or
                                          constant height.

                                          I want to use &quot;surface
                                          pressure -x&quot; to get variables
                                          at the top of the surface
                                          layer, so loc would be a 2d
                                          array with ny x nx.

                                          

                                          Does such a function exist?

                                          

                                          Thanks<span><font color="#888888">

                                              

                                              <div>-- 

                                                

                                                <div>
                                                  <div><b>Michael</b><font face="Arial,sans-serif" color="#1F497D"><b> </b></font><font face="Arial,sans-serif" color="black"><b>Weston</b></font><font face="Arial,sans-serif" color="black"><b>

                                                      </b></font><font face="Arial,sans-serif" color="black" size="2"><span style="font-size:10pt"></span></font></div>
                                                </div>
                                              </div>
                                            </font></span></div>
                                        

                                        ______________________________<wbr>_________________

                                        ncl-talk mailing list

                                        <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>

                                        List instructions, subscriber
                                        options, unsubscribe:

                                        <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a>

                                        

                                      </blockquote>
                                    </div>
                                    

                                  </div>
                                </blockquote>
                                

                              </div>
                            </div>
                            <div>-- 

                              

                              <div>
                                <div><b>Michael</b><font face="Arial,sans-serif" color="#1F497D"><b> </b></font><font face="Arial,sans-serif" color="black"><b>Weston</b></font><font face="Arial,sans-serif" color="black"><b>

                                    </b></font><font face="Arial,sans-serif" color="black" size="2"><span style="font-size:10pt">Research
                                      Engineer </span></font></div>
                                <img alt="" src="cid:part9.06000804.09030105@masdar.ac.ae" height="57" width="339">

                                

                                <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">PO Box
                                          54224, Abu Dhabi, </span></font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

                                          United Arab Emirates</span></font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

                                          Office   <a href="tel:%2B971%202%20810%209510" value="+97128109510" target="_blank">+971 2 810
                                            9510</a></span></font></span></font></div>
                                <font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

                                  </span></font>
                                <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">Email   </span></font><font face="Times New Roman,serif"><a class="m_539832804604893744m_4611260028888960213moz-txt-link-abbreviated" href="mailto:mjweston@masdar.ac.ae" target="_blank">mjweston@masdar.ac.ae</a></font><font face="Times New Roman,serif" color="#0391BE"> </font><font face="Times New Roman,serif" color="black"> </font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt"></span></font></span></font></div>
                                <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font color="black"> </font><a href="http://www.masdar.ac.ae/" target="_blank"><font face="Arial,sans-serif" size="2"><span style="font-size:10pt"></span></font></a><font face="Arial,sans-serif" size="2"><a class="m_539832804604893744m_4611260028888960213moz-txt-link-freetext" href="http://www.masdar.ac.ae" target="_blank">http://www.masdar.ac.ae</a></font></span></font></div>
                                <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Times New Roman,serif" color="black" size="3"><span style="font-size:12pt"><b> </b></span></font></span></font></div>
                                <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"> </span></font></div>
                                <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Webdings" color="#0099FF" size="2"><span style="font-size:10pt">P</span></font><font color="#0099FF" size="2"><span style="font-size:10pt"> </span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><i>Please

                                            consider the environment
                                            before printing this email</i></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><i>

                                          </i></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt">

                                          This transmission is
                                          confidential and intended
                                          solely for the person or
                                          organization to whom it is
                                          addressed. It may contain
                                          privileged and confidential
                                          information. If you are not
                                          the intended recipient, you
                                          should not copy, distribute or
                                          take any action in reliance on
                                          it. If you have received this
                                          transmission in error, please
                                          notify us immediately by
                                          e-mail at </span></font><font face="Arial,sans-serif" size="1"><span style="font-size:8pt"><b><font color="#0099FF"><a class="m_539832804604893744m_4611260028888960213moz-txt-link-abbreviated" href="mailto:info@masdar.ae" target="_blank">info@masdar.ae</a></font></b></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><b>.</b>
                                        </span></font></span></font></div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      

                    </div>
                  </blockquote>
                  

                  <div>-- 

                    

                    <div>
                      <div><b>Michael</b><font face="Arial,sans-serif" color="#1F497D"><b> </b></font><font face="Arial,sans-serif" color="black"><b>Weston</b></font><font face="Arial,sans-serif" color="black"><b>

                          </b></font><font face="Arial,sans-serif" color="black" size="2"><span style="font-size:10pt">Research Engineer </span></font></div>
                      <img alt="" src="cid:part15.02090809.02070308@masdar.ac.ae" height="57" width="339">

                      

                      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">PO
                                Box 54224, Abu Dhabi, </span></font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

                                United Arab Emirates</span></font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

                                Office   <a href="tel:%2B971%202%20810%209510" value="+97128109510" target="_blank">+971
                                  2 810 9510</a></span></font></span></font></div>
                      <font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

                        </span></font>
                      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">Email   </span></font><font face="Times New Roman,serif"><a class="m_539832804604893744m_4611260028888960213moz-txt-link-abbreviated" href="mailto:mjweston@masdar.ac.ae" target="_blank">mjweston@masdar.ac.ae</a></font><font face="Times New Roman,serif" color="#0391BE"> </font><font face="Times
                              New Roman,serif" color="black"> </font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt"></span></font></span></font></div>
                      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font color="black"> </font><a href="http://www.masdar.ac.ae/" target="_blank"><font face="Arial,sans-serif" size="2"><span style="font-size:10pt"></span></font></a><font face="Arial,sans-serif" size="2"><a class="m_539832804604893744m_4611260028888960213moz-txt-link-freetext" href="http://www.masdar.ac.ae" target="_blank">http://www.masdar.ac.ae</a></font></span></font></div>
                      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Times New
                              Roman,serif" color="black" size="3"><span style="font-size:12pt"><b> </b></span></font></span></font></div>
                      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"> </span></font></div>
                      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Webdings" color="#0099FF" size="2"><span style="font-size:10pt">P</span></font><font color="#0099FF" size="2"><span style="font-size:10pt"> </span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><i>Please

                                  consider the environment before
                                  printing this email</i></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><i>

                                </i></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt">

                                This transmission is confidential and
                                intended solely for the person or
                                organization to whom it is addressed. It
                                may contain privileged and confidential
                                information. If you are not the intended
                                recipient, you should not copy,
                                distribute or take any action in
                                reliance on it. If you have received
                                this transmission in error, please
                                notify us immediately by e-mail at </span></font><font face="Arial,sans-serif" size="1"><span style="font-size:8pt"><b><font color="#0099FF"><a class="m_539832804604893744m_4611260028888960213moz-txt-link-abbreviated" href="mailto:info@masdar.ae" target="_blank">info@masdar.ae</a></font></b></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><b>.</b>
                              </span></font></span></font></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        

      </div>
    </blockquote>
    

    <div class="m_539832804604893744m_4611260028888960213moz-signature">-- 

      
      
      

      <div class="m_539832804604893744m_4611260028888960213moz-signature">
        <div class="m_539832804604893744m_4611260028888960213moz-signature"><b>Michael</b><font face="Arial,sans-serif" color="#1F497D"><b> </b></font><font face="Arial,sans-serif" color="black"><b>Weston</b></font><font face="Arial,sans-serif" color="black"><b>

            </b></font><font face="Arial,sans-serif" color="black" size="2"><span style="font-size:10pt">Research Engineer </span></font></div>
        <img alt="" src="cid:part21.07090704.06000805@masdar.ac.ae" height="57" width="339">

        

        <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">PO

                  Box 54224, Abu Dhabi, </span></font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

                  United Arab Emirates</span></font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

                  Office   <a href="tel:%2B971%202%20810%209510" value="+97128109510" target="_blank">+971 2 810 9510</a></span></font></span></font></div>
        <font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

          </span></font>
        <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">Email   </span></font><font face="Times New Roman,serif"><a class="m_539832804604893744m_4611260028888960213moz-txt-link-abbreviated" href="mailto:mjweston@masdar.ac.ae" target="_blank">mjweston@masdar.ac.ae</a></font><font face="Times New Roman,serif" color="#0391BE"> </font><font face="Times New Roman,serif" color="black"> </font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt"></span></font></span></font></div>
        <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font color="black"> </font><a href="http://www.masdar.ac.ae/" target="_blank"><font face="Arial,sans-serif" size="2"><span style="font-size:10pt"></span></font></a><font face="Arial,sans-serif" size="2"><a class="m_539832804604893744m_4611260028888960213moz-txt-link-freetext" href="http://www.masdar.ac.ae" target="_blank">http://www.masdar.ac.ae</a></font></span></font></div>
        <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Times New Roman,serif" color="black" size="3"><span style="font-size:12pt"><b> </b></span></font></span></font></div>
        <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"> </span></font></div>
        <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Webdings" color="#0099FF" size="2"><span style="font-size:10pt">P</span></font><font color="#0099FF" size="2"><span style="font-size:10pt">
                </span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><i>Please
                    consider the environment before printing this email</i></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><i>

                  </i></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt">

                  This transmission is confidential and intended solely
                  for the person or organization to whom it is
                  addressed. It may contain privileged and confidential
                  information. If you are not the intended recipient,
                  you should not copy, distribute or take any action in
                  reliance on it. If you have received this transmission
                  in error, please notify us immediately by e-mail at </span></font><font face="Arial,sans-serif" size="1"><span style="font-size:8pt"><b><font color="#0099FF"><a class="m_539832804604893744m_4611260028888960213moz-txt-link-abbreviated" href="mailto:info@masdar.ae" target="_blank">info@masdar.ae</a></font></b></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><b>.</b> </span></font></span></font></div>
      </div>
    </div>
  </div></div></div>

</blockquote></div>
</div>



</blockquote>
<div class="m_539832804604893744moz-signature">-- 

  

    
    
  
  
    

    <div class="m_539832804604893744moz-signature">
      <div class="m_539832804604893744moz-signature"><b>Michael</b><font face="Arial,sans-serif" color="#1F497D"><b> </b></font><font face="Arial,sans-serif" color="black"><b>Weston</b></font><font face="Arial,sans-serif" color="black"><b>

          </b></font><font face="Arial,sans-serif" color="black" size="2"><span style="font-size:10pt">Research Engineer
          </span></font></div>
      <img alt="" src="cid:part27.04010804.09050202@masdar.ac.ae" height="57" width="339">

      

      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">PO
                Box 54224, Abu Dhabi, </span></font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

                United Arab Emirates</span></font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

                Office   <a href="tel:%2B971%202%20810%209510" value="+97128109510" target="_blank">+971 2 810 9510</a></span></font></span></font></div>
      <font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">

        </span></font>
      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">Email   </span></font><a href="mailto:mjweston@masdar.ac.ae" target="_blank"><font face="Times New Roman,serif">mjweston@masdar.ac.ae</font></a><font face="Times New Roman,serif" color="#0391BE"> </font><font face="Times New Roman,serif" color="black"> </font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt"></span></font></span></font></div>
      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font color="black"> </font><a href="http://www.masdar.ac.ae/" target="_blank"><font face="Arial,sans-serif" size="2"><span style="font-size:10pt">http://www.masdar.ac.ae</span></font></a></span></font></div>
      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Times New Roman,serif" color="black" size="3"><span style="font-size:12pt"><b> </b></span></font></span></font></div>
      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"> </span></font></div>
      <div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Webdings" color="#0099FF" size="2"><span style="font-size:10pt">P</span></font><font color="#0099FF" size="2"><span style="font-size:10pt"> </span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><i>Please consider the
                  environment before printing this email</i></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><i>

                </i></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt">

                This transmission is confidential and intended solely
                for the person or organization to whom it is addressed.
                It may contain privileged and confidential information.
                If you are not the intended recipient, you should not
                copy, distribute or take any action in reliance on it.
                If you have received this transmission in error, please
                notify us immediately by e-mail at </span></font><font face="Arial,sans-serif" size="1"><span style="font-size:8pt"><b><font color="#0099FF"><a class="m_539832804604893744moz-txt-link-abbreviated" href="mailto:info@masdar.ae" target="_blank">info@masdar.ae</a></font></b></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><b>.</b> </span></font></span></font></div>
    </div>
  

</div></div></div></div></blockquote></div><br></div>