create_raster.Rd
This function creates all the required elements for a spatialRaster
section of
an ELM document.
create_raster(
file_name,
file_description,
attribute_list,
physical,
spatial_reference,
horizontal_accuracy,
vertical_accuracy,
cell_size_x,
cell_size_y,
number_of_bands,
raster_origin,
rows,
columns,
verticals,
cell_geometry
)
The name of your raster file
A short description of your file
A list of all the columns on your datatable.
Use create_attribute
to generate this attribute list and see the
documentation for create_attribute
for more information.
A list of the physical descriptions of your file. Use
create_physical
to generate this physical list and see the
documentation for create_physical
for more information.
This is the name of a predefined coordinate system.
The acceptable values for spatial_reference
can be found at
EDI Schema.
The accuracy of horizontal locational measurements within the data.
The accuracy of vertical locational measurements within the data.
The width of the cell in the x direction.
The width of the cell in the y direction.
The number of bands in the image.
The corner location of the pixel it should have the minimum x and y values
Max number of raster object along the y-axis
Max number of raster objects along the x-axis
Max number of raster objects along the z-axis
Geometric representation of the cell's content
A list to append spatialRaster
to
A list that contains all the required elements of the spatialRaster section of an EML document.
Create Raster Element
if (FALSE) {
create_raster(file_name = "Rasterfiles.tif" ,
file_description = "A Raster File",
attribute_list = create_attribute(attribute_name = "Yrs", attribute_label = "Years",
attribute_definition = "Calendar year of the observation from years 1990 - 2010.",
storage_type = EMLaide::storage_type$date,
measurement_scale = EMLaide::measurement_scale$dateTime,
date_time_format = "YYYY",
date_time_precision = "1", minimum = "1993", maximum = "2003"),
physical = create_physical("Rasterfiles.tif"),
spatial_reference = "NAD_1983_StatePlane_California_I_FIPS_0401",
horizontal_accuracy = "No Information",
vertical_accuracy = "No Information",
cell_size_x = "25",
cell_size_y = "25",
number_of_bands = "10",
raster_origin = "Upper Left",
rows = "200",
columns = "6",
verticals = "1",
cell_geometry = "pixel")}