File Exchange

image thumbnail

cropregion

version 1.0.0 (1.61 KB) by ANKUR KUMAR
cropregion crops the data in the nc file as per the bounding % box provided as the fourth argument

4 Downloads

Updated 09 May 2019

View License

Function:
cropregion crops the data in the nc file as per the bounding
box provided as the fourth argument
Syntax:
[lon_cropped, lat_cropped, data_cropped]=cropregion(lon,lat,data,[lon1 lon2 lat1 lat2]);

Inputs:
It takes the first three arguments as the latitude, longitude, and
data respectively. The fourth argument should be the bounding box of the region(s) you wish to crop.

Example:

W=shaperead('us_states.shp');
[xx,yy,zz]=cropregion(lon,lat,data,[-79.5683 -74.7735 33.5789 36.7302])

Cite As

ANKUR KUMAR (2019). cropregion (https://www.mathworks.com/matlabcentral/fileexchange/71499-cropregion), 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