StampRaster¶
-
class
xmsstamper.stamper.
StampRaster
¶ -
get_cell_index_from_col_row
(self: xmsstamper.stamper.StampRaster, col: int, row: int) → int¶ Gets the zero-based cell index from the given column and row.
- Args:
- col (int): The zero-based column index for the raster. row (int): The zero-based row index for the raster.
- Returns:
- The zero-based cell index from the given a_col, a_row.
-
get_col_row_from_cell_index
(self: xmsstamper.stamper.StampRaster, int: int) → tuple¶ Gets the zero-based column and row from the cell index.
- Args:
- index (int): The zero-based raster cell index.
- Returns:
- Tuple of (col, row) of the cell by index
-
get_location_from_cell_index
(self: xmsstamper.stamper.StampRaster, index: int) → tuple¶ Gets the location of the cell center from the zero-based cell index.
- Args:
- index (int): The zero-based raster cell index.
- Returns:
- The location of the cell with the given index.
-
min
¶ Minimum (lower left) X, Y coordinate of the raster at the center of the raster cell (Required)
-
no_data
¶ NO DATA value for the raster
-
num_pixels_x
¶ Number of pixels in the X-direction (Required)
-
num_pixels_y
¶ Number of pixels in the Y-direction (Required)
-
pixel_size_x
¶ Pixel size in the X-direction (Required)
-
pixel_size_y
¶ Pixel size in the Y-direction (Required)
-
class
raster_format_enum
¶ weight_enum for InterpIdw class
-
read_from_file
(self: xmsstamper.stamper.StampRaster, file_name: unicode) → None¶ Reads the XmStampRaster class information from a file.
- Args:
- file_name (str): The input file.
-
vals
¶ Raster values defined from the top left corner to the bottom right corner (Required). Use the m_noData value to specify a cell value with no data.
-
write_grid_file
(self: xmsstamper.stamper.StampRaster, file_name: unicode, format: xms::XmStampRaster::XmRasterFormatEnum) → None¶ Writes the raster in the given format to the given filename.
- Args:
- file_name (str): The output raster filename. format (): The output raster format
-
write_to_file
(self: xmsstamper.stamper.StampRaster, file_name: unicode, card_name: unicode) → None¶ Writes the XmStampRaster class information to a file.
- Args:
- file_name (str): The input file. card_name (str): The card name to be written to the output file.
-