Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This function shifts all windows within xQuartz to a given location. | |
# Its required to `brew install xdotool` | |
# The arguments of this function correspond to: | |
# $1 [string] == Name of window to shift | |
# $2 [int] == X coordinate in screen space (pixels, for example 800) | |
# $3 [int] == Y coordinate in screen space (pixels, for example 1000) | |
# Usage example: | |
# move_xquartz_windows Ncview 800 1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
#============================================================================== | |
# Copyright (c) 2018, William Gurecky | |
# All rights reserved. | |
# | |
# DESCRIPTION: | |
# Inspired from stack overflow question: | |
# https://stackoverflow.com/questions/52227599/interpolate-griddata-uses-only-one-core |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pacific,Indian, Atlantic | |
# Values correspond to the corners of the box. | |
x_areas=[[150,150,288,288],[40,40,150,150],[325-360,325-360,10,10]] | |
y_areas=[[-48,-62,-62,-48],[-44,-57,-57,-44],[-46,-56,-56,-46]] | |
for a_ind in range(len(x_areas)): | |
#Initial position of box | |
A_x=[x_areas[a_ind][0]] | |
A_y=[y_areas[a_ind][0]] | |
#Append each degree a new point in the x and y direction. |