Questions tagged [matlab]

MATLAB® is a high-level language and interactive environment for numerical computation, visualization, and programming.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

MATLAB index out of matrix Dimension error when using matlab for raster calculations [duplicate]

I am trying to use Triple Collocation's method to calculate the relative error of 4 sets of satellite products. These 4 sets of satellite products have been sampled to the same resolution and ranks. ...
user avatar
-1 votes
0 answers
26 views

MATLAB index out of matrix Dimension error when using matlab for time series raster

I am trying to use Triple Collocation's method to calculate the relative error of 4 sets of satellite products. These 4 sets of satellite products have been sampled to the same resolution and ranks. ...
user avatar
0 votes
0 answers
27 views

Wrong raster values

I generated a local relief file from DEM using MATLAB TopoToolbox. Automatically the file set the max value 3621 m (which is not true because there is not that difference between max and min altitude ...
user avatar
1 vote
0 answers
22 views

m_proj equivalent in R

I am looking for an equivalent function of m_proj form Matlab in R. I am familiar with the crs or st_crs function in R but it is difficult to set the lon and lat limits. I am looking to convert the ...
user avatar
1 vote
0 answers
202 views

Trilateration using latitude/longitude points, and distances

I want to find out an unknown target location (latitude and longitude co-ordinates). There are +3 lat-long known points and for each point a distance in meters to the target location. I found some ...
user avatar
  • 11
0 votes
1 answer
28 views

How can I use "spline" or Interpolation on a UK Map? [closed]

Basically, I have a number of data across a number of UK cities (London, Aberdeen, Birmingham, etc.). I want to plot them onto a map and then use something like a "contour map" to get ...
user avatar
  • 1
0 votes
0 answers
27 views

Landsat Spectral & Band Radiance Units

I've converted some Landsat 8 imagery to TOA radiance using Matlab & the process outlined here: https://www.usgs.gov/landsat-missions/using-usgs-landsat-level-1-data-product How do I calculate the ...
user avatar
0 votes
0 answers
61 views

Conducting 'if' conditional and 'for' loop in Google Earth Engine

I'm going to conduct if conditional and for loop in Google Earth Engine. However, the process is completely different to other programming language such as MATLAB. I know about ee.Algorithm.IF and map ...
user avatar
  • 11
0 votes
1 answer
161 views

How to interpret "AOD_QA" layer of MCD19A2?

I read hdf data using MATLAB, qa = hdfread("MCD19A2.A2003060.h28v04.006.2018018233855.hdf","AOD_QA"); According to page 13 of the user guide (MODIS Multi-Angle Implementation of ...
user avatar
0 votes
0 answers
242 views

Converting sinusoidal projection into WGS84 lat and lon values using MATLAB for MODIS file

I have a MODIS HDF file, MCD19A2 product. The files are stored using sinusoidal projection for a tile. A tile is then divided into 1200 by 1200 grids (or in 1200 by 1200 matrix, you can say). The ...
user avatar
0 votes
1 answer
248 views

Which is the latest LTR QGIS version with Python 3.7?

In 3.16.10 there is 3.9 which does not support matlab engine.
user avatar
0 votes
2 answers
150 views

Import MATLAB data (.mat) in GRASS

I have a file from MATLAB in (.mat) format. I want to import this in GRASS GIS, but I get the following warning.
user avatar
  • 11
1 vote
0 answers
1k views

Compute elevation and azimuth from lat, lon, and altitude

Given the latitude, longitude and altitude of two points (in my case satellite and ground antenna) I would like to compute the azimuth and elevation angle between the two points from the ground ...
user avatar
  • 111
1 vote
0 answers
83 views

Create cross sections equally spaced in a poly line imported from QGIS to MATLAB?

I had to create an Excel sheet with each profile cross-section which gave me the coordinates and elevations from a poly line of 2300 m length, referenced from 5 different DGM, which composed the study ...
user avatar
1 vote
0 answers
201 views

Cropping Landsat images with shapefile in MATLAB

I want to crop several Landsat images, of different satellites, in MATLAB employing a shapefile. For only one image, I could manage to do it properly. But if I try the same with a second image, the ...
user avatar
  • 333
2 votes
0 answers
582 views

Writing a GeoTIFF file that is rotated with respect to a projected coordinate system using Matlab's Mapping Toolbox

I've been prototyping some processing techniques for SAR images in Matlab. This requires importing a GeoTIFF file, and then exporting a file with modified data but the same spatial reference. I have ...
user avatar
  • 154
1 vote
1 answer
1k views

QGIS: Clip Raster by Mask Layer-permanently remove black edges

I want to introduce geotiff images generated in QGIS by clipping ortho imagery to a shapefile into matlab. However, the clipped raster images come with black borders. I managed to remove them in QGIS (...
user avatar
1 vote
2 answers
90 views

Geospatial Analysis

How can I convert spatial information like the elevation, land use(source:corine land cover map), location of power transmission lines, etc to a 2D array of numbers like a 2D spatial array based on ...
user avatar
2 votes
0 answers
101 views

QGIS raster files not aligned due to different extent

I have a DEM file of building heights calculated from DSM-DTM in QGIS. Based on this DEM file, I generated a mask that indicates the presence of buildings in matlab. However, when I load the building ...
user avatar
0 votes
1 answer
242 views

Plotting data only inside polygon in MATLAB?

We can plot data with polygon in MATLAB as a data size of 651*1200*12 S.X and S.Y shows the X and Y values of polygon. for i = 1:12 subplot(4,3,i) pcolor(lon1,lat1,data(:,:,i)) ; shading interp ; ...
user avatar
  • 1
1 vote
0 answers
63 views

How to detect the edge of the the curve?

I'm using MATLAB edge function to find the edge of an item in a picture. It's easy to deal with some individual item, like: I can use edge function to get the boundary However, when the picture ...
user avatar
  • 11
-1 votes
1 answer
2k views

Read raster data in Matlab

I have a GeoTIFF image (satellite image) and I need to read the values of every pixel to calculate the sum. How do I do that? I'm new in both Matlab and the geographic field.
user avatar
  • 1
3 votes
0 answers
188 views

Pixel shifts from its actual position in Matlab geospatial plots?

I am plotting a spatial map in MATLAB, where I have LAT-LON info for corresponding fill values. Though the grid lines follows the meridian and parallels drawn in MATLAB plot domain, the fill values ...
user avatar
  • 735
1 vote
0 answers
277 views

How to add metadata such as geokeydirectory, geoasciiparams, modelpixelscale and modeltiepoint to a compressed tiff image?

I have resized my original tiff file (1.5gb) to a tiff file (170mb). But there was no geo reference points in the resized image which was present in my original tiff file. I have attached the ...
user avatar
0 votes
1 answer
108 views

Running MFmask in MATLAB: Error using imfill

I am trying to create a cloud and cloud shadow masking raster using MFmask (https://www.sciencedirect.com/science/article/pii/S0034425717303073) for a Landsat 8 scene. MFmask 1.1 is modified version ...
user avatar
  • 315
0 votes
1 answer
2k views

Using Geotiffwrite or Worldfilewrite for global TIF in MATLAB?

In MATLAB I have written the code: [image,geo]=geotiffread('africa.tif'); info=geotiffinfo('africa.tif'); geotiffwrite('Wafrica.tif',image,geo); but there was error: geotiffwrite>validateR (line ...
user avatar
1 vote
0 answers
117 views

Getting the area of a polygon from Google Earth or .xyz digital elevation model INCLUDING area due to topography

I'm doing some analysis for a study on geomorphology. For this I'm comparing the 'bumpiness' of lava fields to the 'bumpiness' of the surroundings. What I'm trying to do for this is measure the ratio ...
user avatar
0 votes
0 answers
694 views

How to convert an image .jpg to GeoTIFF (with georeference)

I did a linear regression of 26 images with the same structure (rows, columns, resolution, DATUM, projection) using MATLAB. The result that I have got is an image without spatial reference, other ...
user avatar
  • 373
2 votes
1 answer
598 views

Reading LiDAR attributes from a .mat file?

I am working on some LiDAR dataset. I am used to importing the LiDAR data from .las files. I generally use liblas library in Python to import the same. Recently, I found the dataset in .mat format ...
user avatar
1 vote
1 answer
382 views

Read Matlab file as raster in R

I have a .mat file I got from someone, and it's supposed to represent global gridded data. I wanted to read it as a raster in R. Importing was ok, I was able to import using the R.matlab package >...
user avatar
2 votes
0 answers
214 views

Shortest path creation between two lines

I've a raster of temperature of a river, I'd like to extract values horizontally, so from bank to bank, shortest path. so basically extract pixel values along the red lines in the schema I did. What ...
user avatar
  • 91
0 votes
1 answer
58 views

interferometry vertical wavenumber

I want to process a stack of Sentinel 1 SLC images (4) to produce tomographic layers for above ground biomass estimation. To do that, I need to generate the interferometric vertical wave number images ...
user avatar
0 votes
1 answer
330 views

Write referenced GeoTiff with 4 corners on matlab

I have some matlab raster matrix to export to geotif. I also have the location of each corner in Decimal degrees (WGS84). I know how to export and write the data into a geotiff but i'm having a ...
user avatar
0 votes
0 answers
819 views

Correctly display the colors in MATLAB colormap and colorbar?

I am plotting spatial maps with fill values ranging from 0.05 to -0.05 Below is the part of code for plotting colormap and colorbar colormap(brewermap([10],'RdYlBu')); caxis([-0.05 0....
user avatar
  • 735
2 votes
0 answers
242 views

ENVI shows colors of different RGB code the same in a bitmap image wrongly?

As you see in this picture which I've captured in MATLAB, there are two colors. Red with the RGB code (255,0,0) Brown with the RGB code (138,139,1) I've tried to show the same picture in ENVI, ...
user avatar
1 vote
0 answers
538 views

Allign shapefile polygons and underlying image in MATLAB spatial plots?

I am plotting a map in MATLAB. For this I have values at corresponding Latitude-Longitude. I am creating meshgrids for Lat, Lon, and values for plotting the map. Somehow plotted map does not exactly ...
user avatar
  • 735
0 votes
2 answers
811 views

How to adjust rows and columns, retaining cell sizes in arcmap?

The Situation: I have a vector data map with all the countries in the World, including a unique landcode for every country. I need to convert it into a raster map, so I can eventually analyse (with ...
user avatar
2 votes
1 answer
3k views

Sentinel-2 Reflectance calculation

What is the procedure for reflectance calculation from Sentinel 2 1C products downloaded from ESA Scientific Hub?
user avatar
  • 485
0 votes
1 answer
195 views

Lena Histogram 8 bit unsigned image

I am working on Lena image (unsigned 8 bit grayscale 512*512 pixels). I tried to plot the histogram using matlab (inbuilt imhist function) and in arcgis. I am getting different pixel count, appx duble ...
user avatar
1 vote
1 answer
543 views

from .hdf to .geoTIFF of product MOD35

I am trying to create a geoTIFF from an .hdf MOD35_L2, I am trying either a Matlab code, either I heard something about LDOPE-1.7 + MRTSwath but I am not really succeeding. Have anyone ever tried to ...
user avatar
1 vote
1 answer
793 views

Easiest way to create an area raster

The objective is to create a global geotiff raster at 30s resolution (appr 1km) with the pixel value the area of that pixel. I have multiple tools but struggle to find the easiest way. I am aware of ...
user avatar
  • 2,995
-1 votes
1 answer
220 views

Voronoi Polygon Coordinates

I am using Voronoi polygon coordinates and respective node coordinates together. To apply the load to that particular node which is obtained by summing up the loads that lies within the polygon. By ...
user avatar
1 vote
0 answers
163 views

Solar Potential roof-top analysis using GIS and Remote Sensing [closed]

3D Building models were generated by using Google Sketchup Pro and Google Earth. Then shadow casted 2D orthographic raster models were exported as TIFF or JPEG format. For further analysis with ...
user avatar
2 votes
1 answer
368 views

Using spectral library provided by USGS Spectroscopy Lab?

In the USGS Spectroscopy laboratory, the researchers there have worked very hard to measure reflectance of a hundreds of minerals (and plants). Look at this site I downloaded the splib04a - FTP ...
user avatar
  • 123
-2 votes
1 answer
528 views

Exporting data from ArcGIS for use in Fuzzy Logic in Matlab?

How can I export layers from ArcGIS for use in Matlab software for working with Fuzzy Logic, and what extension?
user avatar
1 vote
0 answers
63 views

SPOT 6 parameters to open data in matlab

I'm trying to open SPOT 6 data on Matlab using multibandread, but since I don't have some of the paremeters I'm only getting a black image. I've been looking on the web for these parameters but I ...
user avatar
0 votes
1 answer
330 views

Define polygons with structured data points

I am doing image processing and I get some scatter points (blue) now, filled with random points (red) on it. I want to find the random points lay inside scatter blue circles. So I tired with MATLAB ...
user avatar
3 votes
3 answers
1k views

How to remove cloudy pixel from MODIS NDVI (MOD13Q1)

I am using MODIS NDVI product (MOD13Q1) for the vegetation changes study. I want to remove cloudy or bad pixel from MODIS NDVI data. I am not getting any suitable method or software or any program to ...
user avatar
0 votes
1 answer
758 views

PSO for solving shortest path in matlab

I crate a file that represents 16000 edges with information of start node, end node and cost in a table. In MATLAB i want to solve shortest path with PSO algorithm. How i can solve it?
user avatar
0 votes
1 answer
244 views

ArcMap highlight features from code

I have a shapefile of lines containing an amount n of elements. I exported these features and analyzed them with another program (Matlab), which provided me as an output a row vector of length n ...
user avatar