Skip to content

Instantly share code, notes, and snippets.

View jamesp's full-sized avatar

James Penn jamesp

  • Met Office
  • Devon, UK
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jamesp
jamesp / held_suarez.py
Last active October 16, 2018 16:34
An example script to run the Held Suarez test case in the Isca framework.
import numpy as np
from isca import IscaCodeBase, Experiment, DiagTable, Namelist, FailedRunError, GFDL_BASE
from isca.util import run_cli
expname = 'held_suarez_basic'
cb = IscaCodeBase.from_directory(GFDL_BASE)
NDAYS = 30
RESOLUTION = 'T42', 25
{
"N": 13,
"cells": [
"**HELLOTHERE*",
" *E* * * * **",
" A * ",
" *V* * *** * ",
" Y * ",
" *** *** * * ",
" * ",
import os
import numpy as np
from isca import IscaCodeBase, DiagTable, Experiment, Namelist, GFDL_BASE, FailedRunError
from isca.util import exp_progress
NCORES = 16
#cb = IscaCodeBase.from_directory(GFDL_BASE)
cb = IscaCodeBase.from_repo('https://github.com/jamesp/isca', 'jpbucket')
{
"N": 13,
"cells": [
"_____________",
"_#_#_#_#_#_#_",
"_____________",
"_#_#_#_#_#_#_",
"_____________",
"_#_#_#_#_#_#_",
"_____________",
{
"N": 13,
"cells": [
"_______#_____",
"_#_#_#_#_#_#_",
"_____________",
"####_#_#_#_#_",
"_______#_____",
"_#_###_###_#_",
"____#___#____",
{
"N": 13,
"cells": [
"#___________#",
"#_#_#_#_#_#_#",
"____#________",
"#_###_#_#_#_#",
"________#____",
"#_#_###_#_###",
"______#______",
{
"name": "Unknown Name",
"setter": "yaffle",
"N": 13,
"cells": [
"_______#_____",
"_#_#_#_#_#_#_",
"_____#_______",
"_#_#_#_###_#_",
"___#_________",