In [1]:
<body for="html-export">
      <div class="mume markdown-preview  ">
      <header>Kanon Kino</header>
Kanon Kino

Doctoral program of Department of Earth and Planetary Science, the University of Tokyo.

Atmosphere and Ocean Research Institute (AORI) & Institute of Industrial Science (IIS)

CV and the other information -> My HomePage


In [2]:
import xarray as xr
import matplotlib.pyplot as plt
import matplotlib.colors as mc
from matplotlib.ticker import AutoMinorLocator
import as ccrs
from cartopy.util import add_cyclic_point
import cartopy.feature as feature
from cmocean import cm as cmo
from netCDF4 import Dataset as NetCDFFile
import statsmodels.api as sm
import as smte
import os
import datetime
import paramiko
import pandas as pd
import datetime
import numpy as np
import matplotlib.dates as mdates
from cdo import *
cdo =Cdo()
%matplotlib inline

Job monitors

Current date and time

In [3]:
now =
print (now.strftime("%Y-%m-%d %H:%M"))
2020-11-28 14:30

The following jobs are currently running on isotope3

In [4]:
client = paramiko.SSHClient()
client.connect('', username='kanon')

stdin, stdout, stderr = client.exec_command('qstat')
queue_status = stdout.readlines()
queue_status = [l.split() for l in queue_status]
def check_everything():
    if len(queue_status) != 0:
        queue_df = pd.DataFrame(queue_status[2:])
        queue_df.columns = ['JOB ID', 'JOB NAME', 'USERNAME', 'CPU TIME USE', 'STATUS', 'QUEUE']
        if any(queue_df['USERNAME'].str.startswith('kanon')):
                return queue_df[(queue_df['USERNAME'] == 'kanon')]
            print("no jobs running on isotope3")
        return None
no jobs running on isotope3