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

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

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

bash 复制代码
conda config --add channels conda-forge # 添加库
conda config --set auto_activate_base false # 取消自动激活

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

bash 复制代码
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)

bash 复制代码
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

bash 复制代码
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 下载和安装示例文件

bash 复制代码
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 下载和安装地形文件

bash 复制代码
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. 测试

bash 复制代码
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部分重新编译安装,一般不用更新

bash 复制代码
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

相关推荐
我不是小upper14 小时前
anaconda、conda、pip、pytorch、torch、tensorflow到底是什么?它们之间有何联系与区别?
人工智能·pytorch·深度学习·conda·tensorflow·pip
MobiCetus1 天前
确保conda环境内的Py不会污染系统
chrome·python·conda
冰镇西瓜2 天前
windows本地使用conda部署Open-webui
windows·ai·conda
SiYuanFeng2 天前
【问题未解决-寻求帮助】VS Code 中使用 Conda 环境,运行 Python 后 PowerShell 终端输出内容立即消失
开发语言·python·conda
码界筑梦坊3 天前
169-Django二手交易校园购物系统开发分享
后端·python·django·毕业设计·conda
scx_link4 天前
conda和pip安装包时的注意细节,以及下载慢时如何配置镜像地址
conda·pip
修一呀4 天前
【数据标注】详解使用 Labelimg 进行数据标注的 Conda 环境搭建与操作流程
人工智能·conda
pingzhuyan4 天前
python入门篇12-虚拟环境conda的安装与使用
python·ai·llm·ocr·conda
抠头专注python环境配置4 天前
Anaconda创建环境报错:CondaHTTPEFTOT: HTTP 403 FORBIDDEN for url
python·conda
love530love4 天前
Windows 11 下 Anaconda 命令修复指南及常见问题解决
运维·ide·人工智能·windows·python·架构·conda