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

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

?? api.tex

?? 國外免費地震資料處理軟件包
?? TEX
?? 第 1 頁 / 共 2 頁
字號:
with an error message, using the \texttt{sf\_error} function.  It isgenerally a good idea to check the input for user errors and, if theycannot be corrected, to take a safe exit.\lstinputlisting[firstline=15,lastline=20,frame=single]{\RSF/api/clip.f}Conceptually, the RSF data model is a multidimensional hypercube. Byconvention, the dimensions of the cube are stored in \texttt{n1=},\texttt{n2=}, etc. parameters. The \texttt{n1} parameter refers to thefastest axis. If the input dataset is a collection of traces,\texttt{n1} refers to the trace length. We extract it using the\texttt{sf\_histint} function (integer parameter from history) andabort if no value for \texttt{n1} is found. Since Fortran-77 cannoteasily handle dynamic allocation, we also need to check that\texttt{n1} is not larger than the size of the statically allocatedarray. We could proceed in a similar fashion, extracting \texttt{n2},\texttt{n3}, etc. If we are interested in the total number of traces,like in the clip example, a shortcut is to use the\texttt{sf\_leftsize} function.  Calling \texttt{sf\_leftsize(in,0)}returns the total number of elements in the hypercube (the product of\texttt{n1}, \texttt{n2}, etc.), calling \texttt{sf\_leftsize(in,1)}returns the number of traces (the product of \texttt{n2}, \texttt{n3},etc.), calling \texttt{sf\_leftsize(in,2)} returns the product of\texttt{n3}, \texttt{n4}, etc. By calling \texttt{sf\_leftsize}, weavoid the need to extract additional parameters for the hypercubedimensions that we are not interested in.\lstinputlisting[firstline=22,lastline=23,frame=single]{\RSF/api/clip.f}The clip parameter is read from the command line, where it can bespecified, for example, as \texttt{clip=10}. The parameter has the\texttt{float} type, therefore we read it with the\texttt{sf\_getfloat} function. If no \texttt{clip=} parameter isfound among the command line arguments, the program is aborted with anerror message using the \texttt{sf\_error} function.\lstinputlisting[firstline=25,lastline=37,frame=single]{\RSF/api/clip.f}Finally, we do the actual work: loop over input traces, reading,clipping, and writing out each trace.\subsection{Compiling}To compile the Fortran-77 program, run\begin{verbatim}f77 clip.f -L$RSFROOT/lib -lrsff -lrsf -lm\end{verbatim}Change \texttt{f77} to the Fortran compiler appropriate for your system andinclude additional compiler flags if necessary. The flags that RSF typicallyuses are in \texttt{\$RSFROOT/lib/rsfconfig.py}.\section{Fortran-90 interface}\lstset{language=fortran}The Fortran-90 clip function is listed below.\lstinputlisting[frame=single]{\RSF/api/clip.f90}Let us examine it in detail.\lstinputlisting[firstline=2,lastline=2,frame=single]{\RSF/api/clip.f90}The program starts with importing the \texttt{rsf} module.\lstinputlisting[firstline=10,lastline=10,frame=single]{\RSF/api/clip.f90}A call to \texttt{sf\_init} is needed to initialize the command-lineinterface.\lstinputlisting[firstline=11,lastline=12,frame=single]{\RSF/api/clip.f90}The standard input and output files are initialized with\texttt{rsf\_input} and \texttt{rsf\_output} functions. Both functionsaccept optional arguments. For example, if the command line contains\texttt{vel=velocity.rsf}, then both\texttt{rsf\_input("velocity.rsf")} and \texttt{rsf\_input("vel")} areacceptable.\lstinputlisting[firstline=14,lastline=15,frame=single]{\RSF/api/clip.f90}A call to \texttt{from\_par} extracts the ``\texttt{n1}'' parameterfrom the input file. Conceptually, the RSF data model is amultidimensional hypercube.  The \texttt{n1} parameter refers to thefastest axis. If the input dataset is a collection of traces,\texttt{n1} corresponds to the trace length. We could proceed in asimilar fashion, extracting \texttt{n2}, \texttt{n3}, etc. If we areinterested in the total number of traces, like in the clip example, ashortcut is to use the \texttt{filesize} function.  Calling\texttt{filesize(in)} returns the total number of elements in thehypercube (the product of \texttt{n1}, \texttt{n2}, etc.), calling\texttt{filesize(in,1)} returns the number of traces (the product of\texttt{n2}, \texttt{n3}, etc.), calling \texttt{filesize(in,2)}returns the product of \texttt{n3}, \texttt{n4}, etc. By calling\texttt{filesize}, we avoid the need to extract additional parametersfor the hypercube dimensions that we are not interested in.\lstinputlisting[firstline=17,lastline=17,frame=single]{\RSF/api/clip.f90}The clip parameter is read from the command line, where it can bespecified, for example, as \texttt{clip=10}. If we knew a good defaultvalue for \texttt{clip}, we could specify it with an optionalargument, i.e. \texttt{call~from\_par("clip",clip,default)}.\lstinputlisting[firstline=21,lastline=28,frame=single]{\RSF/api/clip.f90}Finally, we do the actual work: loop over input traces, reading,clipping, and writing out each trace.\subsection{Compiling}To compile the Fortran-90 program, run\begin{verbatim}f90 clip.f90 -I$RSFROOT/include -L$RSFROOT/lib -lrsff90 -lrsf -lm\end{verbatim}Change \texttt{f90} to the Fortran-90 compiler appropriate for your system andinclude additional compiler flags if necessary. The flags that RSF typicallyuses are in \texttt{\$RSFROOT/lib/rsfconfig.py}.\section{Python interface}\lstset{language=python}The Python clip script is listed below.\lstinputlisting[frame=single]{\RSF/api/clippy.exe}Let us examine it in detail. \lstinputlisting[firstline=3,lastline=4,frame=single]{\RSF/api/clippy.exe}The script starts with importing the \texttt{numpy} and \texttt{rsf}modules.\lstinputlisting[firstline=6,lastline=9,frame=single]{\RSF/api/clippy.exe}Next, we initialize the command line interface and the standard input andoutput files. We also make sure that the input file type is floating point.\lstinputlisting[firstline=11,lastline=13,frame=single]{\RSF/api/clippy.exe}We extract the ``\texttt{n1}'' parameter from the input file.Conceptually, the RSF data model is a multidimensional hypercube.  The\texttt{n1} parameter refers to the fastest axis. If the input datasetis a collection of traces, \texttt{n1} corresponds to the tracelength. We could proceed in a similar fashion, extracting \texttt{n2},\texttt{n3}, etc. If we are interested in the total number of traces,like in the clip example, a shortcut is to use the \texttt{size}method of the \texttt{Input} class1.  Calling \texttt{size(0)} returnsthe total number of elements in the hypercube (the product of\texttt{n1}, \texttt{n2}, etc.), calling \texttt{size(1)} returns thenumber of traces (the product of \texttt{n2}, \texttt{n3}, etc.),calling \texttt{size(2)} returns the product of \texttt{n3},\texttt{n4}, etc.\lstinputlisting[firstline=15,lastline=16,frame=single]{\RSF/api/clippy.exe}The clip parameter is read from the command line, where it can be specified,for example, as \texttt{clip=10}.\lstinputlisting[firstline=20,lastline=23,frame=single]{\RSF/api/clippy.exe}Finally, we do the actual work: loop over input traces, reading,clipping, and writing out each trace.\subsection{Compiling}The python script does not require compilation. Simply make sure that\texttt{\$RSFROOT/lib} is in \texttt{PYTHONPATH}. \section{MATLAB interface} % a meaningless comment\lstset{language=matlab}The MATLAB clip function is listed below.\lstinputlisting[frame=single]{\RSF/api/clip.m}Let us examine it in detail. \lstinputlisting[firstline=4,lastline=4,frame=single]{\RSF/api/clip.m}We start by figuring out the input file dimensions.\lstinputlisting[firstline=5,lastline=6,frame=single]{\RSF/api/clip.m}The first dimension is the trace length, the product of all otherdimensions correspond to the number of traces.\lstinputlisting[firstline=7,lastline=8,frame=single]{\RSF/api/clip.m}Next, we allocate the trace array and create an output file.\lstinputlisting[firstline=10,lastline=15,frame=single]{\RSF/api/clip.m}Finally, we do the actual work: loop over input traces, reading,clipping, and writing out each trace.\subsection{Compiling}The MATLAB script does not require compilation. Simply make sure that\texttt{\$RSFROOT/lib} is in \texttt{MATLABPATH}.\section{Installation} To install the interface to a particular language, use \texttt{API=}parameter in the RSF configuration. For example, to to install C++ andFortran-90 API bindings in addition to the basic package, run\begin{verbatim}scons API=c++,fortran-90 config\end{verbatim}Only the C interface is configured by default. The configurationparameters are stored in \texttt{\$RSFROOT/lib/rsfconfig.py}.\bibliographystyle{seg} \bibliography{api}%%% Local Variables: %%% mode: latex%%% TeX-master: t%%% End: 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91小视频在线| 在线一区二区观看| 久久老女人爱爱| 高清在线成人网| 久久精品视频免费| 高清成人在线观看| 亚洲综合色丁香婷婷六月图片| 欧洲国内综合视频| 免费观看一级特黄欧美大片| 日韩美一区二区三区| 国产成人午夜视频| 亚洲h在线观看| 国产精品二区一区二区aⅴ污介绍| 91丝袜美女网| 黑人巨大精品欧美黑白配亚洲| 中文字幕免费观看一区| 成人国产精品免费网站| 日本美女视频一区二区| 国产精品久久久久久久久免费相片 | 91福利国产成人精品照片| 麻豆久久久久久久| 亚洲一区在线免费观看| 国产日韩视频一区二区三区| 欧美日韩精品一区二区天天拍小说| 成人av网站在线观看免费| 国内外成人在线| 国产一区在线观看视频| 日本不卡一区二区三区高清视频| 伊人开心综合网| 国产精品久久久久永久免费观看| 久久久一区二区| 国产日韩欧美a| 欧美日韩另类一区| 制服丝袜中文字幕一区| 717成人午夜免费福利电影| 欧美色综合天天久久综合精品| 成人性生交大片免费看中文网站| 国产剧情一区二区| 国产suv精品一区二区883| 国产a区久久久| 在线观看日韩电影| 欧美日韩中文精品| 国产欧美一区二区精品婷婷| 精品福利二区三区| 欧美一区二区三区在线视频 | 午夜激情久久久| 喷白浆一区二区| 成人午夜电影网站| 91久久精品国产91性色tv| 这里只有精品免费| 日本一二三不卡| 亚洲综合视频在线观看| 国模一区二区三区白浆| 在线视频国内一区二区| 国产欧美日韩视频一区二区| 亚洲永久免费av| 高清成人免费视频| 欧美电视剧免费观看| 国产精品蜜臀在线观看| 麻豆极品一区二区三区| 91国产免费观看| 国产精品电影一区二区| 爽好多水快深点欧美视频| 成人深夜福利app| 久久久久久久久岛国免费| 日本特黄久久久高潮| 在线欧美日韩国产| 亚洲欧洲韩国日本视频 | 亚洲免费观看高清完整版在线观看 | 国产白丝精品91爽爽久久| 欧美日韩视频在线第一区| 国产精品久久久久久久午夜片| 91亚洲大成网污www| 中文字幕乱码一区二区免费| 亚洲午夜精品在线| 美女一区二区视频| 91精品国产乱码| 精品一区二区三区在线观看 | 天天av天天翘天天综合网色鬼国产| 99国产欧美久久久精品| 亚洲欧美激情视频在线观看一区二区三区 | 99久精品国产| 亚洲午夜三级在线| 久久综合色天天久久综合图片| 成人免费看视频| 亚洲一区二区3| 欧美激情一二三区| 制服视频三区第一页精品| 国产福利一区二区三区视频| 1024亚洲合集| 欧美mv日韩mv| 欧美日韩高清影院| 99国产精品久久久久久久久久| 亚洲综合免费观看高清完整版在线| 日韩美女一区二区三区四区| www.激情成人| 国产久卡久卡久卡久卡视频精品| 亚洲永久精品大片| 亚洲日本在线天堂| 国产精品三级电影| 国产日韩成人精品| 精品日韩一区二区| 精品久久久久久综合日本欧美| 色视频一区二区| eeuss国产一区二区三区| 亚洲精品免费在线播放| 国产亚洲自拍一区| 欧美一区二区三区影视| 色综合久久中文综合久久牛| 精品一区二区三区免费毛片爱 | 国产不卡视频一区| 麻豆成人综合网| 亚洲h动漫在线| 一区二区三区丝袜| 亚洲一区二区免费视频| 中文字幕一区二区日韩精品绯色| 精品美女一区二区三区| 日韩网站在线看片你懂的| 不卡一区二区三区四区| 97se亚洲国产综合自在线| 91丝袜美女网| 欧美日韩中文精品| 欧美性生活久久| 欧美成人三级在线| 欧美日韩卡一卡二| 亚洲国产aⅴ天堂久久| 欧美一区二区三区四区高清 | 中文字幕国产一区二区| 老司机精品视频一区二区三区| 国产乱子伦视频一区二区三区 | 福利视频网站一区二区三区| 成人福利视频在线| 色综合激情久久| 制服丝袜中文字幕一区| 久久精品人人做人人综合 | 国产成人h网站| 欧美巨大另类极品videosbest| 日韩欧美一级二级三级久久久| 国产三级精品在线| 亚洲视频综合在线| 极品销魂美女一区二区三区| 精品视频在线免费看| 久久日韩精品一区二区五区| 尤物视频一区二区| 国内一区二区在线| 久久女同互慰一区二区三区| 日韩不卡在线观看日韩不卡视频| 欧美三级三级三级| 亚洲影视资源网| 欧美一级片在线| 一区二区在线看| 欧美中文字幕不卡| 亚洲精品v日韩精品| 老色鬼精品视频在线观看播放| 91视频在线观看| 综合激情网...| 欧美最猛黑人xxxxx猛交| 亚洲小说欧美激情另类| 欧美日韩精品一二三区| 亚洲成人手机在线| 色综合色狠狠综合色| 亚洲成人av一区| 日韩亚洲欧美高清| 国产精品资源在线| 国产精品无码永久免费888| 91美女在线视频| 麻豆极品一区二区三区| 亚洲三级在线免费观看| 在线观看亚洲成人| 水野朝阳av一区二区三区| 国产精品免费av| 精品久久久久香蕉网| 国产精品69久久久久水密桃| 久久久久一区二区三区四区| 日韩伦理av电影| av爱爱亚洲一区| 国产精品一区二区免费不卡| 全国精品久久少妇| 免费在线观看视频一区| 五月婷婷欧美视频| 亚洲国产欧美另类丝袜| 亚洲免费在线视频| 亚洲人成精品久久久久| 国产精品网站在线| 久久久久88色偷偷免费| 久久色中文字幕| 精品国产91久久久久久久妲己| 日本vs亚洲vs韩国一区三区二区| 久久综合色综合88| 欧美一区二区三区的| 91福利精品视频| 91亚洲精品一区二区乱码| 91一区一区三区| 国产伦理精品不卡| 国产一区二区三区视频在线播放| 免费看黄色91| 久久se精品一区二区| 黄色小说综合网站| 麻豆精品国产91久久久久久| 久久精品国产一区二区|