Giter Club home page Giter Club logo

hapi's People

Contributors

actions-user avatar gitter-badger avatar mafarrag avatar

Stargazers

 avatar  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

hapi's Issues

Sample data Not present

Hi

Thanks for sharing the repo. I tried to run the project , but there are some files missing in input data. Can you upload the some sample so that i can run end to end

Thanks

UB and LB files

create a method to create the calibration UB and LB files

remove digitalearth package

all the functionality that was in the digitalearth package has already moved upstream to the pyramids package so thee is no need anymore for the digitalearth package, but still all the calls to these method have to be replaced by the new methods in the pyramids package

[hapi] environment.yml (Line 28)


- digitalearth >=0.1.11

Open in IDE · Open on GitHub

Created from JetBrains using CodeStream

move the cross-section module to statista

the cross-section module in the hm depends mainly on statsmodels which is not used anywhere else in the package and it is better to move the cross-section statistical derivation to the statista package

[hapi] Hapi/hm/crosssection.py (Lines 8-13)


from statsmodels import api as sm


class CrossSections:
    """Cross-Section class."""

Open in IDE · Open on GitHub

Created from JetBrains using CodeStream

merge both parameters modules into one module.

Both modules parameters and the rrm.parameters and both contains functionalities regarding the rrm parameters.

[hapi] Hapi/rrm/parameters.py (Lines 19-34)


class Parameters:
    """Distripute.

        parameter class is used to distribute the values of the parameter vector in the calibration
        process into the 3D array, considering if some of the parameters are lumped parameters, if you want to
        distribute the parameters in HRUs.

    the method included are
    1- par3d
    2- par3dLumped
    3- par2dLumpedK1_lake
    4- HRU
    5- HRU_HAND
    6- ParametersNumber
    7- saveParameters
    """

Open in IDE · Open on GitHub

Created from JetBrains using CodeStream

remove digitalearth package

all the functionality that was in the digitalearth package has already moved upstream to the pyramids package so thee is no need anymore for the digitalearth package, but still all the calls to these method have to be replaced by the new methods in the pyramids package

[hapi] environment.yml (Line 28)


- digitalearth >=0.1.11

Open in IDE · Open on GitHub

Created from JetBrains using CodeStream

ProjectRaster

The reproject method depends on the reprojection of the two corner points of the raster (lower left and top right) (Picture 1)

for a location that is very close to the north pole the distortion is very high and for that, the reprojection of the corner points becomes distorted (picture 2)

the method creates a grid between the new reprojected corner points and recalculates the cells' values in this grid
any values out of this grid (to the right of the top right corner or left of the lower-left corner after being reprojected) will be out of the new reprojected raster (Picture 3)
image

image
image

install Hapi from YML file

gdal has to be installed from conda forge and when using YML file to create an environment the environment passes gdal to install from pip which conflict with python 3.7 (the only one that does not conflict with python 3.7 is conda forge version)

Sallite Data Does not Download

Describe the bug
[A clear and concise description of what the bug is.]

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviour
A clear and concise description of what you expected to happen.

Screenshots

image

File ~\OneDrive - ESCUELA COLOMBIANA DE INGENIERIA JULIO GARAVITO (1)\IHE\TESIS\HAPI\METEO_DATA\Get_Data.py:36 in
Coello.ECMWF(Waitbar=1)

File ~\Anaconda3\envs\HidroMod\lib\site-packages\Hapi\rs\remotesensing.py:133 in ECMWF
self.DownloadData(var, Waitbar) # CaseParameters=[SumMean, Min, Max]

File ~\Anaconda3\envs\HidroMod\lib\site-packages\Hapi\rs\remotesensing.py:286 in DownloadData
Raster.CreateRaster(Path=name_out, data=Data_end, geo=Geo_out, EPSG="WGS84")

TypeError: CreateRaster() got an unexpected keyword argument 'data'

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Flow direction input from Qgis

Flow direction raster accepts the D8 rasters generated from ARC Map only at the moment, as the direction code representing the 8 directions differs in qgis

Minor bugs

Just a couple of bugs that need to be fixed:

  1. In the module calibration.py line 204 it is necessary to change the function name Dist_model to HapiModel since the name of the function has been changed in the new version of Hapi 0.3.0.

  2. In the module distparameters.py the arguments of the function par3dLumped should be (par_g,raster,no_parameters,no_lumped_par=None,lumped_par_pos=None,kub=1,klb=0.5,Maskingum = True):, although the variables no_lumped_par and lumped_par_pos are not needed (that's why it would be better to set them by default as None), but because the function SaveParameters states them in the line 707. So it's either change this last line mentioned or state them as None by default in the par3dLumped.

  3. It would be good to add this line of code: if ".DS_Store" in files: files.remove(".DS_Store") under line 1947 on raster.py module to ensure MacOS compatibility. (That could be done where needed as well)

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

move the cross-section module to statista

the cross-section module in the hm depends mainly on statsmodels which is not used anywhere else in the package and it is better to move the cross-section statistical derivation to the statista package

[hapi] Hapi/hm/crosssection.py (Lines 8-13)


from statsmodels import api as sm


class CrossSections:
    """Cross-Section class."""

Open in IDE · Open on GitHub

Created from JetBrains using CodeStream

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.