Code Monkey home page Code Monkey logo

aclimate_resampling's Introduction

AClimate resampling module

GitHub release (latest by date)

This repository contains all related to resampling module for AClimate

Features

  • Generate climate scenarios base on probabilities
  • Complete daily data using CHIRPS and ERA 5
  • Include data for case use in data folder
  • Include modules to configure the env in modules folder

Prerequisites

  • Python 3.x
  • You need the .cdsapirc file which should be in $HOME if you are using linux or User Home if you use Windows

Configure DEV Enviroment

You should create a env to run the code and install the requeriments. Run the following commands in the prompt

pip install virtualenv
venv env
pip install -r requirements.txt

Run Test

You can run the unit testing using the following command

python -m unittest discover -s .\test

Install

This module can be used as a library in other Python projects. You can install this module using pip:

pip install git+https://github.com/CIAT-DAPA/aclimate_resampling

If you want to download a specific version of orm you can do so by indicating the version tag (@v0.0.0) at the end of the install command

pip install git+https://github.com/CIAT-DAPA/[email protected]

Run

You can run the module using the command aclimate_resampling followed by the required parameters:

aclimate_resampling -C ETHIOPIA -p "D:\\aclimate_resampling\\data\\" -m 1 -c 2 -y 2023

Params

-C, --country: Name of the country to be processed. -p, --path: Root path where the forecast is running (default: current directory). -m, --prev-months: Amount of months that you want to add. -c, --cores: Number of CPU cores to use in the calculation. -y, --forecast-year: Year Forecast.

aclimate_resampling's People

Contributors

andresk159 avatar bmora-0110 avatar dan3s avatar github-actions[bot] avatar mariavictoriadiaz avatar santiago123x avatar stevensotelo avatar victor-993 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

victor-993

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.