当前位置: 首页 > news >正文

ADCP处理软件CODAS安装 (conda方法安装)

夏威夷大学出品的ADCP处理软件,我主要用来查看船载ADCP流速数据。

1. 先安装conda(miniconda就可以),这里不再赘述,安装完可以添加conda库和取消登录自动激活conda

conda config --add channels conda-forge # 添加库
conda config --set auto_activate_base false # 取消自动激活

2. 下载conda安装和创建环境的脚本并用conda安装

curl -O https://currents.soest.hawaii.edu/docs/adcp_doc/_downloads/1bbf9fe7142be462ef441b63cd6587a5/codas_processing_intel.yml
conda env create --file codas_processing_intel.yml
conda activate pycodas # 激活pycodas环境

3. 下载安装CODAS并配置相关数据

3.1 用Mercurial下载CODAS软件 (conda安装pycodas环境时已经配置了Mercurial)

mkdir ~/adcpcode
mkdir ~/adcpcode/programs
mkdir ~/adcpcode/topog
cd ~/adcpcode/programs
hg clone   https://currents.soest.hawaii.edu/hg/codas3
hg clone   https://currents.soest.hawaii.edu/hg/pycurrents
hg clone   https://currents.soest.hawaii.edu/hg/onship
hg clone   https://currents.soest.hawaii.edu/hg/uhdas

3.2 编译并安装CODAS

cd ~/adcpcode/programs/codas3
./waf configure --python_env
./waf build
./waf install
cd ~

cd ~/adcpcode/programs/pycurrents
python ./runsetup.py
cd ../uhdas
python runsetup.py
cd ../onship
python setup.py install
cd ~

3.3 下载和安装示例文件

cd ~/adcpcode/programs
curl -O https://currents.soest.hawaii.edu/docs/zipped/adcp_doc.zip
unzip adcp_doc.zip
curl -O https://currents.soest.hawaii.edu/docs/zipped/codas_demos.zip
unzip codas_demos.zip

3.4 下载和安装地形文件

cd ~/adcpcode/topog
mkdir etopo
cd etopo
curl -O ftp://currents.soest.hawaii.edu/pub/outgoing/etopo1_for_pycurrents.zip
unzip etopo1_for_pycurrents.zip

cd ~/miniconda3
ln -s ~/adcpcode/topog .
cd

4. 测试

cd ~/adcpcode/programs/codas_demos
cd uhdas_data/km1001c/proc/os38nb
showdb adcpdb/a_km # 输入 99 停止程序

figview.py --type png #使用鼠标键选择上一张或下一张

dataviewer.py # 查看某数据,关闭窗口即可停止

5. 使用Mercurial更新

拉取之后需要回到3.2部分重新编译安装,一般不用更新

cd codas3
hg pull -u   https://currents.soest.hawaii.edu/hg/codas3
cd ..

cd pycurrents
hg pull -u    https://currents.soest.hawaii.edu/hg/pycurrents
cd ..

cd onship
hg pull -u    https://currents.soest.hawaii.edu/hg/onship
cd ..

cd uhdas
hg pull -u    https://currents.soest.hawaii.edu/hg/uhdas
cd ..

参考链接

https://currents.soest.hawaii.edu/docs/adcp_doc/codas_setup/anaconda_install/index.html

相关文章:

  • 微信问题总结(onpageshow ,popstate事件)
  • python基础知识
  • Https通信中证书验证流程
  • 在低功耗MCU上实现人工智能和机器学习
  • php session数据存储位置选择
  • @[TOC](优先级队列(堆)) 【本节目标】 1. 掌握堆的概念及实现 2. 掌握 PriorityQueue 的使用 # 1. 优先级队列 ##
  • dependency-check-12.1.0 更新漏洞库报错处理
  • tailwindcss学习03
  • echarts 折线图动态基准线设置超出基准线标红
  • HBase性能优化秘籍:让数据处理飞起来
  • CPU和GPU的区别
  • 玩转表观,ATAC-seq+RNA-seq共探染色质重塑机制研究
  • 如何在WPS打开的word、excel文件中,使用AI?
  • S7-1200的三种启动模式
  • python flask 使用教程 快速搭建一个 Web 应用
  • FFmpeg+WebSocket+JsMpeg实时视频流实现方案
  • 汽车智能制造企业数字化转型SAP解决方案总结
  • Java常用设计模式-代码实例详解
  • 基于windows的docker-desktop安装kubenetes以及dashboard
  • AI开源:是潘多拉魔盒还是希望之光?
  • 东营市城市和建设管理局网站/推广有奖励的app平台
  • 信誉好的徐州网站建设/查销售数据的网站
  • 中国室内设计网站官网/永久免费不收费的污染app
  • 一站式营销推广/培训机构专业
  • 银川做网站多少钱/全网营销整合营销
  • 基金网站建设网站/西安网站外包