In [1]:
%%html
<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)

Another Homepage by jimdo

GCMs

In [2]:
import xarray as xr
import matplotlib.pyplot as plt
import matplotlib.colors as mc
from matplotlib.ticker import AutoMinorLocator
import cartopy.crs 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 statsmodels.tools.eval_measures 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 = datetime.datetime.now()
print (now.strftime("%Y-%m-%d %H:%M"))
2020-08-06 01:45

The following jobs are currently running on isotope3

In [4]:
client = paramiko.SSHClient()
client.load_system_host_keys()
client.connect('isotope3.iis.u-tokyo.ac.jp', 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')]
        else:
            print("no jobs running on isotope3")
        return None
check_everything()
no jobs running on isotope3