in reply to Re: Multiply the numbers in a text file
in thread Multiply the numbers in a text file
my file looks something like this
ncols 498 nrows 541 xllcorner 1394682.720294049475 yllcorner 1751328.700356452260 cellsize 2000.000000000000 NODATA_value -9999 -9999 -9999 -9999 -9999 -9999 -9999 0.09 -0.001
Though it is a lot bigger in terms of the number of rows and columns. So what i want to do is skip the first six lines and multiply the rest of the text excluding -9999 with a constant. Also all the small negative values should be converted to 0 or -9999. The resulting can be overwritten onto the same text file or onto a new file.
Thanks a lot for your help
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Multiply the numbers in a text file
by aaron_baugher (Curate) on May 10, 2015 at 06:34 UTC | |
by zegoofer (Initiate) on May 10, 2015 at 14:26 UTC | |
by zegoofer (Initiate) on May 10, 2015 at 15:51 UTC | |
by NetWallah (Canon) on May 10, 2015 at 16:32 UTC | |
by aaron_baugher (Curate) on May 10, 2015 at 16:25 UTC |