apply formula (raster calculator) between two files
suzuki
Global Mapper User
some questions about apply formula (raster calculator)
i have 2 files (elevation Geotiff format) File01.tif and File02.tif
each file has only one band, and same pixel size
is it possible to use "raster calculator" or "apply_formula script" do some calculation between two file (not one file two bands)
such as :
output = File01/ File02
"output" is what i want
thanks
--
Best regards
i have 2 files (elevation Geotiff format) File01.tif and File02.tif
each file has only one band, and same pixel size
is it possible to use "raster calculator" or "apply_formula script" do some calculation between two file (not one file two bands)
such as :
output = File01/ File02
"output" is what i want
thanks
--
Best regards
Answers
-
Hi suzuki,
Sorry to be so slow answering you - I missed this question somehow.
As far as I know, there's no way currently to do this: you'd need to combine the two bands into one raster layer, and then do the operation.
I've added a new feature request (#20821) for this functionality, and we'll be evaluating it for inclusion in a future Global Mapper release. We'll reply here when we've added it.
Thanks for the suggestion & best regards,
~Jeff -
Hi again,
Oops, a little red-faced here. You should be able to load multiple images and select bands from whichever layer you like, and the calculations will proceed. It looks like the calculator will take the largest image dimensions to do the calculations over, but if your images are the same size, it should work just fine.
~Jeff
-
I have a follow up on the same question: I have several (10+) fiiles that are DEMS (one band with elevation). I'd like to calculate the average and standard deviation, but I don't know what the syntax is for writing the formula...specifically, how to reference each file. Fore example, to calculate the mean of two files, do I write:
(file1 + file2 )/2. ?
How best to script it? I imaging I want to save the running sum and sum of squares.
Thanks
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website