|

R: Save NetCDF as a CSV

Sometimes certain analysis may require data in a tabular format (as opposed to the gridded format of NetCDF). This tutorial will take you through how to convert a NetCDF (or other raster/gridded data) to an R data frame, which can then used for analysis or saved as a CSV file. Read the NetCDF file First,…

|

R: Get data from a NetCDF

List the data attributes Accessing the var property of our netCDF varialbe will list the data attributes for the netCDF file. The output shows us this dataset has one data attribute with the name ‘data’. Which is contained within the names property of var. Calling the names property directly after the attributes() call gives the same result. We can get the name of specific…