Skip to main content

Common algorithm set package.

Project description

Preface

For most scholars of geosciences or meteorology, data processing is a big project, which can take several hours or days of data processing. Without good tools or methods, it will be extremely difficult to analyze and research data with multiple time series (such as time series remote sensing data) and large-scale (such as nationwide), because data processing itself is very time-consuming and labor-intensive.

In order to solve these problems, gma (Geographic and Meteorological data Analysis) encapsulates the data processing process (Depends on GDAL, pandas and numpy). Including index, osf, math, rasp, vesp and other modules.

1 Index Calculation (index)

  • EVI: Enhanced Vegetation Index.

  • NDBI: Normalized Difference Water Index.

  • NDWI: Normalized Difference Water Index.

  • NDVI: Normalized Difference Vegetation Index.

  • PM_ET0: Penman-Monteith method crop reference evapotranspiration.

  • TVDI: Calculate Temperature Vegetation Drought Index.

2 Mathematical Calculations (math)

  • _DFToNumeric: Force the data in theto be converted to numbers, and the strings that cannot be converted to numbers will be converted to NAN.

  • FillNoData: Interpolate and replace nodata or outlier values.

  • Smooth.SavitzkyGolay: Use the Savitzky Golay method to smooth the data.

  • Smooth.MovingAverage: Use the Moving Average method to smooth the data.

  • Evaluation.RMSE: Root Mean Square Error.

  • Evaluation.NRMSE: Normalized Root Mean Square Error.

  • Evaluation.D: D index.

  • Evaluation.r: Correlation coefficient and significance level.

  • Evaluation.R2: Decisive factor.

  • Evaluation.MaxAE: Maximum Absolute Error.

  • Evaluation.Select:Select one or more Evaluation indicators to be calculated in evaluation for calculation.

  • Evaluation.Methods: Record all evaluation methods in the evaluation class.

3 System interaction (osf)

  • GetPath: Find the target file.

  • Zip: Compress files or folders to be a .Zip file.

  • UnZip: Unzip the. Zip file.

  • DateSeries: Construct a date series.

  • Modify.Rename: Change the original file (folder) name to a new name.

  • Modify.Replace: Replace the string in the original file (folder) name as the new file (folder) name.

  • Modify.Intercept: Intercept some strings in the file (folder) name as the new file (folder) name.

  • MultiThreading: Create multiple threads to realize the synchronous execution of multiple parameters of the same function.

4 Raster processing (rasp)

  • BandSynthesis: Single-band file synthesis multi-band file.

  • BandDecomposition: Split multi-band files into single-band files.

  • Clip: Clip the raster by the vector boundary.

  • ToOtherFormat: Convert one raster format to another raster format.

  • Mosaic: Combine multiple raster datasets into a new raster dataset.

  • Resample: Change the spatial resolution of raster data.

  • Reproject: Project spatial data from one coordinate system to another.

  • ChangeDataType: Change the data type of the raster.

  • MultiSDSToTif: Extract multi-dimensional data containing sub-data sets as GTiff files.

  • ToVector: Convert raster data to vector data.

  • WriteRaster: Save the numpy array as a raster.

  • GenerateOVR: Construct .ovr raster pyramids for GTiff files, or compulsorily construct .ovr pyramids for other types of raster format.

  • OrthophotoCorrection: Orthorect the image based on rational polynomial coefficients (RPC).

  • Deformation: Complete one or more functions such as mosaic-cutting-resampling-reprojection-format conversion.

  • Fusion.Pansharpen: Fusion of panchromatic images and multispectral images based on Pansharpen method.

  • AddColorTable: Add color mapping to raster data.

  • SplitImage: Cut an image into small images with a specific number of rows and columns..

5 Vector processing (vesp)

  • Split: Split each element of the vector file into a single file.

  • Check: Vector file validity check.

  • ToRaster: Convert vector layer to raster file.

  • Clip: Use vector to clip vector.

  • Erase: Remove the intersecting part of the second vector from the first vector.

  • Intersection: Take the intersection of two vectors.

  • Union: Take the union of two vectors.

  • Update: Update one vector with another.

  • ToOtherFormat: Convert one vector format to another.

  • Reproject: Convert the projection of the vector file to another projection.

  • SymDifference: Take the part where two vectors do not intersect.

6 Thanks

Thank you for giving me encouragement, classmates, colleagues and friends all the way. Because of your existence, I have more power to complete. I will not list the personnel here, but I still sincerely thank you.

Due to the limited level, there will be more or less problems in the function. Looking forward to your feedback and corrections.

More functions will be added later. I hope you can provide valuable comments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

gma-1.0.4-cp310-cp310-win_amd64.whl (416.6 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

gma-1.0.4-cp39-cp39-win_amd64.whl (416.4 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

gma-1.0.4-cp38-cp38-win_amd64.whl (417.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page