maskregion
Function:
maskregion mask out the data in the nc file as per the shape
file provided as the fourth argument
Syntax:
[data_masked]=maskregion(lon,lat,data,shapefile_var);
Inputs:
It takes first three arguments as the latitude, longitude and
data respectively. shapefile argument should be the shapefile,
which contains X and Y coordinates of the region(s) you wish
to crop.
Example:
W=shaperead('us_states.shp');
[data_masked]=maskregion(lon,lat,data,shapefile_var);
Citation pour cette source
ANKUR KUMAR (2024). maskregion (https://www.mathworks.com/matlabcentral/fileexchange/71500-maskregion), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Mathematics and Optimization > Mapping Toolbox > Data Import and Export >
- Radar > Mapping Toolbox > Data Import and Export >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0 |