Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [matlab]

Questions regarding the MATLAB programming language.

1
vote
1answer
63 views

How to extract lat-lon from MOD10C2 hdf data in matlab?

We can import and read all given bands/parameters of MOD10C2, lat and lon is not given as separate band rather embedded with other bands. How we can extract from MOD10C2 hdf data in matlab. Similar ...
5
votes
0answers
59 views

Generating netCDF file composed of zeros?

I need to generate an all-zeros file as an input file for an Earth Systems model (DGVM) I'm using. I have a file with the same dimensions as the zero file. I have R and MATLAB and use a Fedora machine....
5
votes
2answers
156 views

correct way to calculate transport through a section in an ocean numerical model

Suppose that I want to calculate the transport across a certain transect (green line) from the outputs of an ocean numerical model. The model has the $u$ values at the center of the grids (crosses) ...
3
votes
1answer
454 views

How to calculate the kinetic energy spectra from ocean current timeseries?

How does one practically compute the kinetic energy spectra from a timeseries of u- and v- Cartesian components of ocean current velocity ($m s^{-1}$) obtained from an Acoustic Doppler Current ...
2
votes
0answers
48 views

Unable to read modis sst netcdf file in matlab [duplicate]

I'm using Matlab to read MODIS Aqua sea surface temperature data. Unfortunately I am not able to do it. It will be great if any of you can help me with that. ...
8
votes
1answer
490 views

Analytical solution for seismic wavefield in MATLAB

I have been trying to evaluate the analytical solution for a wave travelling in a homogeneous, infinite media. For a given source $S(t)$, the wave-field can be calculated at a distance $r$, for a ...
2
votes
1answer
343 views

Velocity from time and depth seismic images

I have a seismic dataset that contains a depth-migrated seismic (amplitude) volume in depth and then the exact same volume converted to time using the migration velocities. Unfortunately, I do not ...
-2
votes
1answer
187 views

Where can i find a shallow-water solver in MATLAB?

I do not know how to solve the shallow water equations in the matrix form in MATLAB. I didn't find anything useful on the internet. I have the specific mathematical equations to solve (please see the ...
5
votes
2answers
2k views

How to plot a Hovmoller diagram in MATLAB?

Im trying to create a Hovmoller diagram in MATLAB but I'm very new to programming and have no clue what to do. Im trying to do it for vorticity. Below is the code that I have currently. Any input or ...
3
votes
2answers
2k views

How do I convert between different east longitude coordinates?

I have two datasets that represent longitude in different ways. The first represents longitude as degrees from east to 180, but then as negative east so that I have a series which looks like: ...
6
votes
2answers
2k views

How to plot lat-lon-rainfall in MATLAB?

I have average annual rainfall values at few grids, as shown in below example; Lat: 25.5 26.5 33.5 34.5 35.5 36.5 41.5 42.5 Lon: 89.5 91.5 78.5 79.5 83.5 84.5 75.5 76.5 Rain: 110 120 122 135 114 ...
8
votes
2answers
553 views

How to perform regridding (1.0d to 0.5d) using bilinear interpolation for an irregular area?

I need to regrid temperature dataset from 1 degree to 0.5 degree. In case we have data available for all grids falling in a square, as shown below, we can simply regrid it using bilinear/bicubic ...
7
votes
1answer
2k views

How to read a NetCDF4 file in Matlab?

I have downloaded the sea surface temperature data from the Ocean Color website, the file is in NetCDF format and contains no of geophysical_data variables like sst,...
7
votes
1answer
1k views

Available Matlab code to design Seismic Colored Inversion Operator?

I want to apply seismic colored inversion technique to my datasets. Is there a Matlab code available that I can easily use? Are there any other recommended codes to apply seismic colored inversion?