File Exchange

image thumbnail

maskregion

version 1.0.0 (1.64 KB) by ANKUR KUMAR
maskregion mask out the data in the nc file as per the shape file provided as the fourth argument

12 Downloads

Updated 09 May 2019

View License

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);

Cite As

ANKUR KUMAR (2019). maskregion (https://www.mathworks.com/matlabcentral/fileexchange/71500-maskregion), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags