![]() |
FireSTARR
|
Classes | |
class | Extent |
Functions | |
gdf_from_file (filename, *args, **kwargs) | |
ensure_geometry_file (path) | |
load_geometry_file (path) | |
GetFeatureCount (shp) | |
` Count number of features in a shapefile | |
FromEPSG (epsg) | |
Load spatial reference from epsg value. | |
Delete (shp) | |
Delete the given shapefile. | |
GetSpatialReference (src) | |
Determine spatial reference from a source file. | |
Project (src, outputShapefile, outSpatialRef) | |
Project to given spatial reference. | |
GetCellSize (raster) | |
Determine cell size for a raster and ensure pixels are square. | |
Rasterize (file_lyr, raster, reference, datatype=gdal.GDT_Byte, creation_options=CREATION_OPTIONS) | |
Convert a shapefile into a raster with the given spatial reference. | |
save_point_file (latitude, longitude, out_dir, name) | |
Save a file with a single point having the given coordinates. | |
sum_raster (raster, band_number=1) | |
Sum the value of all cells in a raster. | |
find_raster_meridians (year=None) | |
Find the meridians of input rasters for the given year. | |
find_best_raster (lon, year=None, only_int_zones=False) | |
Find the raster with the closest meridian. | |
project_raster (filename, output_raster=None, outputBounds=None, nodata=0, options=["COMPRESS=LZW", "TILED=YES"], crs="EPSG:4326", resolution=None, format=None) | |
save_geojson (df, path) | |
vector_path (dir, base) | |
gdf_to_file (df, dir, base=None) | |
to_gdf (df, crs=CRS_WGS84) | |
make_point (lat, lon, crs=CRS_WGS84) | |
find_closest (df, lat, lon, crs=CRS_COMPARISON, fill_missing=False) | |
area_ha (df) | |
area_ha_to_radius_m (a) | |
make_empty_gdf (columns, crs=CRS_WGS84) | |
make_gdf_from_series (row, crs) | |
with_gdal_exceptions_off (fct, *args, **kwargs) | |
is_invalid_tiff (path, bands=[1], test_read=False) | |
find_invalid_tiffs (paths, bands=[1], test_read=False) | |
Non-ArcGIS GIS utility code
gis.Delete | ( | shp | ) |
Delete the given shapefile.
shp | Shapefile to delete |
gis.ensure_geometry_file | ( | path | ) |
Derive a single geometry file from given path, downloading and/or extracting as necessary
gis.find_best_raster | ( | lon, | |
year = None, | |||
only_int_zones = False ) |
Find the raster with the closest meridian.
lon | Longitude to look for closest raster for |
year | Year to find raster for |
gis.find_raster_meridians | ( | year = None | ) |
Find the meridians of input rasters for the given year.
year | Year to find raster meridians for |
gis.FromEPSG | ( | epsg | ) |
Load spatial reference from epsg value.
epsg | Code for spatial reference to load |
gis.GetCellSize | ( | raster | ) |
Determine cell size for a raster and ensure pixels are square.
raster | Raster to get cell size from |
gis.GetFeatureCount | ( | shp | ) |
` Count number of features in a shapefile
shp | Shapefile to count features from |
gis.GetSpatialReference | ( | src | ) |
Determine spatial reference from a source file.
src | Source file to determine spatial reference of |
gis.make_gdf_from_series | ( | row, | |
crs ) |
Convert Series into GeoDataFrame
gis.Project | ( | src, | |
outputShapefile, | |||
outSpatialRef ) |
Project to given spatial reference.
src | File to project |
outputShapefile | Destination file to save projection to |
outSpatialRef | Spatial reference to project into |
gis.Rasterize | ( | file_lyr, | |
raster, | |||
reference, | |||
datatype = gdal.GDT_Byte, | |||
creation_options = CREATION_OPTIONS ) |
gis.save_point_file | ( | latitude, | |
longitude, | |||
out_dir, | |||
name ) |
Save a file with a single point having the given coordinates.
latitude | Latitude to use for point |
longitude | Longitude to use for point |
out_dir | Directory to save shapefile to |
name | Name of point within file, and file to save to |
gis.sum_raster | ( | raster, | |
band_number = 1 ) |
Sum the value of all cells in a raster.
raster | Raster to sum values for |
band_number | Number of band to sum values of |