Classes for geometry operations
Holds definition of an area.
Parameters: |
---|
Attributes: |
---|
Properties: proj4_string : str
Projection defined as Proj.4 string
Retrieves lon and lat values of single point in area grid
Parameters: |
---|
row : int col : int
Returns: |
---|
(lon, lat) : tuple of floats
Returns lon and lat arrays of area.
Parameters: |
---|
Returns: |
---|
Get projection coordinates of grid
Parameters: |
---|
Returns: |
---|
Retrieve closest x and y coordinates (column, row indices) for the specified geolocation (lon,lat) if inside area. If lon,lat is a point a ValueError is raised if the return point is outside the area domain. If lon,lat is a tuple of sequences of longitudes and latitudes, a tuple of masked arrays are returned.
Input: |
---|
lon : point or sequence (list or array) of longitudes lat : point or sequence (list or array) of latitudes
Returns: |
---|
(x, y) : tuple of integer points/arrays
Returns projection definition as Proj.4 string
Base class for geometry definitions
Returns the corners of the current area.
Get the area of the convex area defined by the corners of the current area.
Returns Boundary objects
Retrieve cartesian coordinates of geometry definition
Parameters: |
---|
Returns: |
---|
cartesian_coords : numpy array
Retrieve lon and lat of single pixel
Parameters: |
---|
row : int col : int
Returns: |
---|
(lon, lat) : tuple of floats
Base method for lon lat retrieval with slicing
Returns the corners of the intersection polygon of the current area with other.
Parameters: |
---|
Returns: |
---|
(corner1, corner2, corner3, corner4) : tuple of points
Get how much the current area overlaps an other area.
Parameters: |
---|
Returns: |
---|
overlap_rate : float
Tests if the current area overlaps the other area. This is based solely on the corners of areas, assuming the boundaries to be great circles.
Parameters: |
---|
Returns: |
---|
overlaps : bool
Container for geometry boundary. Labelling starts in upper left corner and proceeds clockwise
Base class for geometry definitions defined by lons and lats only
Grid defined by lons and lats
Parameters: |
---|
lons : numpy array lats : numpy array nprocs : int, optional
Number of processor cores to be used for calculations.
Attributes: |
---|
Properties: lons : object
Grid lons
Swath defined by lons and lats
Parameters: |
---|
lons : numpy array lats : numpy array nprocs : int, optional
Number of processor cores to be used for calculations.
Attributes: |
---|
Properties: lons : object
Swath lons
Handles resampling of images with assigned geometry definitions
Holds image with geometry definition. Allows indexing with linesample arrays.
Parameters: |
---|
Attributes: |
---|
Samples from image based on index arrays.
Parameters: |
---|
Returns: |
---|
Base method for resampling from preprocessed data.
Base method for resampling
Holds image with geometry definition. Allows nearest neighbour resampling to new geometry definition.
Parameters: |
---|
Attributes: |
---|
Resamples image to area definition using nearest neighbour approach
Parameters: |
---|
Returns: |
---|
Holds image with area definition. ‘ Allows quick resampling within area.
Parameters: |
---|
Attributes: |
---|
Resamples image to area definition using nearest neighbour approach in projection coordinates.
Parameters: |
---|
Returns: |
---|
Resample image from one projection to another using nearest neighbour method in cartesian projection coordinate systems
Samples from image based on index arrays.
Parameters: |
---|
Returns: |
---|
Samples from image based on lon lat arrays using nearest neighbour method in cartesian projection coordinate systems.
Parameters: |
---|
Returns: |
---|
Returns index row and col arrays for resampling
Parameters: |
---|
Returns: |
---|
Resamples image using nearest neighbour method in cartesian projection coordinate systems.
Parameters: |
---|
Returns: |
---|
Handles reprojection of geolocated data. Several types of resampling are supported
Returns neighbour info
Parameters: |
---|
Returns: |
---|
(valid_input_index, valid_output_index, index_array, distance_array) : tuple of numpy arrays
Neighbour resampling info
Resamples swath based on neighbour info
Parameters: |
---|
Returns: |
---|
Resamples data using kd-tree custom radial weighting neighbour approach
Parameters: |
---|
Returns: |
---|
Resamples data using kd-tree gaussian weighting neighbour approach
Parameters: |
---|
Returns: |
---|
Resamples data using kd-tree nearest neighbour approach
Parameters: |
---|
Returns: |
---|
Returns the name of the kdtree used for resampling
Utility functions for pyresample
Exception raised when specified are is no found in file
Calculate sigma for gauss function from FWHM (3 dB level)
Parameters: |
---|
Returns: |
---|
Generate linesample arrays for nearest neighbour grid resampling
Parameters: |
---|
Returns: |
---|
(row_indices, col_indices) : tuple of numpy arrays
Generate linesample arrays for quick grid resampling
Parameters: |
---|
Returns: |
---|
(row_indices, col_indices) : tuple of numpy arrays
Construct AreaDefinition object from arguments
Parameters: |
---|
Returns: |
---|
Load area(s) from area file
Parameters: |
---|
Returns: |
---|
Raises: |
---|
Parse area information from area file
Parameters: |
---|
Returns: |
---|
Raises: |
---|
Reduce data sets based on geographical information
Calculates relevant data indices using coarse data reduction of swath data by comparison with cartesian grid
Parameters: |
---|
Returns: |
---|
Find relevant indices from grid boundaries using the winding number theorem
Calculates relevant data indices using coarse data reduction of swath data by comparison with lon lat grid
Parameters: |
---|
Returns: |
---|
Makes coarse data reduction of swath data by comparison with cartesian grid
Parameters: |
---|
Returns: |
---|
Makes coarse data reduction of swath data by comparison with lon lat boundary
Parameters: |
---|
Returns: |
---|
Makes coarse data reduction of swath data by comparison with lon lat grid
Parameters: |
---|
Returns: |
---|
Get Basemap object from AreaDefinition
Parameters: |
---|
Returns: |
---|
bmap : Basemap object
Get semi-major and semi-minor axis from ellipsis definition
Parameters: |
---|
Returns: |
---|
(a, b) : semi-major and semi-minor axis
Display default quicklook plot
Parameters: |
---|
Display default quicklook plot
Parameters: |
---|
Returns: |
---|
bmap : Basemap object