rsip: Remote Sensing and Image Processing

Description Usage Arguments Details Value Note Author(s) Examples

Description

Operates with raster files (.tif extension).

maskfile: This function, cuts the raster from a polygon .shp and saves files to the same extent and area of proposed work.

exportValueGrid: Export all values of each cell (raster file) into a text format.

exportValuePoligon: Export values of each cell (raster) within a polygon.

exportValuePointShp: Export values of each cell from a .shp file. The .shp file are the type point locations, such as the locations of the weather stations.

exportValuePointsTxt: Export values of each cell from a .txt file.

plotAll: Plots raster files in chronological series.

trmmToTiff: Transforms the .nc4 file of the TRMM product (ftp://disc3.nascom.nasa.gov/data/s4pa/TRMM_L3/TRMM_3B42_Daily.7/) into .tif (raster) formats with daily rainfall values.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
maskFile(shp_poligon, nam="RSIP_", dimname=c(17,26))

exportValueGrid()

exportValuePoligon(shp_poligon)

exportValuePointShp(shp_station)

exportValuePointsTxt(txt_xy)

plotAll(dimplot = c(3,4), color = c("red", "yellow",'green3',"cyan", "blue"),
                    zlim=c(-10,2000), dimname=c(17,23))

trmmToTiff()

Arguments

shp_poligon

Name basin or polygon boundary. This data is .shp extension

shp_station

File name stations. This data is .shp extension point type

txt_xy

dataframe containing three columns, longitude, latitude and station name

nam

optional to put the names of files saved .tif

dimname

Vector of two terms, initial and final to determine the length of the original character in the name of the final file.

dimplot

Vector of two terms. It indicates the dimension or the organization of the final files for plotting.

color

Vector color for the representation of the cells in the plot files.

zlim

Vector of two terms. Indicate the minimum and maximum values of each cell in the .tif file.

Details

The shp_station file , is in the .shp extension. It is recommended that the first column of the attribute (also known as field .shp), the station name ("name") for labeling on export performance data is assigned.

The nam parameter can be changed to sort or distinguish ordered and/or files organized way..

The dimname is optional, must be checked before a few files to determine the final file names. It is assigned position number of the characters wrong, it can overwrite the tif files.

Input data

The .tif files, must be organized in a working folder, the files also limits basin (.shp format)

Value

The results are located within the same folder of files income. They are located in the working folder of R [getwd()].

Note

Dependencies: the RSIP function, depend on the library raster, rasterVis, rgdal, ncdf4 and sp.

Author(s)

Iv<c3><a1>n Arturo Ayala Bizarro <ivan.ayala@unh.edu.pe>

Jessica Z<c3><ba><c3><b1>iga Mendoza <zumeje@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## Not run:
    ## File location
    #setwd("C:/Users/abia/Desktop/DataRSIP")

    ## Mask.
    #shp_poligon <- 'AB_Limit_Mantaro'  #To Assign the name poligon (cathment)
    #maskFile(shp_poligon, nam="RSIP_", dimname=c(17,26))

    ## Export value grid all.
    #exportValueGrid()

    ## Export value from poligon.
    #exportValuePoligon(shp_poligon)

    ## Export value from point .shp extension file
    #shp_station <-'AB_Station_Mantaro' #To Assign the name station
    #exportValuePointShp(shp_station)

    ## Export value from point .txt extension file (lon, lat, name)
    #txt_xy<-read.table('Data_station.txt', header=TRUE) #Read txt data
    data(Data_station)
    summary(Data_station)
    #exportValuePointsTxt(Data_station)

    ## Plot all tif file.
    #plotAll()

    ## 3B42 TRMM .nc4 files, processing to .tif files
    #trmmToTiff()

## End(**Not run**)

RSIP documentation built on May 2, 2019, 3:37 p.m.

Related to rsip in RSIP...