- How to calculate wind speed and wind direction from u and v components of the wind?
- Meridional circulation index (MCI)
- 夸克免费扩容方案
- 合并视频与字幕
1 | ffmpeg -i 1.mkv -i 1.srt -map 0 -map 1 -c copy 2.mkv |
1 | ffmpeg -i 1.mkv -i 1.srt -map 0 -map 1 -c copy 2.mkv |
1 2 3 4 5 | % Read Image [image, geo]=readgeoraster(imgpath); info=georasterinfo(imgpath); % Save Image geotiffwrite('newimg.tif', image, geo); |
% read a geo-referenced image [image, geo]=readgeoraster(filepath); try info=geotiffinfo(filepath); catch info=georasterinfo(filepath); end % write a geo-referenced image try geotiffwrite(otpath, uint8(class_imag), geo); catch strcmd=['gdalinfo ', filepath]; [~, cmdout]=system(strcmd); epsg=extractBetween(cmdout, "EPSG:"," got from GeoTIFF keys"); epsg=epsg{1}; % geotiffwrite(otpath, uint8(class_imag), geo, 'GeoKeyDirectoryTag', info.GeoTIFFTags.GeoKeyDirectoryTag); geotiffwrite(otpath, uint8(class_imag), geo, 'CoordRefSysCode', ['EPSG:', epsg]); end
1 | geotiffwrite(otpath, uint8(class_imag), geo, 'CoordRefSysCode', ['EPSG:', epsg], 'TiffType', 'bigtiff'); |
1 | geotiffwrite('m2.tif', image, geo, 'GeoKeyDirectoryTag', info.GeoTIFFTags.GeoKeyDirectoryTag); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | %========================================================================================================================== % Gets the folder one level up. If startingFolder is a filename with an extension it gets the containing folder and the child folder is null. % Returns null for both if the folder does not exist, and it's not a filename either. function [parentFolder, childFolder] = GetParentFolder(startingFolder) parentFolder = []; % Initialize childFolder = []; try if isfolder(startingFolder) [parentFolder, childFolder, ext] = fileparts(startingFolder); % Need to append extension for rare cases where deepest folder has a dot in the name. childFolder = [childFolder, ext]; elseif isfile(startingFolder) % It's a filename, not a folder. Need to change otherwise childFolder will be returned as the base file name. [parentFolder, childFolder, ext] = fileparts(startingFolder); childFolder = []; % No child folder since it's a filename, not a folder name. end catch ME message = sprintf('Error in GetParentFolder():\n%s', ME.message); uiwait(msgbox(message)); end return; % from GetParentFolder end |
1 2 3 4 | fid=fopen(txtpath, 'w', 'n', 'US-ASCII'); fprintf(fid, '%s\r\n', num2str(value)); fclose(fid); fclose('all'); |
1 2 3 4 5 6 7 8 9 10 | function enhan_image=GenenhanImage(filepath) % https://www.mathworks.com/matlabcentral/fileexchange/64932-files-for-demystifying-deep-learning-semantic-segmentation-and-deployment?s_tid=srchtitle % Load the images located in the above path using imageDatstore - ML Function imds = imageDatastore(filepath); pic_num = 1; I_raw = readimage(imds, pic_num); enhan_image= histeq(uint8(I_raw)); end |
1 | image=imadjust(image, stretchlim(image), []); |
1 2 3 4 | I = imread("peppers.png"); if(canUseGPU) I = gpuArray(I); end |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | % Add Text fnum=48; loX=0.568; laY=0.1; GenTextMap(loX, laY, t, fnum); function GenTextMap(loX, laY, yymm, fnum) % text(-94.78674012, 53.88222466, " Island Lake", 'FontSize', 15) xxx=get(gca, 'XLim'); yyy=get(gca, 'YLim'); x=loX*(max(xxx)-min(xxx))+min(xxx); y=laY*(max(yyy)-min(yyy))+min(yyy); text(x, y, yymm, 'FontName', 'Arial', 'FontSize', fnum); end |
fnum=48; loX=0.1; laY=0.7; t=char(ia-1+97+5+5); t=['(', t, ')']; GenTextMapkk(loX, laY, t, fnum); function GenTextMapkk(loX, laY, yymm, fnum) xxx=get(gca, 'LatitudeLimits'); yyy=get(gca, 'LongitudeLimits'); x=loX*(max(xxx)-min(xxx))+min(xxx); y=laY*(max(yyy)-min(yyy))+min(yyy); text(x, y, yymm, 'FontName', 'Arial', 'FontSize', fnum); end
fnum=90; loX=0.85; laY=0.5; t=dsname; GenTextMapCenter(loX, laY, t, fnum) function GenTextMapCenter(loX, laY, yymm, fnum) xxx=get(gca, 'LatitudeLimits'); yyy=get(gca, 'LongitudeLimits'); x=loX*(max(xxx)-min(xxx))+min(xxx); y=laY*(max(yyy)-min(yyy))+min(yyy); text(x, y, yymm, 'FontName', 'Arial', 'FontSize', fnum, 'HorizontalAlignment', 'center'); end
1 2 3 4 5 6 7 8 9 | missing_idx = cellfun(@(x) is_missing(x), rawdat, 'UniformOutput', true); rawdat(missing_idx) = {NaN}; function tf = is_missing(x) tf = false; if ismissing(x) tf = true; end end |
1 2 3 4 5 6 7 8 9 | % Add legend h = gobjects(3, 1); % preallocate graphic handles h(1)=plot(-100, -100, 'hexagram', 'MarkerSize', 6, 'LineWidth', 1, 'MarkerEdgeColor', 'k', ... 'MarkerFaceColor', 'none'); h(2)=plot(-100, -100, 'o', 'MarkerSize', 6, 'LineWidth', 1, 'MarkerEdgeColor', 'none', ... 'MarkerFaceColor', 'r'); h(3)=plot(-100, -100, 'o', 'MarkerSize', 6, 'LineWidth', 1, 'MarkerEdgeColor', 'b', ... 'MarkerFaceColor', 'none'); legend(h, labels, 'Location', 'northwest'); % call once after the loop |
datcol=[datcol{:}]; datcol=datcol';
Nh=4; Nw=17; gap=[0.00, 0.01]; marg_h=[0.20]; marg_w=0.05; figure; ha = tight_subplot(Nh, Nw, gap, marg_h, marg_w); set(gcf,'outerposition',get(0,'screensize'));
annotation('textbox', [0.1 0.936 0.8 0.06], ... 'String', {'Number of Hours with PM2.5 Concentrations Exceeding 15 µg/m³ at Each Monitoring Station'}, ... 'HorizontalAlignment', 'center', ... 'VerticalAlignment', 'middle', ... 'FontSize', 20, ... 'FontWeight', 'bold', ... 'LineStyle', 'none');
otpath=fullfile('2Num2025'); export_fig(otpath, '-png', '-painters', '-r300'); pause(3); close all;
| 编号 | 研究数据 | 对应土地覆盖数据年份 | 间隔 | 引用 |
| 1 | 1989~1993 | 2000(1 km) | ≥7 a | 朱文泉, 潘耀忠, 张锦水. 中国陆地植被净初级生产力遥感估算. 植物生态学报, 2007, 31(3): 413~424. |
| 2 | 1989~1993 | 2000(1 km) | ≥7 a | Zhu, Pan, He, et al.. Simulation of maximum light use efficiency for some typical vegetation types in China. Chinese Science Bulletin, 2006, 51(4): 457~463. |
| 3 | 2000 | 1995(30 m) | 5 a | Honnay, Piessens, Landuyt, et al.. Satellite based land use and landscape complexity indices as predictors for regional plant species diversity. Landscape and Urban Planning, 2003, 63: 241~250. |
| 4 | 1990 | 1992~1993 | 2~3 a | Frolking, Xiao, Zhuang, et al.. Agricultural land-use in China: a comparison of area estimates from ground-based census and satellite-borne remote sensing. Global Ecology and Biogeography, 1999, 8, 407~416. |
| 5 | 1998~2013 | 2000(1 km) | 2~3 a | Liu, Zhu, Zhu, et al.. Changes in Spring Phenology in the Three-Rivers Headwater Region from 1999 to 2013. Remote Sensing, 2014, 6: 9130~9142. |
| 7 | 1982~2006 | 1992~1993(1 km) | 0~14 a | Zhu, Tian, Xu, et al.. Extension of the growing season due to delayed autumn over mid and high latitudes in North America during 1982–2006. Global Ecology and Biogeography, 2012, 21(2): 260-271. |
| 8 | 1982~1999 | 1981~1994 | 0~10+ a | Deyong Yu, Wenquan Zhu* and Yaozhong Pan. The Role of Atmospheric Circulation System playing in Coupling Relationship between Spring NPP and Precipitation in East Asia Area. Environmental Monitoring and Assessment, 2008, 145: 135-143. |
| 中文字号 | 英文字号(磅) | 毫米 | 像素 |
| 一英寸 | 72pt | 25.30mm | 95.6px |
| 大特号 | 63pt | 22.14mm | 83.7px |
| 特号 | 54pt | 18.97mm | 71.7px |
| 小初 | 36pt | 12.70mm | 48px |
| 一号 | 26pt | 9.17mm | 34.7px |
| 小一 | 24pt | 8.47mm | 32px |
| 二号 | 22pt | 7.76mm | 29.3px |
| 小二 | 18pt | 6.35mm | 24 |
| 三号 | 16pt | 5.64mm | 21.3px |
| 小三 | 15pt | 5.29mm | 20px |
| 四号 | 14pt | 4.94mm | 18.7px |
| 小四 | 12pt | 4.23mm | 16px |
| 五号 | 10.5pt | 3.70mm | 14px |
| 小五 | 9pt | 3.18mm | 12px |
| 六号 | 7.5pt | 2.56mm | 10px |
| 小六 | 6.5pt | 2.29mm | 8.7px |
| 七号 | 5.5pt | 1.94mm | 7.3px |
| 八号 | 5pt | 1.76mm | 6.7px |