<div dir="ltr"><div>Hi,</div><div><br></div><div>A couple of comments:</div><div><br></div><div>i) A simple "Killed" message is the Linux kernels way of saying it catastrophically ran out of memory. On my machine, I'm getting the marginally more descriptive "fatal:NclMalloc Failed:[errno=12]" message. In any case there 59709 lines in that first January file, and you are trying to create a 59709x59709 array of floats, and that's about 14GB which is more than my 16GB machine can accommodate. <br></div><div><br></div><div>ii) Are these irregularly spaced observational data?  Why the nlon x nlat square array?</div><div><br></div><div>iii) I'm confused about the use of proj4/translate_coordinate?  You're data are already in decimal degrees -- why project the values into an equidistant projection?  <br></div><div><br></div><div>iv) I don't understand this question:  "...<span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif"> 
it is possible to make this projection (spatialization of these data) in
 the same resolution as another data in netcdf (spatial reference) and 
using
 a shapefile for a more specific region?"</span></div><div><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif"><br></span></div><div><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif">Rick<br></span></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 21, 2020 at 11:49 AM Vanúcia Schumacher via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif">Hi all,</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif">I'm trying to use the proj4 function to spatialize some ascii data.</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif">The data refer to a variable for each lat and lon points </span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif">However, I am not able to create the NetCDF of some files (for example, January files - Killed message), I believe that the number of lat and lon are very large</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif">And the proj4 function returns the lat and lon values in meters, I needed in decimal degrees.
</span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif">How could I convert?</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif">Another question, I was wondering if it is possible to make this projection (spatialization of these data) in the same resolution as another data in netcdf (spatial reference) and using
 a shapefile for a more specific region?</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif">transform_coordinate(srcProj, dstProj, lons, lats, elevs) because on here lons and lats refers to ascii data</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif">I attached the data and my script for a better view of what I'm trying to do.</span><span><br>
</span>
<div><br>
</div>
<span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif">Thanks for the support</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<br>
</div>
</div>

_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>