New answers tagged jpg
I can answer my own question, because I found the solution. It is a known QGIS 2.8.1. bug that is going to be fixed with version 2.8.2. The problem is with rotational informations stored in the World File. The bug is causing the misreading of such informations. If you try to change rotational information in the World File to be zero (actually all the World ...
The gdal_translate document page http://www.gdal.org/gdal_translate.html may indeed give an impression that the values for Ground Control Points should be closed between brackets [-gcp pixel line easting northing [elevation]]* However, that is not the case as close reading reveals and correct syntax for your case is gdal_translate -of GTiff -a_srs ...
JPEG isn't a spatially aware format. That means it doesn't have the ability to store georeferencing information internally, like a geotiff or potentially the newer JPEG2000 format. If you do not have an accompanying world file, there is no way for Arc to know where the image is supposed to be on the surface of the earth. It sounds like at some point in the ...
the equation is pretty simple and you can find it anywhere. now if you don't know anything about matlab that is a whole different topic NDVI = ((IR - R)/(IR + R)) IR = pixel values from the infrared band R = pixel values from the red band do it for every pixel and get a new image
You need to make a list of the jpeg's and the n loop trough them. You can use the glob module for that: import arcpy, os , glob outworkspace = r"C:\Project\out\OtherFormat" listOfJPG = glob.glob( r"C:\Project\out\*.jpg") arcpy.RasterToOtherFormat_conversion(listOfJPG , outworkspace ,"TIFF") print 'converted'
You should iterate through each file in your directory and call the function on each filename: import os in_direc = 'C:\raster_loc' out_direc = 'C:\converted' for file in os.listdir(in_direc): #check to make sure it's a jpg if 'jpg' in file: #you need to change the parameters of this function call accordingly ...
Top 50 recent answers are included