In [1]:
%pylab notebook
from charistools.readers import read_tile
import glob
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import re
pd.options.display.max_rows = 200


/Users/brodzik/.conda/envs/charis/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Populating the interactive namespace from numpy and matplotlib

In [2]:
#basin_name = "IN_v01"
#basin_name = "AM"
basin_name = "SY_v01"
#basin_name = "BR"
#basin_name = "GA_v01"
basin = "%s_snow_subs_basins_modis_masks" % basin_name
%cd /Users/brodzik/projects/CHARIS/basins/subbasins_of_major_basins/
%cd $basin


/Users/brodzik/projects/CHARIS/basins/subbasins_of_major_basins
/Users/brodzik/projects/CHARIS/basins/subbasins_of_major_basins/SY_v01_snow_subs_basins_modis_masks

In [3]:
# process multiple-tile basins before single-tile basins, so they start first
list = glob.glob("*_[1-4]tile_basins.txt")
list = sorted(list, reverse=True)
list


Out[3]:
['SY_3tile_basins.txt', 'SY_2tile_basins.txt', 'SY_1tile_basins.txt']

In [4]:
start_year = 2001
stop_year = 2014
years = np.arange(stop_year - start_year + 1) + start_year
years


Out[4]:
array([2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
       2012, 2013, 2014])

In [5]:
nstrikes = 3

In [6]:
out_fh = open("%s_run_forcings_%dstrikes.sh" % (basin_name, nstrikes), "w")
count = 0
for file in list:
    with open(file, "r") as f:
        subbasins = f.readlines()
        for subbasin in subbasins:
            print("Next: %s" % subbasin)
            for year in years:
                out_fh.write("run_forcings.py --year=%d --nstrikes=%d --use_daily_threshold_file=True %s" % (
                    year, nstrikes, subbasin))
                count = count + 1
out_fh.close()


Next: SY_v01_OBJECTID961

Next: SY_v01_OBJECTID950

Next: SY_v01_OBJECTID951

Next: SY_v01_OBJECTID964

Next: SY_v01_OBJECTID965

Next: SY_v01_OBJECTID966

Next: SY_v01_OBJECTID967

Next: SY_v01_OBJECTID941

Next: SY_v01_OBJECTID952

Next: SY_v01_OBJECTID953

Next: SY_v01_OBJECTID955

Next: SY_v01_OBJECTID956

Next: SY_v01_OBJECTID957

Next: SY_v01_OBJECTID958

Next: SY_v01_OBJECTID959

Next: SY_v01_OBJECTID960

Next: SY_v01_OBJECTID962


In [7]:
#%cat IN_v01_run_forcings_1strikes.sh
#%cat AM_run_forcings_1strikes.sh
#%cat BR_run_forcings_3strikes.sh
#%cat GA_v01_run_forcings_3strikes.sh
%cat SY_v01_run_forcings_3strikes.sh


run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID961
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID950
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID951
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID964
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID965
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID966
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID967
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID941
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID952
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID953
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID955
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID956
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID957
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID958
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID959
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID960
run_forcings.py --year=2001 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2002 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2003 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2004 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2005 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2006 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2007 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2008 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2009 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2010 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2011 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2012 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2013 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962
run_forcings.py --year=2014 --nstrikes=3 --use_daily_threshold_file=True SY_v01_OBJECTID962

In [8]:
count


Out[8]:
238

In [9]:
# IN_v01: 51 nodes
# AM: 32 nodes
# SY: 25 nodes
print("count=%d, use %d nodes, assuming 6 tasks/node" % (count, (count+1)/6 + 1))


count=238, use 40 nodes, assuming 6 tasks/node

In [ ]:
print 24*6

In [ ]: