function   ne0CONUSne30x8_patch_plot_simplified(thevariable,lon,lat)

%%% This function is to plot ne0CONUSne30x8 variables in patch format only

try
grid_filename='/user_path/conus_30_x8.g_scrip.nc';ncinfo(grid_filename);
catch
grid_filename='conus_30_x8.g_scrip.nc';ncinfo(grid_filename);
end    

grid_corner_lon=ncread(grid_filename,'grid_corner_lon');
grid_corner_lat=ncread(grid_filename,'grid_corner_lat');
grid_center_lat=ncread(grid_filename,'grid_center_lat');
grid_center_lon=ncread(grid_filename,'grid_center_lon');

if mean((lon-grid_center_lon).^2)>1e-5 | mean((lat-grid_center_lat).^2)>1e-5
disp('the lat/lon of the variable does not match lat/lon from conus_30_x8.g_scrip.nc')
error
end


[Z1,Z2]=size(thevariable);
if Z1*Z2==length(grid_center_lon)
   % correct data
else
disp(['the variable must be a vector with length of [',num2str(length(grid_center_lon)),' ,1]'])
error
end    

grid_corner_lon_sorted=sort(grid_corner_lon);
D=grid_corner_lon_sorted(10,:)-grid_corner_lon_sorted(1,:);clear grid_corner_lon_sorted;
row=find(D>358 & abs(grid_center_lat')<85);length(row);clear D;

grid_corner_lon_new1=grid_corner_lon(:,row);
grid_corner_lat_new1=grid_corner_lat(:,row);
grid_corner_lon_new2=grid_corner_lon(:,row);
grid_corner_lat_new2=grid_corner_lat(:,row);
thevariable_new1=thevariable(row);
thevariable_new2=thevariable(row);

grid_corner_lon(:,row)=nan;

grid_corner_lon_new1(find(grid_corner_lon_new1>355))=0;
grid_corner_lon_new2(find(grid_corner_lon_new2<10))=360;

grid_corner_lon_merged(:,                        1:length(grid_corner_lon))                          =grid_corner_lon;
grid_corner_lon_merged(:,length(grid_corner_lon)+1:length(grid_corner_lon)+length(row))              =grid_corner_lon_new1;
grid_corner_lon_merged(:,length(grid_corner_lon)+length(row)+1:length(grid_corner_lon)+2*length(row))=grid_corner_lon_new2;

grid_corner_lat_merged(:,                        1:length(grid_corner_lat))                          =grid_corner_lat;
grid_corner_lat_merged(:,length(grid_corner_lat)+1:length(grid_corner_lat)+length(row))              =grid_corner_lat_new1;
grid_corner_lat_merged(:,length(grid_corner_lat)+length(row)+1:length(grid_corner_lat)+2*length(row))=grid_corner_lat_new2;

thevariable_merged(                        1:length(thevariable))                          =thevariable;
thevariable_merged(length(thevariable)+1:length(thevariable)+length(row))              =thevariable_new1;
thevariable_merged(length(thevariable)+length(row)+1:length(thevariable)+2*length(row))=thevariable_new2;


clf
PPP=patch(grid_corner_lon_merged(:,:),grid_corner_lat_merged(:,:),thevariable_merged(:));hold on
PPP.EdgeColor = 'none';
colorbar;
hold on


end
