Single-Event Upsets
Posted on
首先安利一下真理元素的这个视频
¶Single Event Upsets
A single-event upset (SEU), also known as a single-event error (SEE), is a change of state caused by one single ionizing particle (ions, electrons, photons…) striking a sensitive node in a micro-electronic device, such as in a microprocessor, semiconductor memory, or power transistors.
xgrads:一个方便的解析ctl文件的库
Posted on In Code
最近对xgrads这个库的一些功能进行了简单的修复,使其能够配适模式输出结果。由于开题在即,容后再写详细的教程。
记录在此
xarray
Posted on In Code
¶Xarray open_mfdataset without time dim
Xarray have a convenient method to open multi-dataset parallelly. However, sometimes time are encoded in the filename and are not in th .nc
coordinate. So we need a method. For example, the dataset of my lab CAQRA[1] do this.
¶Stackoverflow [2]:
Create a function which adds a time dimension to a DataArray, and fill it with a arbitrary date:
1 | def add_time_dim(xda): |
Then, pass this function to the preprocess
argument when running the open_mfdataset
functions:
1 | data = xr.open_mfdataset(files, preprocess = add_time_dim) |
Finally, fill the time
dimension with my dates:
1 | data['time'] = dates |
¶Github [3]
I inspired also by an issue in Github and get the code below: