adding requests to conda install docs
[JPSSData.git] / get_af_data.py
blob4e32ec2e2a5cc2cfba79c16463b6012725128903
1 from JPSSD import retrieve_af_data
2 import sys
3 if len(sys.argv) != 7:
4 print 'usage: ./get_data.sh lonmin lonmax latmin latmax timemin timemax'
5 print 'example:'
6 print './get_data.sh -132.86966 -102.0868788 44.002495 66.281204 2012-09-11T00:00:00Z 2012-09-12T00:00:00Z'
7 sys.exit(1)
8 bbox=[]
9 for s in sys.argv[1:5]:
10 print s
11 bbox.append(float(s))
12 time = (sys.argv[5],sys.argv[6])
13 print 'bounding box is %s' % bbox
14 print 'time interval is %s %s' % time
15 retrieve_af_data(bbox,time)
16 print 'Retrieved data written to Matlab file out.mat'