<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Why don't you use ATOMS package scinetcdf (<a href="https://atoms.scilab.org/toolboxes/scinetcdf/1.2" target="_blank" rel="noopener noreferrer">https://atoms.scilab.org/toolboxes/scinetcdf/1.2</a>)? It is precompiled for version 5.X, however, you just need to compile it in Scilab 6.0 to be able to use it. I am using it flawlessly in Scilab 6.0.1.<br /><br />Best,<br /><br />Ekin<br /><br />
--
<br />
Securely sent with Tutanota. Claim your encrypted mailbox today!
<br />
<a href="https://tutanota.com" target="_blank" rel="noopener noreferrer">https://tutanota.com</a><br /><br />22. Jul 2018 12:11 by <a href="mailto:arctica1963@gmail.com" target="_blank" rel="noopener noreferrer">arctica1963@gmail.com</a>:<br /><br /><blockquote class="tutanota_quote" style="border-left: 1px solid #93A3B8; padding-left: 10px; margin-left: 5px;">Hello,<br /><br />I am looking to use netCDF files generated from the GMT software in Scilab<br />6.0.1, but there is no easy way to work the problem other than exporting the<br />data out from the binary grids to either XYZ or ESRI Ascii raster. The<br />latter is a more compact form with the basic structure of a header<br />describing the data limits and structure:<br /><br />ncols 1200 <br />nrows 1200<br />xllcorner -10 Lower-left X (Long-Lat limits -10/10/-10/10<br />yllcorner -10 Lower-Left Y<br />cellsize 0.0166666666667 - increment = 1 arc minute<br />nodata_value -9999<br />451.343170166 436.005554199 443.061035156 443.665924072 465.607574463<br />492.191741943 476.50994873 452.265014648 451.439880371 461.659393311 ......<br />...<br />... all of the Z-values<br />...<br /><br />-4323.2890625 -4315.12451172 -4307.19384766 -4305.27490234 -4311.49902344<br />-4317.90771484 -4324.23046875 -4320.47070313 -4308.60107422 -4292.62011719<br />-4280.39697266<br /><br />This is a moderately large file ~20 mB or so. Is there a way to reliably<br />read this structure and vectorise X, Y, and Z? The data I am looking at is a<br />grid so want to work on the whole grid as eith DEM data or gravity etc.<br /><br />As a test, I converted the grid to xyz, and tried csvRead, having replaced<br />the spaces (which were not a constant number of spaces between values) with<br />commas. The file was in excess of 50 mb, so not that huge really, but<br />csvRead always failed to read all the file and drop out at one specific line<br />(~7608) with a message of inconsistent column numbers, i.e. it though there<br />were only 2 columns when in reality the whole thing was 3 (checked in the<br />program Surfer). When one looks at the line specified, it is clearly 3<br />columns.<br /><br />Does csvRead have a limit to what it can load, if so what is a workaround? I<br />suppose one could chop it down into chunks and concatanate the arrays, but<br />that is a lot more work.<br /><br />Any suggestions?<br /><br />Thanks<br />Lester<br /><br /><br /><br />--<br />Sent from: <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html" target="_blank" rel="noopener noreferrer">http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html</a><br />_______________________________________________<br />users mailing list<br /><a href="mailto:users@lists.scilab.org" target="_blank" rel="noopener noreferrer">users@lists.scilab.org</a><br /><a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank" rel="noopener noreferrer">http://lists.scilab.org/mailman/listinfo/users</a></blockquote> </body>
</html>