Changes between Version 9 and Version 10 of EcomsUdg/RPackage/Functions


Ignore:
Timestamp:
May 17, 2013 11:17:01 AM (8 years ago)
Author:
juaco
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EcomsUdg/RPackage/Functions

    v9 v10  
    1 '''__1. ncmlAggreg.R__'''
     1== makeNcmlDataset ==
    22
    3 A NcML file is a [http://en.wikipedia.org/wiki/XML XML representation] of netCDF metadata. This is approximately the same information one gets when dumping the header of a netCDF file (e.g. by typing on the terminal the command `ncdump -h`). By means of NcML it is possible to create virtual datasets by modifying and [http://www.unidata.ucar.edu/software/netcdf/ncml/v2.2/Aggregation.html aggregating] other datasets, thus providing maximum flexibility and ease of access to data stored in collections of files containing data from different variables/time slices, as far as all data are queried from a single NcML representation of the dataset. The function is intended to deal with reanalysis, forecasts and other climate data products, often consisting of collections of netCDF files corresponding to different variables and partitioned by years/decades or other time slices.
     3''__Description__''
    44
    5 NcML files are the basis on which the different R functions here described are based on.
     5Generates a NcML file from a collection of netCDF files.
    66
    7 The `ncmlAggreg.R` function generates a NcML file from a collection of netCDF or GRIB files stored in a common directory. The function is called as follows:
     7''__Usage__''
    88
    99{{{
    10 > ncmlAggreg(source.dir, output.dir = getwd(), file.name)
     10makeNcmlDataset(source.dir, ncml.file)
    1111}}}
    1212
    13 The arguments are next described:
     13''__Details__''
     14
     15A NcML file is a [http://en.wikipedia.org/wiki/XML XML] representation of netCDF metadata. This is approximately the same information one gets when dumping the header of a netCDF file (e.g. by typing on the terminal the command `ncdump -h`). By means of NcML it is possible to create virtual datasets by modifying and  aggregating other datasets, thus providing maximum flexibility and ease of access to data stored in collections of files containing data from different variables/time slices. The function `makeNcmlDataset` is intended to deal with reanalysis, forecasts and other climate data products, often consisting of collections of netCDF files corresponding to different variables and partitioned by years/decades or other time slices. It operates by applying to types of [http://www.unidata.ucar.edu/software/netcdf/ncml/v2.2/Aggregation.html aggregation operations]:
     16
     171. `Union`
     182. `JoinExisting`
     19
    1420
    1521* `source.dir`: character string indicating a valid path of the directory containing the files