May-16-2018, 08:02 PM
Hi there,
I just derived values from a 3D matrix, which contains the dimensions of time (in years), latitude (64 lines), and longitude (128 lines). The values derived are for every grid cell (latitude and longitude) for each year for 140 years (so, LOTS of values in the output). I would like to store the output data (which, again, contains values for every grid cell) as a netcdf file and wanted to know how this can be done?
Secondly, does the creation of the file affect the original structure of my dataset? If so, is it possible to preserve the data in its current state (i.e. maintain the latitude/longitude structure)?
Also, does the command need to be written at the end of my code?
Any help would be greatly appreciated!
I just derived values from a 3D matrix, which contains the dimensions of time (in years), latitude (64 lines), and longitude (128 lines). The values derived are for every grid cell (latitude and longitude) for each year for 140 years (so, LOTS of values in the output). I would like to store the output data (which, again, contains values for every grid cell) as a netcdf file and wanted to know how this can be done?
Secondly, does the creation of the file affect the original structure of my dataset? If so, is it possible to preserve the data in its current state (i.e. maintain the latitude/longitude structure)?
Also, does the command need to be written at the end of my code?
Any help would be greatly appreciated!