An R function to extract data from netCDF files
Budget: $100 – $120 USD
I need an R function that compiles data from an online database, which is presented here https://data.giss.nasa.gov/impacts/gfwed/ with the actual data located here
https://portal.nccs.nasa.gov/datashare/GlobalFWI/v2.0/fwiCalcs.MERRA2/Default/MERRA2.CORRECTED/
The original data is stored in a “year-wise” fashion and in netCDF (*.nc) format. Earch netCDF file contains data for the entire globe and for a single day. I need to have data rearranged in a way that a single dataframe in R would hold data for one or several locations and for the entire period covered by the database. This R dataframe would be then in “long” format.
The function should do the following:
(a) download a set of nc files from the server (preferably with some sort of wget command),
(b) select data from a subset of geographical locations specified by coordinate pairs
(c) complies data from all years and locations into a single data frame.
The function inputs:
(a) range of dates for which date should be extracted,
(b) a list of locations as coordinate pairs, e.g. as dataframe with location ID, lat and long.
The function output is a dataframe in the long format with each row containing data on date and time, location, and the value.
This is a time-critical project with delivery by August the 11th.
https://portal.nccs.nasa.gov/datashare/GlobalFWI/v2.0/fwiCalcs.MERRA2/Default/MERRA2.CORRECTED/
The original data is stored in a “year-wise” fashion and in netCDF (*.nc) format. Earch netCDF file contains data for the entire globe and for a single day. I need to have data rearranged in a way that a single dataframe in R would hold data for one or several locations and for the entire period covered by the database. This R dataframe would be then in “long” format.
The function should do the following:
(a) download a set of nc files from the server (preferably with some sort of wget command),
(b) select data from a subset of geographical locations specified by coordinate pairs
(c) complies data from all years and locations into a single data frame.
The function inputs:
(a) range of dates for which date should be extracted,
(b) a list of locations as coordinate pairs, e.g. as dataframe with location ID, lat and long.
The function output is a dataframe in the long format with each row containing data on date and time, location, and the value.
This is a time-critical project with delivery by August the 11th.