ASC to ASC: Difference between revisions
Content deleted Content added
| No edit summary | Ellis Symons (talk | contribs) | ||
| Line 101: *Converts the file "DEM_M01.asc" for .flt format.<br> :<tt>asc_to_asc.exe -conv DEM_M01.asc</tt> An additional option to set the "no data value" is also possible when running the conversion function: <tt>-ndv <val></tt>. Note, this option will identify NaN values ("not a number") in the input grid, and treat them as no data values during the conversion (regardless of whether they are explicitly labelled as "no data values" in the grid header). This is useful if the user wants to remove all NaN values from the grid. *Converts asc to tif and sets the "no data value" to -999 :<tt>asc_to_asc.exe -conv -tif -ndv -999 DEM_M01.asc</tt> *Removes all NaN values in a tif and replaces them with -999 :<tt>asc_to_asc.exe -conv -tif -ndv -999 <input.tif> -out <output.tif></tt><nowiki>**</nowiki><br> <nowiki>**</nowiki> Note, in the above example it is important to specify an output name with <tt>-out</tt> when converting to the same format (e.g. tif to tif) as otherwise the output will overwrite the input. ==Maximum== | |||