rastr_extract_small: Extract some values from raster .nc file

Description Usage Arguments Value Examples

View source: R/rastr_extract.R

Description

Extract some values from raster .nc file

Usage

1
rastr_extract_small(file_path, station_lon, station_lat)

Arguments

file_path

A path to the .nc file you want to extract

station_lon

A number representing the longitude of the location to extract

station_lat

A number representing the latitude of the location to extract

Value

A data table of the extracted values (just the first 100)

Examples

1
2
3
4
pr_filepath <- 'data-raw/EUR_pr_day_CanESM2_historical_rcp85_r25i1p1_19500101-21001231.nc'
stat_lon <- 14 + 24/60 + 59/60/100
stat_lat <- 50 + 05/60 + 11/60/100
pr_sim_small <- rastr_extract_small(pr_filepath, stat_lon, stat_lat)

veravavan/AdvDeltaChange documentation built on Jan. 18, 2022, 7:05 p.m.