rawCrop2nicenc: Manipulate the input slices into a nice netCDF file

Description Usage Arguments Value

Description

Scales the color tag to a single true or false value, aggregates the small spacing into the desired spacing using sum(extract()) since raster::aggregate can't take uneven spaces. Then it changes the projection into unprojected lat/lon or a user defined projection

Usage

1
rawCrop2nicenc(dirIn, pathOut, cropGrid, niceGrid = "")

Arguments

dirIn

The directory with slices of tif files ussually generated by NASS2TIFs()

pathOut

The full file name of the aggregated file, either in .dat or .nc

cropGrid

The input extent and projection with the new spacing that you want

niceGrid

The result grid in the projection that you want

Value

saves the result as a csv readable by surfer (.dat) and the netCDF file at pathOut as specified. Returns a 0 if the writing failed, 1 if it worked.


sidjai/biosplit documentation built on May 29, 2019, 9:59 p.m.