Coder Social home page Coder Social logo

whyjz / carst Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 5.0 298.59 MB

Cryoshpere And Remote Sensing Toolkit

License: MIT License

Python 91.59% Batchfile 0.04% Shell 1.56% MATLAB 3.39% HTML 0.19% TeX 1.39% Perl 0.53% Rich Text Format 0.10% M 1.21%

carst's People

Contributors

han357 avatar wdurkin avatar whyjz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

carst's Issues

Consider a better error message when the configuration file for `dhdt.py` does not exist

u5151580@qoxbxnctr1726327013778-nzjlk:~$ dhdt.py defaults.ini
Traceback (most recent call last):
  File "/home/u5151580/.local/bin/dhdt.py", line 37, in <module>
    a.read_config(inipath)
  File "/home/u5151580/.local/lib/python3.10/site-packages/carst/libdhdt.py", line 646, in read_config
    self.picklepath = ini.result['picklefile']
AttributeError: 'ConfParams' object has no attribute 'result'

When the file does not exist, a raw Python error is raised, which makes it difficult for users to understand.

Need to implement a function to check if the file exists.

SingleRaster does not accept pathlib.Path object

To create a SingleRaster instance, one uses raster = SingleRaster(filepath) where filepath can only be a string. A potential improvement is thus to accept a pathlib.Path object as a valid and correctly functioning input.

A pathlib.Path argument does not work for now because gdal.Open() only accepts a string.

error running pixeltrack.py defaults.ini

When I ran pixeltrack.py defaults.ini

I got this error message:

Traceback (most recent call last):
  File "./pixeltrack.py", line 91, in <module>
    idx = points_in_polygon(ampoff.data[:, [0,2]], shp)
  File "/Users/willkochtitzky/bin/GitHub/CARST/pixeltrack/../Utilities/Python/UtilXYZ.py", line 615, in points_in_polygon
    poly_geometries = [shapefile.ix[i]['geometry'] for i in range(len(shapefile))]
  File "/Users/willkochtitzky/bin/GitHub/CARST/pixeltrack/../Utilities/Python/UtilXYZ.py", line 615, in <listcomp>
    poly_geometries = [shapefile.ix[i]['geometry'] for i in range(len(shapefile))]
  File "/Users/willkochtitzky/miniconda3/envs/autoRIFT/lib/python3.7/site-packages/pandas/core/generic.py", line 5274, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'GeoDataFrame' object has no attribute 'ix'

Do you know what could be causing it? My reading suggests this is now depreciated:https://stackoverflow.com/questions/59991397/attributeerror-dataframe-object-has-no-attribute-ix
Do you have ideas about how to get around this?

Expanding documentation

Hello, Professor. I am a graduate student from China University of Mining and Technology. Due to the need of scientific research, do you have the installation tutorial and instruction manual of CARST software?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.