Skip to content

Instantly share code, notes, and snippets.

View MartinDix's full-sized avatar

Martin Dix MartinDix

  • ACCESS-NRI, CSIRO
  • Australia
View GitHub Profile
@MartinDix
MartinDix / perihelion.jl
Created November 24, 2021 05:26
Calculate date of perihelion using Insolation.jl
using Insolation
using Dates
using Printf
using Roots
using Optim
using CLIMAParameters
using CLIMAParameters.Planet
struct EarthParameterSet <: AbstractEarthParameterSet end
const param_set = EarthParameterSet()
@MartinDix
MartinDix / equinox.jl
Created November 24, 2021 03:09
Calculation of time of vernal equinox using Insolatipon.jl
using Insolation
using Dates
using Printf
using Roots
using CLIMAParameters
using CLIMAParameters.Planet
struct EarthParameterSet <: AbstractEarthParameterSet end
const param_set = EarthParameterSet()
@MartinDix
MartinDix / nccmp_test1.cdl
Created November 10, 2021 00:43
Example files for nccmp test
netcdf nccmp_test1 {
dimensions:
time = UNLIMITED ; // (1 currently)
bnds = 2 ;
lat = 2 ;
lon = 2 ;
variables:
float var(time, lat, lon) ;
var:coordinates = "height" ;
float time(time) ;
@MartinDix
MartinDix / cmor_test.py
Created November 21, 2014 01:06
Example script for testing CMOR
# This is a dummy version of the ACCESS Post Processor.
# Peter Uhe 24 July 2014
# Martin Dix 21 Nov 2014
#
import numpy as np
import datetime
import cmor
def save(opts,threeD=True):