- 博客(12)
- 资源 (6)
- 收藏
- 关注
原创 win10+codeblocks下POM(Princeton Ocean Model)入门速通经验(1)
科研需要,最近在研究POM,一个原始程序是Fortran77的老程序,没学过Fortran但编程语言大致相通嘛,为了省事只学习和研究需要的相关部分,记录一下遇见的问题和速通经验。Princeton Ocean Model,POM原始代码下载地址:The Princeton Ocean Model (POM)下载GRID-DATA和POM2K。win10环境中搭建Fortran77编译环境没学过Fortran所以走了弯路,一开始在visualstudio下拿Fortran95跑Fort
2022-02-10 11:45:14 1142
原创 windows10大批量文件夹、小文件快速删除
最近跑仿真,为了提速,中间数据文件搞了很多,出现了一个文件夹下几万个子文件夹,每个子文件夹又有多个文件这种情况,一般全选删除的删除方法的确很慢还会卡住,网上查到的:1. dos命令,好用,但是无进度,会卡住;2. 安全模式下删除,进入安全模式差点搞坏系统。推荐一个软件:Fast Folder Eraser Pro,比较傻瓜,速度也很快,还可以设置条件进行文件筛选删除,亲自体验觉得好用。...
2021-09-24 15:59:15 1699 1
原创 MATLAB tricks代码留存(updating)
movefile和copyfile也可以,但文件多、文件较大时会慢。注意文件做好备份,以免出错。clear all;clc;path = 'D:\***';file = dir(fullfile(path,'*.png'));for i = 1:length(file) oldname = [path,'\',file(i).name];%必须带绝对路径 newname = [ ];%必须不带绝对路径 command = ['RENAME ',oldname,' ',newn
2021-06-29 10:09:41 98
原创 Python 图片预处理和数据集制作 相关代码备份
1.获取文件夹下的所有图片路径import osimage_types = (".jpg", ".jpeg", ".png", ".bmp", ".tif", ".tiff")def list_images(basePath, contains=None): # 返回有效的图片路径数据集 return list_files(basePath, validExts=image_types, contains=contains)def list_files(basePath, va
2021-05-24 16:44:09 441
原创 Python matplotlib常用画图代码备份
import matplotlib.pyplot as pltmy_x_ticks = np.arange(0, 370, 60)x, y = np.mgrid[1:360:360j, 1:87:87j]#plt.clf()plt.subplots_adjust(hspace=1.2)#subplot上下图间距调节;左右间距调节:wspaceplt.subplot(311)h=plt.pcolor(x, y, ytest, shading='auto',cmap = 'jet')cb=plt
2021-05-20 16:55:26 80
原创 Colab常用代码备份
连接google drive和colab#Mount Google Drive as folderfrom google.colab import drivedrive.mount('/content/drive', force_remount=True)从google drive直接import数据到colab中进行训练,会比用自己的GPU慢,是因为数据传输慢,直接将google drive里的压缩数据解压在虚拟机下,提升速度。!mkdir trainlocal!unzip '/co.
2021-05-11 10:36:19 226
原创 ubuntu18.04 HP笔记本合上盖子不休眠不断网
不休眠sudo vim /etc/systemd/logind.conf将其中的:#HandleLidSwitch=suspend改为:HandleLidSwitch=ignore不断网(参考博客)在/etc/systemd/sytem文件夹下打开终端,创建文件hp-keycodes.service,新建一个systemd的服务:sudo gedit hp-keycodes.service文件内容为:[Unit]Description=HP setkeycodes ..
2020-12-17 11:32:44 651 1
原创 ubuntu18.04 安装有道词典报错解决
官网下载ubuntu下的有道词典deb安装包。 sudo dpkg -i youdao-dict_6.0.0-ubuntu-amd64.deb会报错:终端运行以下代码:sudo apt-get -f installsudo apt-get install tesseract-ocr sudo dpkg -i youdao-dict_6.0.0-ubuntu-amd64.deb
2020-10-31 15:47:58 527
原创 MATLAB启动时出现Warning: Executing startup failed in matlabrc.
启动MATLAB出现如下警告:Warning: Executing startup failed in matlabrc.This indicates a potentially serious problem in your MATLAB setup, which shouldbe resolved as soon as possible. Error detected was:MATLAB: cd :NonExistentFolderCannot CD to W:\ (Name is non
2020-09-29 11:17:27 1234
acoustic toolbox
2020-02-17
国科大机器学习课程课件
2019-12-04
Structure and Interpretation of Signals and Systems
2018-08-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人