Skip to content

Instantly share code, notes, and snippets.

View MPoinelli's full-sized avatar
🐢
Focus

Mattia Poinelli MPoinelli

🐢
Focus
View GitHub Profile
@MPoinelli
MPoinelli / ts2dte
Last active April 9, 2024 17:34
Convert MITgcm iteration number to a date
#!/bin/bash
# Help message function
print_help() {
echo "Convert MITgcm iteration number to a date."
echo "written by: Poinelli, Mattia"
echo "Jet Propulsion Laboratory"
echo "April, 2024"
echo
echo "Based on ts2dte.m in mitgcm/utils/matlab"
echo
@MPoinelli
MPoinelli / mitgcm2tiff.m
Last active December 18, 2023 17:13
Create Geotiff from MITgcm output
function [info] = mitgcm2tiff(XC,YC,data,outputFilename)
% Generate a georeferenced .tiff file from a standard MITgcm grid/output
% requires MappingToolbox
%
% Poinelli Mattia, UCI, JPL
% September 2023
%
% INPUT:
%
% XC: longitude grid