<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.tgt
        {mso-style-name:tgt;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Dear Nanjian,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Today I also encountered this error, it happens when Cartopy version is < 0.18.0. I updated to Cartopy 0.19.0 and the error disappeared.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Good luck!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Ian<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">On 4/15/21, 10:42 PM, "<a href="mailto:ecco-support-bounces@mit.edu">ecco-support-bounces@mit.edu</a> on behalf of Wang, Ou (US 329B)" <<a href="mailto:ecco-support-bounces@mit.edu">ecco-support-bounces@mit.edu</a>
on behalf of <a href="mailto:ou.wang@jpl.nasa.gov">ou.wang@jpl.nasa.gov</a>> wrote:<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-left:.5in">Hello Nanjian,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">I can’t reproduce the error. Using the code attached below, I’m able to generate the attached map. I’m using the latest ECCOv4-py from
<a href="https://urldefense.us/v3/__https:/github.com/ECCO-GROUP/ECCOv4-py.git__;!!PvBDto6Hs4WbVuu7!cTMGadP8UpF0vtZYkipRe-Z1DxH27jAns866CfkLrIaylh0pYEG3fSOjDxvQHnuNt6EB$">
https://github.com/ECCO-GROUP/ECCOv4-py.git</a> and cartopy Version 0.18.0. <o:p>
</o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Your screen capture only shows part of the error message. It would be helpful if you could post the complete error message.
<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Regards,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Ou <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">#!/usr/bin/env python3<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"># -*- coding: utf-8 -*-<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">import xarray as xr<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">import matplotlib.pylab as plt<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">import sys<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">sys.path.append('~/modules/ECCOv4-py/')<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">import ecco_v4_py as ecco<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">grid_dir='./V4grid/'<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">grid_nm='ECCO-GRID.nc'<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">plt.figure(figsize=(12,6))<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">ecco_ds=xr.open_dataset(grid_dir+grid_nm)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">lat=20<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">ones=xr.ones_like(ecco_ds.YC)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">dome_maskc=ones.where(ecco_ds.YC>lat,0)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">ecco.plot_proj_to_latlon_grid(ecco_ds.XC, ecco_ds.YC, dome_maskc,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> projection_type='robin',cmap='viridis')<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black"><ecco-support-bounces@mit.edu> on behalf of
</span><span style="font-size:12.0pt;font-family:"MS Gothic";color:black">刘南健</span><span style="font-size:12.0pt;color:black"> <liunanjian20@mails.ucas.ac.cn><br>
<b>Reply-To: </b>"ECCO support list, wider membership" <ecco-support@mit.edu><br>
<b>Date: </b>Thursday, April 15, 2021 at 9:45 PM<br>
<b>To: </b>"ecco-support@mit.edu" <ecco-support@mit.edu><br>
<b>Subject: </b>[EXTERNAL] [ecco-support] Confusion about the ECCO Python package</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
</div>
<p style="margin-left:.5in"><span class="tgt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#333333;background:#F7F8FA">Dear teacher, I am a postgraduate student from the University of Chinese Academy of Sciences. Recently, I have encountered
some problems when using the ECCO package, so I am writing this email to consult with you.It worked well when I used it before, but I found that it didn't work in recent days. The problem is in the ECCO.PLOT_PROJ_TO_LATLON_GRID section. Let me show it with
a screenshot.I also looked for some solutions on the Internet, but they didn't work out. So I'm sorry to bother you</span></span>
<o:p></o:p></p>
<p style="margin-left:.5in"><img border="0" width="1785" height="795" style="width:18.5937in;height:8.2812in" id="_x0000_i1025" src="cid:image001.png@01D74BD6.037B8470"><o:p></o:p></p>
</div>
</body>
</html>