<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body 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</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;">These are irregularly spaced observational data, the pc variable is obtained to each point of lat and lon. </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 need to create </span><span style="color: rgb(32, 31, 30); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;">the
 coordinates in some type of cartographic projection for spatial plots. </span><span style="color: rgb(32, 31, 30); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;">Is there any
 other way to do this than using proj4?</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<span style="color: rgb(32, 31, 30); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<span style="color: rgb(32, 31, 30); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;">Thanks for the advance</span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De:</b> Rick Brownrigg <brownrig@ucar.edu><br>
<b>Enviado:</b> terça-feira, 21 de janeiro de 2020 18:04<br>
<b>Para:</b> Vanúcia Schumacher <vanucia-schumacher@hotmail.com><br>
<b>Cc:</b> ncl-talk@ucar.edu <ncl-talk@ucar.edu><br>
<b>Assunto:</b> Re: [ncl-talk] Proj4 function</font>
<div> </div>
</div>
<div>
<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="x_gmail_quote">
<div dir="ltr" class="x_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="x_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>
</div>
</body>
</html>