Suggestions on how to generate a mask
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have a matrix that is 1440x2880 of remote sensed temperatures from satallites, i was wondering if there is any way that i can mask all the data points in the United States. To make this clearer, i would like to create a matrix full of 0's and cells in the United cells will be expressed by 1's for example. But i was wondering if there is a way to do this
2 Commenti
Geoff Hayes
il 22 Giu 2020
Ahmed - what do the dimensions of your matrix, 1440x2880, represent? Latitude and longitude? How would you correlate US positions to the matrix?
Risposte (1)
Steven Lord
il 22 Giu 2020
If you have Mapping Toolbox, read the data file containing the borders of the states (see the "Enter MATLAB" section of this blog post) and ask if the points in your temperature data are inside the union of the polyshape array containing all the states. The isinterior function will help you do that last step.
0 Commenti
Vedere anche
Categorie
Scopri di più su Multidimensional Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!