Module Expr Str ImportFrom alias ImportFrom alias alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore ListComp BinOpAdd SubscriptLoad NameLoad Index Num Call NameLoad NameLoad comprehension NameStore Call NameLoad BinOpAdd AttributeLoad BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num attr Num body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareIsNot Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num With Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr With Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr Str Str Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Call AttributeLoad Str attr NameLoad NameLoad Call AttributeLoad Str attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad orelse Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr ListLoad Str Str Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler body Print Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A  RHEAS module for retrieving the GPM daily precipitation data product (IMERG).

.. module:: prism
   :synopsis: Retrieve GPM precipitation data

.. moduleauthor:: Kostas Andreadis <kandread@jpl.nasa.gov>

 ftplib FTP datetime datetime timedelta N/A tempfile N/A subprocess N/A datasets N/A dbio N/A re N/A table precip.gpm dates N/A N/A dbname N/A N/A N/A dts N/A N/A datasets dates dbname table N/A dts N/A download N/A N/A dbname dts bbox N/A N/A N/A Downloads the PRISM data products for a set of
    dates *dt* and imports them into the PostGIS database *dbname*. N/A url jsimpson.pps.eosdis.nasa.gov N/A ftp N/A FTP url N/A N/A N/A ftp login kandread@jpl.nasa.gov kandread@jpl.nasa.gov N/A N/A N/A ftp cwd data/imerg/gis N/A outpath N/A N/A tempfile mkdtemp N/A dt N/A N/A N/A dts N/A 0 N/A timedelta t N/A t N/A range N/A N/A N/A N/A dts N/A 1 N/A dts N/A 0 days 1 N/A N/A N/A N/A N/A N/A ftp cwd N/A N/A /data/imerg/gis/{0}/{1:02d} format N/A dt year N/A dt month N/A filenames N/A f N/A f N/A N/A ftp nlst N/A N/A N/A re match N/A N/A 3B.*{0}.*S000000.*1day\.tif.* format N/A N/A dt strftime %Y%m%d f None N/A N/A N/A len filenames 0 N/A N/A fname N/A filenames N/A 0 N/A N/A open N/A N/A {0}/{1} format outpath fname wb f N/A N/A N/A N/A ftp retrbinary N/A N/A RETR {0} format fname N/A f write N/A N/A open N/A N/A {0}/{1} format outpath N/A N/A fname replace tif tfw wb f N/A N/A N/A N/A ftp retrbinary N/A N/A RETR {0} format N/A N/A fname replace tif tfw N/A f write N/A tfname N/A N/A fname replace tif tfw N/A fname N/A N/A datasets uncompress fname outpath N/A N/A N/A datasets uncompress tfname outpath N/A N/A N/A subprocess call N/A gdalwarp -t_srs epsg:4326 N/A N/A {0}/{1} format outpath fname N/A N/A {0}/prec.tif format outpath N/A N/A bbox None N/A N/A N/A N/A subprocess call N/A gdal_translate -a_srs epsg:4326 -projwin N/A N/A {0} format N/A bbox N/A 0 N/A N/A {0} format N/A bbox N/A 3 N/A N/A {0} format N/A bbox N/A 2 N/A N/A {0} format N/A bbox N/A 1 N/A N/A {0}/prec.tif format outpath N/A N/A {0}/prec1.tif format outpath N/A N/A N/A N/A subprocess call N/A gdal_translate -a_srs epsg:4326 N/A N/A {0}/prec.tif format outpath N/A N/A {0}/prec1.tif format outpath N/A cmd N/A N/A join N/A gdal_calc.py -A N/A N/A {0}/prec1.tif format outpath N/A N/A --outfile={0}/prec2.tif format outpath --calc="0.1*A" N/A N/A N/A subprocess call cmd shell True N/A N/A N/A dbio ingest dbname N/A N/A {0}/prec2.tif format outpath dt table False N/A N/A N/A N/A N/A N/A WARNING! No data were available to import into {0} for {1}. format table N/A N/A dt strftime %Y-%m-%d N/A