Giter VIP home page Giter VIP logo

maca-etr's Introduction

MACA-ETr

Download MACA (Multivariate Adaptive Constructed Analogs) downscaled climate data and estimate ASCE standardized reference evapotranspiration.

Given a point location MACA-ETr simplifies the process of downloading downscaled climate variables from the MACA dataset via a simple Python API. Data that can be retrieved (and used to calculate reference ET) includes global climate models from the Coupled Model Inter-Comparison Project 5 (20 models) whose output is downscaled using the MACA methodologies. The MACA downscaling model is trained from both the Livneh et al. 2014 dataset and the gridMET dataset, output from both can be downloaded using the MACA-ETr package. The historical (1950-2005) and future predictions (rcp4.5 and rcp8.5 emissions trajectories from 2006-2099) datasets are included in MACA. The MACA-ETr package can also be used to calculate ASCE short and tall reference ET time series using data downloaded from MACA at a given location within the conterminous United States.

Documentation

Under development

Installation

You may install the dependencies using the conda virtual environment (recommended), the environment file can be downloaded here and installed and activated by

conda env create -f environment.yml
conda activate macaetr

Once activated install with PIP:

pip install macaetr

maca-etr's People

Contributors

johnvolk avatar cpearson1 avatar

Stargazers

Brian Smoliak avatar OuyangWenyu avatar

Watchers

James Cloos avatar  avatar Charles Morton avatar Matt Bromley avatar Justin Huntington avatar  avatar Jyoti Singh avatar

maca-etr's Issues

error in macav2 ea calculation

~Line: 351
#estimate sat. vapor press and use vpd
es = 0.6108np.exp(17.27self.data.tavg_c/(self.data.tavg_c+237.3))
self.data['ea_kpa'] = self.data.vapor_pres_def + es
***VPD = es - ea; ea_kpa calc is incorrect

Calculation should follow ASCE standardized refet Table 3 Preferred Procedure Order:
https://www.uidaho.edu/-/media/UIdaho-Responsive/Files/cals/centers/Kimberly/water-resources/ASCE-Standardized-Reference-Evapotranspiration-Equation-draft-report-without-appendices.pdf?la=en&hash=F4E3EB1290A7971E172F23A2A3B660B237D727D0

Proposed Fix (use maca provided specific humidity):
if product == 'macav2':
self.data['wind_mean'] = np.sqrt(
self.data['eastward_wind']**2 + self.data['northward_wind']**2
)
self.data['pa'] = np.full(length, refet.calcs._air_pressure(elev))
self.data['ea_kpa'] = refet.calcs._actual_vapor_pressure(
self.data.specific_humidity, self.data.pa
)

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.