亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 左下斜切.cpp

?? 地震資料切除程序
?? CPP
字號:
#include<stdio.h>
typedef struct {        /* segy - trace identification header */
        int tracl;      /* trace sequence number within line */
        int tracr;      /* trace sequence number within reel */
        int fldr;       /* field record number */
        int tracf;      /* trace number within field record */
        int ep;         /* energy source point number */
        int cdp;        /* CDP ensemble number */
        int cdpt;       /* trace number within CDP ensemble */
        short trid;     /* trace identification code:
                        1 = seismic data
                        2 = dead
                        3 = dummy
                        4 = time break
                        5 = uphole
                        6 = sweep
                        7 = timing
                        8 = water break
                        9---, N = optional use (N = 32,767)
                        Following are CWP id flags:
                         9 = autocorrelation
                        10 = Fourier transformed - no packing
                             xr[0],xi[0], ..., xr[N-1],xi[N-1]
                        11 = Fourier transformed - unpacked Nyquist
                             xr[0],xi[0],...,xr[N/2],xi[N/2]
                        12 = Fourier transformed - packed Nyquist
                             even N:
                             xr[0],xr[N/2],xr[1],xi[1], ...,
                                xr[N/2 -1],xi[N/2 -1]
                                (note the exceptional second entry)
                             odd N:
                             xr[0],xr[(N-1)/2],xr[1],xi[1], ...,
                                xr[(N-1)/2 -1],xi[(N-1)/2 -1],xi[(N-1)/2]
                                (note the exceptional second & last entries)
                        13 = Complex signal in the time domain
                             xr[0],xi[0], ..., xr[N-1],xi[N-1]
                        14 = Fourier transformed - amplitude/phase
                             a[0],p[0], ..., a[N-1],p[N-1]
                        15 = Complex time signal - amplitude/phase
                             a[0],p[0], ..., a[N-1],p[N-1]
                        16 = Real part of complex trace from 0 to Nyquist
                        17 = Imag part of complex trace from 0 to Nyquist
                        18 = Amplitude of complex trace from 0 to Nyquist
                        19 = Phase of complex trace from 0 to Nyquist
                        21 = Wavenumber time domain (k-t)
                        22 = Wavenumber frequency (k-omega)
                        23 = Envelope of the complex time trace
                        24 = Phase of the complex time trace
                        25 = Frequency of the complex time trace
                        30 = Depth-Range (z-x) traces
                        101 = Seismic data packed to bytes (by supack1)
                        102 = Seismic data packed to 2 bytes (by supack2)
                        */
        short nvs;      /* number of vertically summed traces (see vscode
                           in bhed structure) */
        short nhs;      /* number of horizontally summed traces (see vscode
                           in bhed structure) */
        short duse;     /* data use:
                                1 = production
                                2 = test */
        int offset;     /* distance from source point to receiver
                           group (negative if opposite to direction
                           in which the line was shot) */
        int gelev;      /* receiver group elevation from sea level
                           (above sea level is positive) */
        int selev;      /* source elevation from sea level
                           (above sea level is positive) */
        int sdepth;     /* source depth (positive) */
        int gdel;       /* datum elevation at receiver group */
        int sdel;       /* datum elevation at source */
        int swdep;      /* water depth at source */
        int gwdep;      /* water depth at receiver group */
        short scalel;   /* scale factor for previous 7 entries
                           with value plus or minus 10 to the
                           power 0, 1, 2, 3, or 4 (if positive,
                           multiply, if negative divide) */
        short scalco;   /* scale factor for next 4 entries
                           with value plus or minus 10 to the
                           power 0, 1, 2, 3, or 4 (if positive,
                           multiply, if negative divide) */
        int  sx;        /* X source coordinate */
        int  sy;        /* Y source coordinate */
        int  gx;        /* X group coordinate */
        int  gy;        /* Y group coordinate */
        short counit;   /* coordinate units code:
                                for previous four entries
                                1 = length (meters or feet)
                                2 = seconds of arc (in this case, the
                                X values are longitude and the Y values
                                are latitude, a positive value designates
                                the number of seconds east of Greenwich
                                or north of the equator */
        short wevel;    /* weathering velocity */
        short swevel;   /* subweathering velocity */
        short sut;      /* uphole time at source */
        short gut;      /* uphole time at receiver group */
        short sstat;    /* source static correction */
        short gstat;    /* group static correction */
        short tstat;    /* total static applied */
        short laga;     /* lag time A, time in ms between end of 240-
                           byte trace identification header and time
                           break, positive if time break occurs after
                           end of header, time break is defined as
                           the initiation pulse which maybe recorded
                           on an auxiliary trace or as otherwise
                           specified by the recording system */
        short lagb;     /* lag time B, time in ms between the time break
                           and the initiation time of the energy source,
                           may be positive or negative */
        short delrt;    /* delay recording time, time in ms between
                           initiation time of energy source and time
                           when recording of data samples begins
                           (for deep water work if recording does not
                           start at zero time) */
        short muts;     /* mute time--start */
        short mute;     /* mute time--end */
        unsigned short ns;      /* number of samples in this trace */
        unsigned short dt;      /* sample interval; in micro-seconds */
        short gain;     /* gain type of field instruments code:
                                1 = fixed
                                2 = binary
                                3 = floating point
                                4 ---- N = optional use */
        short igc;      /* instrument gain constant */
        short igi;      /* instrument early or initial gain */
        short corr;     /* correlated:
                                1 = no
                                2 = yes */
        short sfs;      /* sweep frequency at start */
        short sfe;      /* sweep frequency at end */
        short slen;     /* sweep length in ms */
        short styp;     /* sweep type code:
                                1 = linear
                                2 = cos-squared
                                3 = other */
        short stas;     /* sweep trace length at start in ms */
        short stae;     /* sweep trace length at end in ms */
        short tatyp;    /* taper type: 1=linear, 2=cos^2, 3=other */
        short afilf;    /* alias filter frequency if used */
        short afils;    /* alias filter slope */
        short nofilf;   /* notch filter frequency if used */
        short nofils;   /* notch filter slope */
        short lcf;      /* low cut frequency if used */
        short hcf;      /* high cut frequncy if used */
        short lcs;      /* low cut slope */
        short hcs;      /* high cut slope */
        short year;     /* year data recorded */
        short day;      /* day of year */
        short hour;     /* hour of day (24 hour clock) */
        short minute;   /* minute of hour */
        short sec;      /* second of minute */
        short timbas;   /* time basis code:
                                1 = local
                                2 = GMT
                                3 = other */
        short trwf;     /* trace weighting factor, defined as 1/2^N
                           volts for the least sigificant bit */
        short grnors;   /* geophone group number of roll switch
                           position one */
        short grnofr;   /* geophone group number of trace one within
                           original field record */
        short grnlof;   /* geophone group number of last trace within
                           original field record */
        short gaps;     /* gap size (total number of groups dropped) */
        short otrav;    /* overtravel taper code:
                                1 = down (or behind)
                                2 = up (or ahead) */
        /* local assignments */
        float d1;       /* sample spacing for non-seismic data */
        float f1;       /* first sample location for non-seismic data */
        float d2;       /* sample spacing between traces */
        float f2;       /* first trace location */
        float ungpow;   /* negative of power used for dynamic
                           range compression */
        float unscale;  /* reciprocal of scaling factor to normalize
                           range */
        int ntr;        /* number of traces */
        short mark;     /* mark selected traces */
        short unass[15];        /* unassigned--NOTE: last entry causes
                           a break in the word alignment, if we REALLY
                           want to maintain 240 bytes, the following
                           entry should be an odd number of short/UINT2
                           OR do the insertion above the "mark" keyword
                           entry */
} segy;
void ReadSegy(float **array, char inputname[], int ns, int ntr, int have)//ntr:trace num. ns:sample num.
{
	int ii,jj;
	FILE *pSegy=fopen(inputname,"rb");
	if(have)
		fseek(pSegy,3600L,0);
	for(ii=0;ii<ntr;ii++)
	{
		fseek(pSegy,240L,1);
		for(jj=0;jj<ns;jj++)
		{
			fread(&array[jj][ii],sizeof(float),1,pSegy);
		}
	}
	fclose(pSegy);
}
void WriteSegy(float **array, char outputname[],int ns, int ntr, float dt, float dx)//ntr:trace num. ns:sample num.
{
	int ii,jj;
	segy TraceHead;
	TraceHead.dt=(unsigned short)(dt*1e6);
	TraceHead.ns=(unsigned short)ns;
	FILE *pSegy=fopen(outputname,"wb");
//	fseek(pSegy,3600L,0);
	for(ii=0;ii<ntr;ii++)
	{
		TraceHead.tracf=ii+1;
		TraceHead.offset=ii*(int)dx;
		fwrite(&TraceHead,sizeof(segy),1,pSegy);
		for(jj=0;jj<ns;jj++)
		{
			fwrite(&array[jj][ii],sizeof(float),1,pSegy);
		}
	}
	fclose(pSegy);
}
int main()
{
	int jj,ii;
	int nx;
	int nt;
	int have;
	float dt;
	float dx;
	float xx=0;
	int cutj1,cutj2;
	char inname[50]={0};
	printf("input name: ");
	scanf("%s",inname);
	printf("nt=:(d) ");
	scanf("%d",&nt);
	printf("nx=:(d) ");
	scanf("%d",&nx);
	printf("dt=:(f) ");
	scanf("%f",&dt);
	printf("dx=:(f)");
	scanf("%f",&dx);
	printf("have=:(1 or 0) ");
	scanf("%d",&have);
	float **array=0;
	array=new float*[nt];
	for(jj=0;jj<nt;jj++)
		array[jj]=new float[nx];
	for(jj=0;jj<nt;jj++)
		for(ii=0;ii<nx;ii++)
			array[jj][ii]=0;
	ReadSegy(array, inname, nt, nx, have);
	printf("cutj=:(d)");
	scanf("%d",&cutj1);
	printf("cuti=:(d)");
	scanf("%d",&cutj2);
////cut
//	for(jj=0;jj<cutj1;jj++)
//		for(ii=0;ii<nx;ii++)
//			array[jj][ii]=0;
	for(jj=cutj1;jj<nt;jj++)
	{
		ii=0;
		xx=cutj2*(jj-cutj1)/(float)(nt-cutj1);
		while(ii<xx)
		{
			array[jj][ii]=0;
			ii++;
		}
	}
	WriteSegy(array, "cut.su",nt, nx, dt, dx);
	for(jj=0;jj<nt;jj++)
		delete[] array[jj];
	delete[] array;
	return 0;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线精品不卡| 色哟哟日韩精品| 国产一区二区女| 韩国女主播成人在线观看| 免费的国产精品| 麻豆91在线观看| 久久91精品国产91久久小草| 日本不卡视频一二三区| 青青草91视频| 国产一区二区三区四| 精品在线免费观看| 国产一区二区三区黄视频| 国产乱人伦偷精品视频免下载| 麻豆精品国产91久久久久久| 久久69国产一区二区蜜臀| 国产原创一区二区三区| 国产成人在线视频网址| 成人午夜私人影院| 91天堂素人约啪| 色噜噜狠狠色综合中国| 欧美在线观看视频在线| 91精品欧美一区二区三区综合在| 欧美一区二区在线免费播放| 欧美精品一区二区三区蜜桃视频| 国产片一区二区三区| 国产精品美女久久福利网站| 中文字幕视频一区二区三区久| 亚洲四区在线观看| 亚洲成a人片在线观看中文| 美女网站色91| 成人免费毛片片v| 欧亚洲嫩模精品一区三区| 91麻豆精品久久久久蜜臀 | 国产日韩影视精品| 国产一区二区91| 国产伦精一区二区三区| 99国产精品一区| 在线播放中文一区| 国产视频视频一区| 一区二区日韩av| 久久66热re国产| 91污片在线观看| 欧美videos大乳护士334| 欧美激情艳妇裸体舞| 一区二区三区日本| 精品一区二区三区免费| 91免费视频网| 日韩三级视频中文字幕| 国产精品久久久久影院老司| 午夜激情久久久| 国产成人精品亚洲日本在线桃色 | 久久这里都是精品| 亚洲曰韩产成在线| 国产精品原创巨作av| 欧美在线制服丝袜| 国产欧美日韩综合| 午夜影视日本亚洲欧洲精品| 成人污污视频在线观看| 欧美精品色一区二区三区| 亚洲国产精品99久久久久久久久 | 精东粉嫩av免费一区二区三区| 色综合天天综合狠狠| 精品理论电影在线观看| 亚洲一区二区三区在线| 国产aⅴ综合色| 日韩视频免费观看高清完整版在线观看 | 欧美日韩在线免费视频| 国产日韩欧美精品一区| 麻豆精品一区二区| 欧美午夜精品一区二区三区| 国产农村妇女毛片精品久久麻豆 | 五月天激情小说综合| k8久久久一区二区三区 | 午夜精品成人在线视频| 白白色 亚洲乱淫| 精品sm在线观看| 五月天国产精品| 91黄色免费版| 成人欧美一区二区三区小说| 国产在线视频一区二区三区| 欧美人牲a欧美精品| 亚洲色大成网站www久久九九| 国产麻豆视频一区二区| 欧美丰满美乳xxx高潮www| 亚洲黄色免费网站| 91在线看国产| 国产精品久久久99| 国产成人高清在线| 国产日本亚洲高清| 国产精品亚洲成人| 久久久久久久综合狠狠综合| 蜜臀国产一区二区三区在线播放| 欧美日韩免费观看一区二区三区| 亚洲色图一区二区三区| 成年人国产精品| 国产精品久久久久一区二区三区共| 国产成人夜色高潮福利影视| 国产日韩精品一区二区三区| 国产麻豆成人精品| 久久美女高清视频| 精品在线亚洲视频| 国产亚洲精品bt天堂精选| 国产一区二区福利视频| 久久婷婷久久一区二区三区| 久久成人免费电影| 精品电影一区二区三区 | 日韩欧美激情在线| 麻豆视频一区二区| 精品成人免费观看| 成人综合日日夜夜| 欧美极品美女视频| 99久久国产综合色|国产精品| 成人欧美一区二区三区黑人麻豆| www.欧美日韩国产在线| 亚洲嫩草精品久久| 欧美日韩免费观看一区三区| 日韩精品亚洲专区| 欧美成人精品二区三区99精品| 久久99深爱久久99精品| 国产亚洲欧美色| 99久久99久久精品国产片果冻| 中文字幕在线不卡| 欧洲av一区二区嗯嗯嗯啊| 视频一区中文字幕| www一区二区| 99国产精品久久久| 亚洲国产视频直播| 日韩一区二区精品在线观看| 国产一区欧美日韩| 一区二区中文字幕在线| 在线一区二区三区四区| 天天av天天翘天天综合网色鬼国产| 精品久久久久久最新网址| 成人蜜臀av电影| 亚洲大片免费看| 欧美变态tickle挠乳网站| 粉嫩嫩av羞羞动漫久久久 | 国内精品国产成人国产三级粉色| 国产免费成人在线视频| 欧美在线视频全部完| 精品在线观看视频| 亚洲四区在线观看| 日韩欧美成人激情| av激情成人网| 日本欧美一区二区三区乱码| 国产亚洲1区2区3区| 在线观看视频欧美| 激情六月婷婷久久| 一区二区视频在线看| 日韩一区二区三区视频在线观看| 国产成a人亚洲精| 午夜精品久久久久久久久久 | 婷婷亚洲久悠悠色悠在线播放| 精品国产1区2区3区| 色婷婷激情综合| 精品一区二区综合| 亚洲一级在线观看| 日本一区二区视频在线观看| 欧美在线一区二区| 成人午夜电影久久影院| 婷婷久久综合九色综合伊人色| 国产日韩欧美麻豆| 日韩一级成人av| 91麻豆自制传媒国产之光| 麻豆高清免费国产一区| 一区二区三区在线看| 精品捆绑美女sm三区| 欧美体内she精高潮| 大美女一区二区三区| 精品影视av免费| 亚洲成av人片一区二区| 国产精品福利一区二区三区| 日韩欧美中文字幕制服| 欧美一a一片一级一片| 国产91丝袜在线播放| 麻豆精品国产91久久久久久| 亚洲小说欧美激情另类| 国产精品护士白丝一区av| 欧美电视剧免费全集观看| 欧美午夜一区二区三区| av影院午夜一区| 国产精品一区不卡| 麻豆精品视频在线| 日本中文在线一区| 亚洲成人资源在线| 亚洲精品自拍动漫在线| 国产精品网站在线播放| 国产三级欧美三级日产三级99| 日韩一区二区免费在线观看| 欧美视频一区二区在线观看| 91在线国产福利| 成人性视频免费网站| 国产一区二区福利| 国产麻豆视频一区二区| 精品午夜一区二区三区在线观看| 日韩电影网1区2区| 天天操天天干天天综合网| 亚洲va中文字幕| 亚洲成人av在线电影| 亚洲国产视频网站|