备忘

作者: 锦鼠观天 | 来源:发表于2018-08-10 15:16 被阅读32次

    双系统的启动引导问题

    CSDN+双系统中 ubuntu引导改为window引导
    CSDN+Ubuntu与Windows双系统修改默认启动项
    CSDN+Windows10和Ubuntu双系统下用windows引导Ubuntu


    下载fnl数据的脚本

    #!/usr/bin/perl -w
    #################################################################
    # Perl Script to retrieve 124 online Data files of 'ds083.2',
    # total 2.38G. This script uses 'wget' to download data.
    #
    # Highlight this script by Select All, Copy and Paste it into a file;
    # make the file executable and run it on command line.
    #
    # You need pass in your password as a parameter to execute
    # this script; or you can set an environment variable RDAPSWD
    # if your Operating System supports it.
    #
    # Contact grace@ucar.edu (Grace Peng) for further assistance.
    #################################################################
    
    use strict;
    my ($syscmd, $vn, $opt, $i, @filelist);
    my $pswd = (@ARGV ? $ARGV[0] : $ENV{RDAPSWD});
    if(!$pswd) {
     print "\n Usage: $0 YourPassword\n\n";
     exit 1;
    }
    open VN, "wget -V |" or die 'cannot find wget';
    $vn = (<VN> =~ /^GNU Wget (\d+)\.(\d+)/) ? (100 * $1 + $2) : 109;
    close(VN);
    $syscmd = ($vn > 109 ? 'wget --no-check-certificate' : 'wget');
    $syscmd .= ' -O Authentication.log --save-cookies auth.rda_ucar_edu --post-data' .
    "=\"email=heqin\@cumt.edu.cn&passwd=$pswd&action=login\" " .
    'https://rda.ucar.edu/cgi-bin/login';
    system($syscmd);
    $opt = 'wget -N';
    $opt .= ' --no-check-certificate' if($vn > 109);
    $opt .= ' --load-cookies auth.rda_ucar_edu ' .
    'http://rda.ucar.edu/data/ds083.2/';
    @filelist = (
      "grib2/2017/2017.01/fnl_20170101_00_00.grib2",
      "grib2/2017/2017.01/fnl_20170131_18_00.grib2",
    );
    for($i = 0; $i < @filelist; $i++) {
      $syscmd = $opt . $filelist[$i];
      print "$syscmd...\n";
      system($syscmd);
    }
    system('rm -f auth.rda_ucar_edu Authentication.log');
    exit 0;
    
    
    #!/bin/csh
    #################################################################
    # Csh Script to retrieve 2 online Data files of 'ds083.2',
    # total 28.65M. This script uses 'wget' to download data.
    #
    # Highlight this script by Select All, Copy and Paste it into a file;
    # make the file executable and run it on command line.
    #
    # You need pass in your password as a parameter to execute
    # this script; or you can set an environment variable RDAPSWD
    # if your Operating System supports it.
    #
    # Contact schuster@ucar.edu (Doug Schuster) for further assistance.
    #################################################################
    
    set pswd = $1
    if(x$pswd == x && `env | grep RDAPSWD` != '') then
     set pswd = $RDAPSWD
    endif
    if(x$pswd == x) then
     echo
     echo Usage: $0 YourPassword
     echo
     exit 1
    endif
    set v = `wget -V |grep 'GNU Wget ' | cut -d ' ' -f 3`
    set a = `echo $v | cut -d '.' -f 1`
    set b = `echo $v | cut -d '.' -f 2`
    if(100 * $a + $b > 109) then
     set opt = 'wget --no-check-certificate'
    else
     set opt = 'wget'
    endif
    set opt1 = '-O Authentication.log --save-cookies auth.rda_ucar_edu --post-data'
    set opt2 = "email=heqin@cumt.edu.cn&passwd=$pswd&action=login"
    $opt $opt1="$opt2" https://rda.ucar.edu/cgi-bin/login
    set opt1 = "-N --load-cookies auth.rda_ucar_edu"
    set opt2 = "$opt $opt1 http://rda.ucar.edu/data/ds083.2/"
    set filelist = ( \
      grib2/2015/2015.01/fnl_20150101_00_00.grib2 \
      grib2/2015/2015.01/fnl_20150101_06_00.grib2 \
    )
    while($#filelist > 0)
     set syscmd = "$opt2$filelist[1]"
     echo "$syscmd ..."
     $syscmd
     shift filelist
    end
    
    rm -f auth.rda_ucar_edu Authentication.log
    exit 0
    

    gitlab+ss免费账号
    nvidia+cuDNN下载
    个人博客+WRF-Chem安装札记

    简书+mpi4py 快速上手

    气象家园+关于并行的讨论

    弱弱告诉你,WRF的SM写的有问题,你可以试试看是不是用多核运行,每次的结果都不一样

    气象家园+介绍专门处理netCDF格式数据的NCO软件——“netCDF数据操作员

    numpy数组用dtype=float16初始化的坑

    l_bfgs_b有限拟牛顿法官方文档

    CSDN+Latex 所有常用数学符号整理
    pdf+一份不太简短的 LATEX 2ε 介绍

    相关文章

      网友评论

          本文标题:备忘

          本文链接:https://www.haomeiwen.com/subject/rssavftx.html