year = Float64[0] for i in 1:6 push!(year, i) end year = year .+ 2013 7-element Array{Float64,1}: 2013.0 2014.0 2015.0 2016.0 2017.0 2018.0 2019.0 year_x = collect(Float64, 2013:1:2020); h = [2, 2, 2, 3, 4, 6, 8, 12]; using Plots scatter(year_x, h, xlab = “year”, ylab = “h-index”, xlim = [2012, 2023], ylim = [0,15],…
All posts in computer
利用BASH脚本运行IDL程序、创建子目录或删除文件
有时候你想在一个目录的所有子目录下批量建立文件夹,并且批量的运行这些子目录内新建立好的文件夹内的 IDL 程序,以下是一种可能的解决途径,如果你有更好的方法,欢迎告诉我 Here are the things I want to do: I have a data folder containing many sources, like Arp220, NGC981, etc.. Each of them possesses a folder under the whole data folder (./source/Arp220, ./source/NGC891, …). I want to create a subfolder named “plot” under each sources folder, e.g., ./source/Arp220/plot. And then I want…
Obfuscated ssh Client under Linux
SSH is a powerful tool not only for astronomers. We often use it to download observation data from the observatory’s server or run some complicated programs on remote (overseas) servers. But for the reason as we all know, the SSH tunnels are always being obstructed. So we need some technique to get over such obstruction.…
Least-Squares Fitting of data containing errors
(This is a note personal only! ) There is a powerful tool dealing with data containing both “X” and “Y” errors to make a lease-square fitting in IDL, that is mpfit. This routine allows you to use a self-defined function to do the fitting. Also, you can set up some conditions such as the parameters’…