朝花

依然璀璨

在雁栖湖上课的时候并没有在周边玩好好逛过,本来想去滑雪场的但因为疫情也作罢了。朋友Y有空开车去郊区玩就叫上了我,恰好遇上某电影节[1],因此路上有些拥堵。

虽然天气并没有很好,但是景色还是不错,能从室内出门散心还是很快乐的。此处放上一些本次的照片(均来自Y和他的另一位朋友Q)。

新增
Veritas

法语

c’est la vie
这就是人生。

似乎很常见的句子,在很多电影里见过。最近突然发现自然卷的专辑也叫这个,以前没注意,还蛮有趣。

merci beaucoup
感谢 很多

很感谢

首先安利一下真理元素的这个视频


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.

欢迎使用端到端加密和我通信,可以用我的gpg公钥给我发加密邮件,以后重要邮件可以让我用私钥签名验证身份

指纹是:
03FA 5459 8AEE 8813 A6D7 B8E1 CDC4 D344 2284 0972
邮箱是:
Hanyuyang fadedflowers@foxmail.com
公钥地址是:
https://github.com/singledoggy.gpg

补充知识:

什么是RSA算法

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
2
3
def add_time_dim(xda):
xda = xda.expand_dims(time = [datetime.now()])
return 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:

0%