Skip to content

Commit

Permalink
Merge pull request #858 from sul-dlss/ensure-stats-file
Browse files Browse the repository at this point in the history
Ensure stats file is created
  • Loading branch information
edsu committed Mar 13, 2024
2 parents 533e7b9 + 630ae5d commit e495765
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/gis_robot_suite/raster_normalizer.rb
Expand Up @@ -79,6 +79,7 @@ def convert_8bit_to_rgb

def compute_statistics
Kernel.system("#{Settings.gdal_path}gdalinfo -mm -stats -norat -noct #{output_filepath}", exception: true)
raise "load-raster: #{bare_druid} gdalinfo did not create stats file" unless File.size?("#{output_filepath}.aux.xml")
end

def tmpdir
Expand Down

0 comments on commit e495765

Please sign in to comment.