jagomart
digital resources
picture1_Python Pdf 186087 | Floodmonitoring Exercise1b1


 133x       Filetype PDF       File size 0.06 MB       Source: appliedsciences.nasa.gov


File: Python Pdf 186087 | Floodmonitoring Exercise1b1
nasa remote sensing for flood monitoring and management april 18 20 2017 nasa arset dewberry fairfax va exercise 2 using python for converting gpm hdf5 files to text files objectives ...

icon picture PDF Filetype PDF | Posted on 01 Feb 2023 | 2 years ago
Partial capture of text on file.
             NASA Remote Sensing for Flood Monitoring and Management         April 18-20, 2017 
             NASA ARSET                                                   Dewberry, Fairfax, VA 
              
                           Exercise 2: Using Python for Converting  
                                   GPM HDF5 Files to Text Files 
             Objectives 
                •  Convert a data file written in HDF5 using a python script into: 
                      o  A text file to browse the data 
                      o  A GeoTIFF format for use in QGIS 
             Exercise 
                •  Use the document Python Installation and Download if you do not have python 
                   on your computer 
                •  If you have Python on your computer, please make sure that you have tested the 
                   availability of routines required for this exercise (see Part 2 of whatever we end 
                   up calling Python-Installation-Instruction.docx) 
                •  Download the Python script ConvertClip_HDF5_to_TextGeotiffl.py onto your 
                   computer 
                      o  This script is designed to extract a desired region (specified by latitudes 
                         and longitudes) from a global data file in HDF5 format and save the 
                         extracted data into text file and a GeoTIFF raster file 
                •  Copy or move the IMERG half-hourly file you downloaded from PPS in Exercise 
                   1 into the same directory where the Python script is downloaded  
                      o  Note: if you need to convert more than one HDF5 file, they should all be 
                         moved or copied to this same directory 
                •  Type ‘python ConvertClip_HDF5_to_TextGeotiff.py’ [on your computer console in 
                   command line] 
                •  The script will ask you to enter the north and south latitudes, and east and west 
                   longitudes of the rectangular region you want to extract from the data file 
                •  Enter:  
                      o  44.0 for north latitude 
                      o  32.0 for south latitude 
                      o  -114.0 for east longitude 
                      o  -136.0 for west longitude 
                   Note: This is the region over California for which you created a rainfall animation  
                •  The script will create two sub-directories in your working directory named 
                   ‘text_files’ and ‘raster_files’ 
                                                                                          1 
             NASA Remote Sensing for Flood Monitoring and Management         April 18-20, 2017 
             NASA ARSET                                                   Dewberry, Fairfax, VA 
              
                •  If you have more than one HDF5 file in the directory, all of them will be converted 
                   into text and raster format 
                •  After the script has run successfully, check each directory: ‘text_files’ and 
                   ‘raster_files’  
                •  In the ‘text_files’ directory there will be four output files: 
                      o  For example if an HDF5 file with name ‘Filename.HDF5’ is converted the 
                         output will be: 
                      o  Filename_lat_clipped.txt 
                      o  Filename_lon_clipped.txt 
                      o  Filename_precip_clipped.txt 
                      o  Filename_combined_clipped.txt 
                •  The ‘_combined’ file (last one) lists latitude, longitude, and precipitation for each 
                   grid point in the subset. This file can be copied into Excel. 
                •  The first three files, ‘_lat’,’_lon’ and ‘_precip’, list each grid information separately 
                   and each can be copied in to Excel 
                •  In the ‘raster_files’ directory there will be one output file: 
                      o  Filename.tif 
                •  This file can be imported into QGIS and will be analyzed in the next exercise 
                •  This script can be used to convert any HDF5 data file  
                •  Note: This script is developed for this training exercise to read IMERG 
                   precipitation.  The script will require minor modification to read different data sets 
                   in HDF5 format 
                                                                                          2 
The words contained in this file might help you see if this file matches what you are looking for:

...Nasa remote sensing for flood monitoring and management april arset dewberry fairfax va exercise using python converting gpm hdf files to text objectives convert a data file written in script into o browse the geotiff format use qgis document installation download if you do not have on your computer please make sure that tested availability of routines required this see part whatever we end up calling instruction docx convertclip textgeotiffl py onto is designed extract desired region specified by latitudes longitudes from global save extracted raster copy or move imerg half hourly downloaded pps same directory where note need more than one they should all be moved copied type textgeotiff will ask enter north south east west rectangular want latitude longitude over california which created rainfall animation create two sub directories working named them converted after has run successfully check each there four output example an with name filename lat clipped txt lon precip combined la...

no reviews yet
Please Login to review.