MCPcopy Create free account

hub / github.com/VHeimhuber/InletTracker / functions

Functions70 in github.com/VHeimhuber/InletTracker

↓ 9 callersFunctioncalculateDeltaToMedian
VH UNSW 2021 InletTracker specific function that calculates the delta-to-median parameter from the full spectral transects genera
inlettracker/InletTracker_tools.py:1482
↓ 7 callersFunctionmaskimage_frompolygon_set_value
VH UNSW 2021 function that uses an nparray image and an nparray polygon as input and returns a copy of the image with the pixel
inlettracker/InletTracker_tools.py:104
↓ 6 callersFunctiondownload_tif
Downloads a .TIF image from the ee server. The image is downloaded as a zip file then moved to the working directory, unzipped and stacked in
coastsat/SDS_download.py:460
↓ 4 callersFunctioncreate_cloud_mask
Creates a cloud mask using the information contained in the QA band. KV WRL 2018 Arguments: ----------- im_QA: np.array
coastsat/SDS_preprocess.py:33
↓ 4 callersFunctionget_bounding_box_minmax
VH UNSW 2021 function that calculates a bounding box around a polygon
inlettracker/InletTracker_tools.py:123
↓ 4 callersFunctionload_shapes_as_ndarrays
VH UNSW 2021 load polygons from a shapefile as ndarrays
inlettracker/InletTracker_tools.py:155
↓ 2 callersFunctionUsage
()
coastsat/gdal_merge.py:274
↓ 2 callersMethodcopy_into
Copy this files image into target file. This method will compute the overlap area of the file_info objects file, and the tar
coastsat/gdal_merge.py:201
↓ 2 callersFunctionget_metadata
Gets the metadata from the downloaded images by parsing .txt files located in the \meta subfolder. KV WRL 2018 Arguments: -----
coastsat/SDS_download.py:302
↓ 2 callersFunctionpansharpen
Pansharpens a multispectral image, using the panchromatic band and a cloud mask. A PCA is applied to the image, then the 1st PC is replaced,
coastsat/SDS_preprocess.py:124
↓ 2 callersFunctionpolygon2mask
Compute a mask from polygon. from github since it wasn't included in the coastsat version of scikit yet Parameters ---------- image_sh
inlettracker/InletTracker_tools.py:51
↓ 2 callersFunctionpreprocess_single
Reads the image and outputs the pansharpened/down-sampled multispectral bands, the georeferencing vector of the image (coordinates of the upp
coastsat/SDS_preprocess.py:229
↓ 2 callersFunctionremove_cloudy_images
Removes from the EE collection very cloudy images (>95% cloud cover) KV WRL 2018 Arguments: ----------- im_list: list l
coastsat/SDS_download.py:575
↓ 2 callersFunctionrescale_image_intensity
Rescales the intensity of an image (multispectral or single band) by applying a cloud mask and clipping the prob_high upper percentile. This
coastsat/SDS_preprocess.py:172
↓ 1 callersFunctionGetExtent
Return list of corner coordinates from a geotransform
coastsat/SDS_tools.py:705
↓ 1 callersFunctioncheck_images_available
Create the structure of subfolders for each satellite mission KV WRL 2018 Arguments: ----------- inputs: dict inputs di
coastsat/SDS_download.py:366
↓ 1 callersFunctioncompute_tide
compute time-series of water level for a location and dates using a time_step
inlettracker/InletTracker_tools.py:2164
↓ 1 callersFunctioncompute_tide_dates
compute time-series of water level for a location and dates (using a dates vector)
inlettracker/InletTracker_tools.py:2187
↓ 1 callersFunctioncreate_folder_structure
Create the structure of subfolders for each satellite mission KV WRL 2018 Arguments: ----------- im_folder: str folder
coastsat/SDS_download.py:537
↓ 1 callersFunctioncreate_jpg
Saves a .jpg file with the RGB image as well as the NIR and SWIR1 grayscale images. This functions can be modified to obtain different visual
coastsat/SDS_preprocess.py:529
↓ 1 callersFunctionduplicates
(lst, item)
coastsat/SDS_tools.py:440
↓ 1 callersFunctionduplicates_dict
return duplicates and indices
coastsat/SDS_tools.py:438
↓ 1 callersFunctionfilter_S2_collection
Removes duplicates from the EE collection of Sentinel-2 images (many duplicates) Finds the images that were acquired at the same time but hav
coastsat/SDS_download.py:611
↓ 1 callersFunctionfind
(item, lst)
coastsat/SDS_tools.py:528
↓ 1 callersFunctionhist_match
Adjust the pixel values of a grayscale image such that its histogram matches that of a target image. Arguments: ----------- sour
coastsat/SDS_preprocess.py:80
↓ 1 callersMethodinit_from_name
Initialize file_info from filename filename -- Name of file to read. Returns 1 on success or 0 if the file can't be opened.
coastsat/gdal_merge.py:160
↓ 1 callersFunctionmain
( argv=None )
coastsat/gdal_merge.py:288
↓ 1 callersFunctionmerge_overlapping_images
Merge simultaneous overlapping images that cover the area of interest. When the area of interest is located at the boundary between 2 images,
coastsat/SDS_download.py:667
↓ 1 callersFunctionnames_to_fileinfos
Translate a list of GDAL filenames, into file_info objects. names -- list of valid GDAL dataset names. Returns a list of file_info obje
coastsat/gdal_merge.py:138
↓ 1 callersFunctionraster_copy
( s_fh, s_xoff, s_yoff, s_xsize, s_ysize, s_band_n, t_fh, t_xoff, t_yoff, t_xsize, t_ysize, t
coastsat/gdal_merge.py:50
↓ 1 callersFunctionraster_copy_with_mask
( s_fh, s_xoff, s_yoff, s_xsize, s_ysize, s_band_n, t_fh, t_xoff, t_yoff, t_xsize,
coastsat/gdal_merge.py:113
↓ 1 callersFunctionraster_copy_with_nodata
( s_fh, s_xoff, s_yoff, s_xsize, s_ysize, s_band_n, t_fh, t_xoff, t_yoff, t_xsize
coastsat/gdal_merge.py:90
↓ 1 callersMethodreport
( self )
coastsat/gdal_merge.py:192
↓ 1 callersFunctionset_openvsclosed
Shows the image to the user for visual detection of the state. The user can select "open", "closed", "unclear" or "skip" if the image is of
inlettracker/InletTracker_tools.py:202
↓ 1 callersFunctionshow_detection
VH UNSW 2021 Function that brings up a popup window showing the dashboard overview plots created by automated_inlet_paths along w
inlettracker/InletTracker_tools.py:1660
Functionautomated_inlet_paths
Function that loops through the satellite imagery and, for each image, automatically finds the connecting path from the seed to the receiver
inlettracker/InletTracker_tools.py:494
FunctionbestThreshold
VH UNSW 2021 takes a continuous input series of a given variable and a corresponding 'truth' binary series this function then fi
inlettracker/InletTracker_tools.py:1455
Functioncheck_inlet_state_detection
VH UNSW 2021 Function that loops through all classified images and then calls the show_detection function to bring up the pop up
inlettracker/InletTracker_tools.py:1740
Functionclassify_binary_otsu
VH UNSW 2021 classify a greyscale image of a water sensitive band/index using otsu thresholding returns classified image wh
inlettracker/InletTracker_tools.py:175
Functionclassify_image_series_via_DTM
VH UNSW 2021 Classifies the full time series of spectral transects generated by automated_inlet_paths into binary inlet states (op
inlettracker/InletTracker_tools.py:1596
Functionconvert_epsg
Converts from one spatial reference to another using the epsg codes KV WRL 2018 Arguments: ----------- points: np.array or
coastsat/SDS_tools.py:118
Functionconvert_pix2world
Converts pixel coordinates (pixel row and column) to world projected coordinates performing an affine transformation. KV WRL 2018
coastsat/SDS_tools.py:26
Functionconvert_world2pix
Converts world projected coordinates (X,Y) to image coordinates (pixel row and column) performing an affine transformation. KV WRL
coastsat/SDS_tools.py:72
Functioncreate_training_data
Function that lets user visually inspect satellite images and decide if inlet is open or closed. This can be done for the entire da
inlettracker/InletTracker_tools.py:384
Functionget_closest_datapoint
Extremely efficient script to get closest data point to a set of dates from a very long time-series (e.g., 15-minutes tide data, or hourly wa
coastsat/SDS_tools.py:497
Functionget_filenames
Creates filepath + filename for all the bands belonging to the same image. KV WRL 2018 Arguments: ----------- filename: str
coastsat/SDS_tools.py:343
Functionget_filepath
Create filepath to the different folders containing the satellite images. KV WRL 2018 Arguments: ----------- inputs: dict w
coastsat/SDS_tools.py:276
Functionget_image_bounds
Returns a polygon with the bounds of the image in the .tif file KV WRL 2020 Arguments: ----------- fn: str path to
coastsat/SDS_tools.py:685
Functionget_reference_sl
Allows the user to manually digitize a reference shoreline that is used seed the shoreline detection algorithm. The reference shoreline helps
coastsat/SDS_preprocess.py:658
Functionimage_std
Calculates the standard deviation of an image, using a moving window of specified radius. Uses astropy's convolution library' Argum
coastsat/SDS_tools.py:203
Functionload_FES_tide
VH UNSW 2021 Function that drills into the FES2014 global tide model reanalysis dataset, based on the location of seed point A in
inlettracker/InletTracker_tools.py:2203
Functionload_shapes
VH UNSW 2021 load individual polygons from a shapefile
inlettracker/InletTracker_tools.py:137
Functionmask_raster
Masks a .tif raster using GDAL. Arguments: ----------- fn: str filepath + filename of the .tif raster mask: np.array
coastsat/SDS_tools.py:241
Functionmaskimage_frompolygon
VH UNSW 2021 function that uses an nparray image and an nparray polygon as input and returns a copy of the image with the pixel
inlettracker/InletTracker_tools.py:86
Functionmerge_output
Function to merge the output dictionnary, which has one key per satellite mission into a dictionnary containing all the shorelines and dates
coastsat/SDS_tools.py:380
Functionnd_index
Computes normalised difference index on 2 images (2D), given a cloud mask (2D). KV WRL 2018 Arguments: ----------- im1: np.arra
coastsat/SDS_tools.py:165
Functionoutput_to_gdf
Saves the mapped shorelines as a gpd.GeoDataFrame KV WRL 2018 Arguments: ----------- output: dict contains the
coastsat/SDS_tools.py:601
Functionplot_inlettracker_resultsV2
VH UNSW 2021 Function that creates three plots from the results of the InletTracker processing chain.
inlettracker/InletTracker_tools.py:1774
Functionpolygon_from_kml
Extracts coordinates from a .kml file. KV WRL 2018 Arguments: ----------- fn: str filepath + filename of the kml fi
coastsat/SDS_tools.py:543
Functionpress
(event)
inlettracker/InletTracker_tools.py:314
Functionpress
(event)
coastsat/SDS_preprocess.py:757
Functionremove_duplicates
Function to remove from the output dictionnary entries containing shorelines for the same date and satellite mission. This happens when ther
coastsat/SDS_tools.py:419
Functionremove_inaccurate_georef
Function to remove from the output dictionnary entries containing shorelines that were mapped on images with inaccurate georeferencing:
coastsat/SDS_tools.py:466
Functionretrieve_images
Downloads all images from Landsat 5, Landsat 7, Landsat 8 and Sentinel-2 covering the area of interest and acquired between the specified dat
coastsat/SDS_download.py:44
Functionsave_jpg
Saves a .jpg image for all the images contained in metadata. KV WRL 2018 Arguments: ----------- metadata: dict contains
coastsat/SDS_preprocess.py:596
Functionsetup_classification_df
VH UNSW 2021 Prepares a dataframe for binary classification from the full XS_df that contains the spectral transects for NIR, SWIR
inlettracker/InletTracker_tools.py:1555
Functionsmallest_rectangle
Converts a polygon to the smallest rectangle polygon with sides parallel to coordinate axes. KV WRL 2020 Arguments: ------
coastsat/SDS_tools.py:727
Functionsubset_DTM_df_in_time
VH UNSW 2021 this function subsets the input dataframe to within the start and end date
inlettracker/InletTracker_tools.py:1631
Functiontransects_from_geojson
Reads transect coordinates from a .geojson file. Arguments: ----------- filename: str contains the path and filename of
coastsat/SDS_tools.py:576
Functiontransects_to_gdf
Saves the shore-normal transects as a gpd.GeoDataFrame KV WRL 2018 Arguments: ----------- transects: dict conta
coastsat/SDS_tools.py:652