Creating arrays based on NetCDF files

6 views (last 30 days)
Vasco
Vasco on 13 Aug 2023
Commented: Vasco on 15 Aug 2023
I'm working on a code that creates an array type (nlines, ncolumns, nfiles) with nfiles equal to the number of grids that it has ( k = 1:nfiles), after that I need to calculate the estatistics for each grid, for each value of K, and the statistics for each pixel. Then I need to calculate the average to each pixel e then create a grid to represent the averages of the values.
  21 Comments
dpb
dpb on 15 Aug 2023
Yeah, my foohpah on the latitude range; was just typing, not thinking.
I dunno where you want the origin to be for longitude; is the present 0 on Greenwich, maybe? Looks like it could be chosen that way is why I left it at 0.
I hadn't seen the plaint about colormap until now; there's where I'm at the limits of my image processing; I've never fully figured out how to neatly manipulate them to do special things; the default with imagesc scales the data over the range linearly.
I think to change the sea color you need to change its value if stay with indexed colors. Limiting the colormap to a range just causes points outside those to be max'ed out at one or the other end.
Vasco
Vasco on 15 Aug 2023
i got the image with the ocean color being null basically the only problem that im having is merging the code you made with mine so that the xticks works ill send the my base code
I managed to found by chance something thats transforms the values to NaN values but to be honest I still dont understand how it fully works.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!