Description Usage Arguments Details See Also Examples
ExportGeogrid takes a NetCDF geogrid and converts the specified
variable into a georeferenced TIF file.
| 1 2 | ExportGeogrid(inFile, inVar, outFile, inCoordFile = NA, inLyr = NA,
  inLyrPos = 2, inProj4 = NA)
 | 
| inFile | A netcdf file containing the variable to be converted to a TIF. | 
| inVar | The name of the variable to be converted, should exist in inFile. | 
| outFile | The geoTiff filename to create. | 
| inCoordFile | (OPTIONAL) The netcdf file containing the lat/lon coordinates if they are not included in the inFile. This is useful, for example, when creating a geotiff from an LDASOUT output file which does not contain lat/lon coordinates but matches the spatial coordinate system of the geogrid input file. | 
| inLyr | (OPTIONAL, default=NA) The layer number to export if the variable has more than 2 dimensions, e.g., for soil or snow layer variables. | 
| inLyrPos | (OPTIONAL, default=2) The position of the dimension to export if the variable has more than 2 dimensions, e.g., for soil or snow layer variables. | 
| inProj4 | (OPTIONAL, default=NA) If your data does not follow default WRF lambert conformal conic specifications, specify the proj4 string. | 
ExportGeogrid takes a standard geogrid in NetCDF format and
converts the specified variable to a georeferenced geoTiff for use
in standard GIS tools.
Other geospatial: GetGeogridIndex,
GetGeogridSpatialInfo,
GetPoly, GetProj,
GetRfc, GetTimeZone,
PolyToRaster
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Export the HGT_M field from the geogrid file geo_em.d01_1km.nc
## to a geoTiff called geogrid_hgt.tif.
## Not run: 
ExportGeogrid("~/wrfHydroTestCases/Fourmile_Creek/DOMAIN/geo_em.d01_1km_nlcd11.nc",
             "HGT_M", "geogrid_hgt.tif")
ExportGeogrid("~/wrfHydroTestCases/Fourmile_Creek/RUN.RTTESTS/OUTPUT_ALLRT_DAILY/2013031500.LDASOUT_DOMAIN1",
             inVar="SOIL_M",
             outFile="20130315_soilm3.tif",
             inCoordFile="~/wrfHydroTestCases/Fourmile_Creek/DOMAIN/geo_em.d01_1km_nlcd11.nc",
             inLyr=3)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.