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 file is intented to be descriptive | |
# rather than getting run | |
# ===== This is the used environment setup. I name it as .bashrc_WRF4.3 ===== | |
ml purge | |
ml load gcc/9.2.0 |
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
import numpy as np | |
def findfirst(a): | |
return np.argmax(a) | |
def findlast(a): | |
return (len(a) - 1) - np.argmax(a[::-1]) |