久久精品精选,精品九九视频,www久久只有这里有精品,亚洲熟女乱色综合一区
    分享

    matlab_ncl 腳本

     春天一條蟲 2011-12-08
    %Script to plot out 6-panels of WRFOUT data...
      % Wind magnitude and direction, Heat Flux, 2m Air-Skin Temp (Delta-T)
      % Precipitation (RAINNC + RAINC), Moisture Flux, 2m Mixing Ratio
    %
    % Joseph B. Zambon
    % 26-January-2010
    
    clear all
    close all
    
    ncl_file = '/he_data/he/jbzambon/projects/jill/ncl_out.nc';
      %contains: lat/lon, u10, v10, times, slp
    wrfout_file = '/he_data/he/jbzambon/projects/jill/wrfout_for_domain1';
      %contains: HFX, QFX, TSK, T2, Q2, RAINC, RAINNC
    coastlines = '/he_data/he/jbzambon/matlab/coast.mat';
      %coastline data for world
    sp = 20;
      %quiver spacing for wind magnitude + direction plots
    
    ncl = netcdf(ncl_file);
    lat = ncl{'lat'}(1,:,:);
    lon = ncl{'lon'}(1,:,:);
    [X,Y] = meshgrid(lon(1,:),lat(:,1));
    U10 = ncl{'u10'}(:);
    V10 = ncl{'v10'}(:);
    mag10 = sqrt(U10.^2 + V10.^2);
    times = ncl{'Times'}(:);
    
    wrf = netcdf(wrfout_file);
    hfx = wrf{'HFX'}(:);
    qfx = wrf{'QFX'}(:);
    tsk = wrf{'TSK'}(:);
    T2 = wrf{'T2'}(:);
    delT = T2-tsk;
    mslp = ncl{'slp'}(:);
    Q2 = wrf{'Q2'}(:);
    RAINC = wrf{'RAINC'}(:);
    RAINNC = wrf{'RAINNC'}(:);
    precip = RAINC + RAINNC;
    
    load(coastlines);
    
    set(figure(1),'Position',[0 30 1400 900]);
    for i=1:129
      %Squeeze variables
      imag = squeeze(mag10(i,:,:));
      iu = squeeze(U10(i,:,:));
      iv = squeeze(V10(i,:,:));
      ihfx = squeeze(hfx(i,:,:));
      idelT = squeeze(delT(i,:,:));
      ihfx = squeeze(hfx(i,:,:));
      iqfx = squeeze(qfx(i,:,:));
      iq2 = squeeze(Q2(i,:,:));
      %Calculate precip
      if (i<=1)
        iprecip = zeros(235,224);
      else
        iprecip = squeeze(precip(i,:,:))-squeeze(precip((i-1),:,:));
      end
      %Subplot 1,1 - Wind Mag and Vectors
         subplot('position',[0.025 0.57 0.3 0.35])
         pcolor(X,Y,imag); shading flat; caxis([0 20]); hold on;
         quiver(X(1:sp:end),Y(1:sp:end),iu(1:sp:end),iv(1:sp:end),'k')
         plot(ncst(:,1),ncst(:,2),'k')
         pclegend([0 20],[0.025 0.5 0.3 0.02]); hold on;
         title(['Wind Magnitude (ms^-^1) and Direction'])
      %Subplot 1,2 - HFX
         subplot('position',[0.35 0.57 0.3 0.35])
         pcolor(X,Y,ihfx); shading flat; caxis([-200 1000]); hold on;
         plot(ncst(:,1),ncst(:,2),'k')
         pclegend([-200 1000],[0.35 0.5 0.3 0.02]); hold on;
         title(['Heat Flux in Wm^2'])
      %Subplot 1,3 - Delta-T
         subplot('position',[0.675 0.57 0.3 0.35])
         pcolor(X,Y,idelT); shading flat; caxis([-10 2]); hold on;
         plot(ncst(:,1),ncst(:,2),'k')
         pclegend([-10 2],[0.675 0.5 0.3 0.02]); hold on;
         title(['Delta-T (Air - Skin) in \circC'])
      %Subplot 2,1 - Precipitation
         subplot('position',[0.025 0.1 0.3 0.35])
         %change colormap white-to-blue
            load('~/matlab/colormaps/green.mat')
         pcolor(X,Y,iprecip); shading flat; caxis([0 20]); hold on;
         colormap(green); freezeColors;
         plot(ncst(:,1),ncst(:,2),'k')
         B = pclegend([0 20],[0.025 0.03 0.3 0.02]); %colorbar('SouthOutside');
         freezeColors(B);
         title(['Hourly Precip in mm'])
      %Subplot 2,2 - QFX
         subplot('position',[0.35 0.1 0.3 0.35])
         colormap(jet)
         pcolor(X,Y,iqfx); shading flat; caxis([-0.0001 0.0006]); hold on;
         plot(ncst(:,1),ncst(:,2),'k')
         pclegend([-0.0001 0.0006],[0.35 0.03 0.3 0.02]);
         title(['Moisture Flux in kgm^2 * 10^-^3'])
      %Subplot 2,3 - Q2
         subplot('position',[0.675 0.1 0.3 0.35])
         pcolor(X,Y,iq2); shading flat; caxis([0 0.025]); hold on;
         plot(ncst(:,1),ncst(:,2),'k')
         pclegend([0 20],[0.675 0.03 0.3 0.02]);
         title(['2m Mixing Ratio in kgkg^-^1 * 10^-^2'])
      mtit(['Forecast Hour: ' num2str((i-1)*3) '     Valid: ' times(i,1:10) ' ' times(i,12:end)],'yoff',+0.025,'FontSize',18)
      screen2png('test.png')
      eval(['! mv test.png ' num2str(i) '.png'])
      clf
    end
    

      本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發布,不代表本站觀點。請注意甄別內容中的聯系方式、誘導購買等信息,謹防詐騙。如發現有害或侵權內容,請點擊一鍵舉報。
      轉藏 分享 獻花(0

      0條評論

      發表

      請遵守用戶 評論公約

      類似文章 更多

      主站蜘蛛池模板: 久久精品岛国AV一区二区无码| 伊人久久大香线蕉成人| 欧美综合婷婷欧美综合五月| 亚洲AV午夜电影在线观看 | 国产精品VA尤物在线观看| 久久精品国产免费观看三人同眠 | 亚洲伊人久久精品影院| 大地资源中文第二页日本| 亚洲精品成人福利网站| 美女内射视频WWW网站午夜| 国产尤物精品自在拍视频首页| 又色又爽又黄的视频网站| 婷婷久久香蕉五月综合加勒比| 久久综合九色综合97欧美| 亚洲另类激情专区小说图片| 日本一高清二区视频久二区 | 国产午夜亚洲精品国产成人| 成码无人AV片在线电影网站| 最近中文字幕日韩有码| 私人毛片免费高清影视院| 国内不卡不区二区三区| 丝袜美腿一区二区三区| 国产精成人品日日拍夜夜 | 亚洲国产精品福利片在线观看| 亚洲AV成人片不卡无码| AAA级久久久精品无码片| 国产99青青成人A在线| 日韩精品久久久肉伦网站| 97在线精品视频免费| 少妇激情AV一区二区三区| 国产一区二区在线影院| 日本精品一区二区不卡| 中文字幕无码日韩专区免费| 欧美伦费免费全部午夜最新| 亚洲一区中文字幕人妻| 人人妻人人狠人人爽| 啊轻点灬大JI巴太粗太长了欧美| 亚洲成人av在线资源| 精品无码人妻一区二区三区 | 欧美亚洲另类 丝袜综合网| 久久月本道色综合久久|