julia-hydrotools

计算短波辐射、长波辐射、潜在蒸散发、日出日落时间、湿度的基本变量处理。

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

The julia-hydrotools skill is a specialized utility designed for hydrological and meteorological data processing within the Julia programming environment. It streamlines the calculation of critical environmental variables including shortwave and longwave radiation, potential evapotranspiration, and solar cycles (sunrise/sunset). By integrating with the HydroTools package, it provides researchers and data scientists with a robust framework for scientific modeling, unit conversion, and structured data export.

Use Cases

  • Hydrological Modeling: Calculate daily extraterrestrial radiation based on latitude and day of year to support water balance and energy flux simulations.
  • Agricultural Science: Estimate potential evapotranspiration and humidity variables to optimize irrigation scheduling and crop yield predictions.
  • Climate Data Analysis: Automate the processing of raw meteorological datasets into structured CSV files using Julia's DataFrames and RTableTools.
  • Renewable Energy Planning: Determine precise solar timing and radiation levels for site-specific solar energy feasibility studies and atmospheric research.
namejulia-hydrotools
description计算短波辐射、长波辐射、潜在蒸散发、日出日落时间、湿度的基本变量处理。

1 运行环境说明

  • 在Julia中运行

  • 在julia中首先加载包,using HydroTools

  • 若没有包加载出错,则安装之,using Pkg; Pkg.add("HydroTools")

1.1 函数说明

  • cal_Rsi_toa(lat, J): daily extraterrestrial radiation in MJ m-2 day-1
    • lat: latitude in deg
    • J: doy of year

      注意lat和J是scalar 如果是vector,按照Julia的语法,采用cal_Rsi_toa.(lat, J)调用

    • 默认返回单位是MJ d-1,若想转为W m-2,需要调用[MJ2W]函数,告诉用户返回的数字单位

1.2 文件保存

文件保存采用Julia包DataFrames,RTableTools

using RTableTools
fwrite(df, "out.csv") # df is a DataFrame