R functions to read data files

Job ID: 35915975

Budget: $30 – $60 USD

I need two small R functions, which could take a large data file (a gridded climate reconstruction) and a list of coordinates in order to extract data from respective data file.

1.
One function should operate on this dataset (I need the function working on netCDF), https://www.ncei.noaa.gov/access/paleo-search/study/19419
It will have only two input: (a) name of the netCDF file, and (b) a dataframe with coordinates (lat-long) and site id’s.
Its output will be a dataframe with a set of chronologies originated from the gridpoints nearest to each of the sites. This output should be in “long” format, i.e. the dataframe should have the following columns: siteID, year, chronologyValue.

2.
Another function should operate on this dataset
https://www.ncei.noaa.gov/pub/data/paleo/historical/europe/pauling2006precip/
Here, please consider only files with *.gz extension. These are four files, one for each season.
The data is in text format and is available in four “flavors”: for different seasons within a year.
The input should be (a) a name of the file with data, and (b) a dataframe with coordinates (lat-long) and site id’s.
The structure of output is the same as for the first function.

I can provide a small example input file for interested candidates.

This is a time critical project, I would be happy to get the code by the end of the week (around Feb 12).

thank you.
Related categories: R Programming Language Data Analysis