The st_as_stars method for sf objects without any additionalĪrguments returns a one-dimensional data cube with a dimension for the simple features If dx or dy are units objects, their value is converted to the units of st_crs(.x) (only when sf >= 1.0-7). Otherwise, if nx and ny are missing, they are computed as the (ceiling, floor, or rounded to integer value) of the ratio of the (x or y) range divided by (dx or dy), depending on the value of inside. If nx and ny are missing and values is a matrix, the number of columns and rows of the matrix are taken. If in addition to nx and ny, dx and dy are also missing, these are set to a single value computed as sqrt(diff(xlim)*diff(ylim)/n). x, then these are removed from the returned object.įor the bbox method: if pretty is TRUE, raster cells may extend the coordinate range of. If curvilinear contains the names of two arrays in. If curvilinear is a list with stars objects with longitude and latitude values, its coordinate reference system is typically not that of the latitude and longitude values. Logical should we check that the time stamps of all time series are identical? Logical return rgb numbers (FALSE) or (character) color values (TRUE)? check_times Same as dims, for symmetry with st_as_sf nameĬharacter attribute name for array from an xts object as_col Logical if TRUE, (numeric) y values get a negative delta (decrease with increasing index) coords The x and y raster dimension names or indices only takes effect after dims has been specified, see details y_decreasing urlĬharacter URL of the stars endpoint where the data reside envir Integer: if larger than 0, downsample with this rate (number of pixels to skip in every row/column) if length 2, specifies downsampling rate in x and y. Must have same number of rows as timeseries instances. Sf ame with geometry and attributes to be added to stars object. x has more than one layer, load these as separate attributes rather than as a band or time dimension (only implemented for the case where ignore_file is TRUE) sf_geometry Logical if TRUE, ignore the SpatRaster object file name as_attributes See factorValues column in the RasterLayer's attribute table ignore_file ![]() The column names or indices that form the cube dimensions att Logical should a stars_proxy object be created? (requires gdal_create binary when sf < 1.0-6) dims Integer number of cells in z direction if missing no z-dimension is created. Logical should all cells entirely fall inside the bbox, potentially not covering it completely ( TRUE), or allways cover the bbox ( FALSE), or find a good approximation ( NA, default)? nz Logical should cell coordinates have pretty values? inside The (approximate) target number of grid cells pretty Value(s) to populate the raster values with n Length 2 numeric vector with extent (min, max) in y direction values Length 2 numeric vector with extent (min, max) in x direction ylim Numeric or object of class units cell size in y direction see details xlim Numeric or object of class units cell size in x direction see details dy Integer number of cells in y direction see details dx Integer number of cells in x direction see details ny Object of class crs with the coordinate reference system of the values in curvilinear see details nx x the names of this vector should correspond to raster dimensions the matrices are associated with see Details. Only for creating curvilinear grids: named length 2 list holding longitude and latitude matrices or stars arrays, or the names of the corresponding attributes in. x is of class nc_proxy, argumentsĬharacter the names of the dimensions that denote raster dimensions curvilinear x is of class bbox, arguments passed on to , as_col = FALSE ) # S3 method for cubble_df st_as_stars (. , dimensions, name = "attr" ) # S3 method for OpenStreetMap st_as_stars (. , dims = coords, xy, y_decreasing = TRUE, coords = 1 : 2 ) # S3 method for xts st_as_stars (. x, "url" ), envir = ame ( ) ) # S3 method for ame st_as_stars (. ![]() , sf_geometry = NA ) # S3 method for stars_proxy st_as_stars (. x ) ) ) # S3 method for ncdfgeom st_as_stars (. ![]() , ignore_file = FALSE, as_attributes = all ( terra :: is.factor (. , att = 1, ignore_file = FALSE ) # S3 method for SpatRaster st_as_stars (. x, "sf_column" ) ) # S3 method for Raster st_as_stars (. x, values = 0, n = 64800, pretty = FALSE, inside = FALSE, nz, proxy = FALSE ) # S3 method for sf st_as_stars (. , curvilinear = NULL, crs = st_crs ( "OGC:CRS84" ) ) # S3 method for bbox st_as_stars (. , raster = NULL ) # S3 method for stars st_as_stars (. , dimensions = NULL ) # S3 method for default st_as_stars (.x = NULL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |