grid.to.polygon: Subset ERA5 grid to polygon

Description Usage Arguments Examples

Description

This is a function to find the extents of a polygon, find the closest grid points (i.e. from ERA5) inside these extents and output the data

Usage

1
grid.to.polygon(ncfile, polygon.df)

Arguments

ncfile

ncfile to get grid — use a multilevel file or change the lat/long names

polygon.df

Dataframe of polygon with columns lat and long

Examples

1
koulikoro.grid <- subset.grid.to.polygon(ncfile="2018/wd_201803.nc", polygon.df = out_df )

benkraj/ERA5.helpers documentation built on May 16, 2019, 3:07 p.m.