Question

Read Data and Store Variables for Hundreds of Files...

Hi all, I have a folder with hundreds of files. I would like to read each file individually and store the results so that, in t...

6 Tage ago | 1 answer | 0

Answered

Change Variable Value at each Iteration Based on Value in Array

After a couple of days, I got the (as expected, pretty easy) solution: if the size of my array is the same length of the files i...

Change Variable Value at each Iteration Based on Value in Array

After a couple of days, I got the (as expected, pretty easy) solution: if the size of my array is the same length of the files i...

etwa 2 Monate ago | 0

| accepted

Question

Change Variable Value at each Iteration Based on Value in Array

Hi all! I'm currently reading through ten .nc files. I am interested in looking at a particular variable contained within each...

2 Monate ago | 1 answer | 0

Question

Save Multiple Matrices from For Loop

Good afternoon! I'm currently working on reading through various levels of a group of .nc files. Every time I read through the...

2 Monate ago | 1 answer | 0

Question

Extracting Data from Over 600 .nc Files...

Hi all! Here's a tough one I'm hoping to receive some guidance on: I'm trying to average a specific variable over six hundred ...

2 Monate ago | 1 answer | 0

Question

Creating a 3-D Plot/Contour Map from Matrix...

Good evening! I have multiple 21 x 21 matrices that represent temperature at 21 different atmospheric pressure levels and 21 d...

3 Monate ago | 1 answer | 0

Answered

Replace Only Certain Values within a Matrix Based on Indices from Another

Got it! Thanks for the help! :) x y ind = find(x~=0) index=setdiff(1:numel(y),ind); y(index)=0 y

Replace Only Certain Values within a Matrix Based on Indices from Another

Got it! Thanks for the help! :) x y ind = find(x~=0) index=setdiff(1:numel(y),ind); y(index)=0 y

4 Monate ago | 0

| accepted

Question

Replace Only Certain Values within a Matrix Based on Indices from Another

Hi all! I have a 200 X 500 matrix. Within that matrix, only a handful of elements have actual numerical values. I have identif...

4 Monate ago | 2 answers | 0

Question

Identify Individual Shape from Matrix Representing Multiple Shapes

Hi all, I have a matrix which represents multiple shapes. (Picture an image with a black background and several white circles ...

4 Monate ago | 2 answers | 0

Answered

Help with Matrices and Index Position

Thanks to all! I just used the "find" function to find all non-NaN values and used the indices related to these values to solve ...

Help with Matrices and Index Position

Thanks to all! I just used the "find" function to find all non-NaN values and used the indices related to these values to solve ...

4 Monate ago | 0

| accepted

Question

Help with Matrices and Index Position

Hi all, I have multiple matrices of the same size (500 x 5,000). I am focusing on the first of the matrices, which has some nu...

4 Monate ago | 1 answer | 0

Question

Replace Values Larger than Threshold with New Value, But Keep Smaller Values

Hi all, I have a 600 x 2 matrix, and I would like to check which values within the first column exceed a threshold. For exampl...

5 Monate ago | 1 answer | 0

Question

Select Specific NC Files in Folder Using Date Included in Filename

Good evening! I hope this message finds everyone healthy and well. I'm currently working with a series of .nc files which repr...

5 Monate ago | 1 answer | 0

Question

Second X-Axis on Bottom of Contour Plot?

Hi everyone! I hope you are all well and safe. Just a quick question: I have a contour plot and I'm trying to add a second x-a...

7 Monate ago | 1 answer | 0

Question

Outline of shape in matrix using contour?

Hi all! I have a matrix with various shapes. The matrix looks something like this (picture included below) when I use the imsh...

7 Monate ago | 1 answer | 0

Answered

2-D Plot with Latitude, Pressure Level, and other Variables

Thank you to all for your input! The issue was addressed using the contour function and focusing on one contour line of interest...

2-D Plot with Latitude, Pressure Level, and other Variables

Thank you to all for your input! The issue was addressed using the contour function and focusing on one contour line of interest...

7 Monate ago | 0

| accepted

Question

2-D Plot with Latitude, Pressure Level, and other Variables

Hi everyone! I have been tasked with plotting specific humidity on a 2-D plot that uses latitude as the x-axis and atmospheric...

7 Monate ago | 1 answer | 0

Question

Combining/Merging Output for Multiple NetCDF Files

Good afternoon! I have a series of 31 netCDF files (.nc4), each representing a day of the month. Variables for each of the files...

11 Monate ago | 2 answers | 0

Question

4 x 4 Mask to Identify Regions on Map with Highest Value

Good afternoon everyone! I have a 360 x 576 matrix that represents a map of the world (latitude and longitude, respectively). ...

11 Monate ago | 2 answers | 0

Question

Replacing Values in Matrix with NaN's based on Row and Column

Hi everyone! I hope all of you are well. I'm currently working on replacing specific element values with NaN's within a matrix...

12 Monate ago | 2 answers | 0

Question

Reduce Matrix by Adding Every Nth Rows and Nth Columns

Good morning everyone! I was hoping for suggestions regarding a matrix reduction problem. I have a matrix that is 8000 x 4000....

etwa ein Jahr ago | 1 answer | 0

Question

Create New Array from Existing Array using For Loop and If Statement

Good evening everyone! I have an array named 'longitude' that has hundreds of thousands of longitude values ranging from 30 to...

etwa ein Jahr ago | 1 answer | 0

Question

Selecting Elements of Matrix Given Index Value...

Hi all! I have an array with a list of indices that I am interested in extracting from a matrix. For example, the array is [96...

etwa ein Jahr ago | 1 answer | 0

Question

Comparing Two Matrices and Returning Differences...

Hi friends! I hope this post finds you all in good health! I'm reaching out because I had a question regarding the comparison ...

etwa ein Jahr ago | 1 answer | 0

Question

Select Specific Values in Matrix Based on Index Values Listed in Array...

Good afternoon! I had a question regarding filtering/selecting specific values within a matrix based on the values listed in a...

mehr als ein Jahr ago | 1 answer | 0

Question

For Loop for Non-Consecutive Values in an Array...

Hi everyone! I had a question regarding for loops when your "i" values are not consecutive. I have a large matrix with thousan...

mehr als ein Jahr ago | 1 answer | 0

Question

How to Export Contour Plot as Shape File if Output is of Data Type 'Double'?

Good morning! I'm trying to export a contour plot as a shapefile. However, there seems to be a problem with the shapewrite fun...

mehr als ein Jahr ago | 1 answer | 0