Skip to content

MeteorologiaUV/HidroCL-OOP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HidroCL database maintainer


pythonversion packageversion

Python minimum version: 3.10

Data download

to do: add description about data downloading

Data extraction

to do: add description about data extraction


Installation commands:

pip install git+https://github.com/MeteorologiaUV/HidroCL-OOP/

Configuration

Set project path

import hidrocl
hidrocl.set_project_path('/path/to/project')
print(hidrocl.paths.gfs)
>>> '/path/to/project/forecasted'

Usage

Upload database

First, set project path (workflow/server/config.py):

project_path = '/path/to/project'

The project path should have the following structure:

  • base
    • boundaries
      • Agr_ModisSinu.shp
      • HidroCL_boundaries_sinu.shp
      • HidroCL_boundaries_utm.shp
      • HidroCL_boundaries.shp
      • HidroCL_north.shp
      • HidroCL_south.shx
  • databases
    • discharge (optional)
    • forecasted (with all databases inside)
    • observed (with all databases inside)
    • static (optional)
  • logs (empty or with all logs inside)
  • pcdatabases
    • discharge (optional)
    • forecasted (with all databases inside)
    • observed (with all databases inside)
    • static (optional)

Then, run the following command:

python workflow/server/run_all.py
python workflow/server/run_gfs.py