20190618新的开始

The Ubuntu 16.04 64bit version and openjdk-8-jdk of Ubuntu are the most tested environment for the Android Pie 9.0 build.

0. 安装Ubuntu 16.04.5 LTS

win@autolink-bsp:~$

1. sudo apt-get install vim

2.http://192.168.3.7/#!quickstart/aosp_quickstart.md

3.sudo apt-get install openjdk-8-jdk

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip


sudo apt-get install uuid uuid-dev lzop gperf liblz-dev liblzo2-2 liblzo2-dev lzop git-core curl u-boot-tools flex mtd-utils android-tools-fsutils bc device-tree-compiler gdisk

 

4. ssh-keygen

http://192.168.3.7:8081/#/settings/ssh-keys  


5. 安装搜狗输入法
sudo add-apt-repository ppa:fcitx-team/nightly
sudo apt-get update

https://pinyin.sogou.com/linux/?r=pinyin
sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb

sudo apt remove sogoupinyin

sudo apt install libopencc1 fcitx-libs fcitx-libs-qt fonts-droid-fallback


sudo apt install fcitx fcitx-googlepinyin fcitx-table-wbpy fcitx-pinyin fcitx-sunpinyin

报错libqtwebkit4
sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo apt-get update
sudo apt-get install libqtwebkit4

sudo apt remove sogoupinyin

sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo apt-get update
sudo apt-get install fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4 libopencc1 fcitx-libs fcitx-libs-qt libqtwebkit4

 sudo apt-get install -f 

sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb
添加搜狗输入发

直接点击了小企鹅旁边的键盘标志,然后选择最下面的Configure
去掉那个只“显示当前语言”的选项,然后搜索框输入sog,你会发现搜狗输入法已经有了,选中输入法即可


6. cp bin/vimrc .vimrc


7. 安装虚拟机
sudo dpkg -i virtualbox-5.2_5.2.30-130521~Ubuntu~xenial_amd64.deb
https://www.virtualbox.org/wiki/Download_Old_Builds_5_2  //下载地址,扩展包也在这

dpkg: dependency problems prevent configuration of virtualbox-5.1:
 virtualbox-5.1 depends on libsdl1.2debian (>= 1.2.11); however:
  Package libsdl1.2debian is not installed.
 virtualbox-5.1 depends on libvpx1 (>= 1.0.0); however:
  Package libvpx1 is not installed.

sudo apt-get install libsdl1.2debian
sudo dpkg -i libvpx1_1.3.0-2_amd64.deb

安装扩展
win@autolink-bsp:~/tools$ sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.2.30.vbox-extpack


8.tail -n 1 .bashrc
export ARMGCC_DIR=/home/win/bin/gcc-arm-none-eabi-7-2018-q2-update

9.  安装cmake ./bootstrap && make && sudo make install


10. sudo apt-get install ssh


11. sudo apt-get install samba
sudo vim /etc/samba/smb.conf

255 [Win ubuntu]
256     comment = Win's ubuntu
257     path = /home/win
258     browseable = yes
259     writeable = yes
260     valid users = win
261     available = yes

sudo smbpasswd –a win
sudo /etc/init.d/smbd restart

12. git 配置

git config --global user.email "caoying@auto-link.com.cn"
git config --global user.name "win.cao"
git config --global color.ui auto  
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.cm commit
git config --global alias.br branch
git config --global alias.di diff

6S模型是一个相对复杂的模型,涉及到的参数和计算公式比较多,需要借助专业的软件包进行实现。以下给出使用 Py6S 这个 Python 软件包实现 6S 模型的示例。 首先需要安装 Py6S 软件包: ```bash pip install py6s ``` 然后就可以使用 Py6S 实现 6S 模型了,以下是一个简单的示例代码,实现了对 Landsat 8 OLI 数据进行大气校正: ```python import spectral import numpy as np from Py6S import * # 设置 6S 模型参数 s = SixS() s.geometry.solar_z = 40 # 太阳天顶角 s.geometry.view_z = 10 # 观测天顶角 s.geometry.view_a = 120 # 观测方位角 s.aero_profile = AeroProfile.PredefinedType(AeroProfile.Urban) s.atmos_profile = AtmosProfile.PredefinedType(AtmosProfile.MidlatitudeSummer) s.ground_reflectance = GroundReflectance.HomogeneousLambertian(0.2) # 地表反射率 s.wavelength = Wavelength(PredefinedWavelengths.LANDSAT_OLI_B1, PredefinedWavelengths.LANDSAT_OLI_B11) # 波段范围 # 加载 Landsat 8 OLI 数据 img = spectral.open_image('LC08_L1TP_045029_20190608_20190618_01_T1_B1.TIF') data = img.load() # 计算大气透过率和大气反射率 trans = s.run(transmittance=True, output_name='transmittance_out') ref = s.run(reflectance=True, output_name='reflectance_out') # 对数据进行大气校正 data_corr = (data - ref) / trans # 保存校正后的数据 spectral.envi.save_image('LC08_L1TP_045029_20190608_20190618_01_T1_B1_corr.hdr', data_corr, img.metadata) ``` 需要注意的是,该示例代码中只考虑了简单的参数和计算公式,实际应用中需要考虑更多的因素和复杂的计算。此外,Py6S 还可以实现更复杂的 6S 模型功能,比如考虑不同的大气气溶胶类型、云的遮挡效应等等。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值