Learn R Programming

modiscloud (version 0.14)

R tools for processing Level 2 Cloud Mask products from MODIS

Description

Package for processing downloaded MODIS Cloud Product HDF files and derived files. Specifically, MOD35_L2 cloud product files, and the associated MOD03 geolocation files (for MODIS-TERRA); and MYD35_L2 cloud product files, and the associated MYD03 geolocation files (for MODIS-AQUA). The package will be most effective if the user installs MRTSwath (MODIS Reprojection Tool for swath products; https://lpdaac.usgs.gov/tools/modis_reprojection_tool_swath), and adds the directory with the MRTSwath executable to the default R PATH by editing ~/.Rprofile.

Copy Link

Version

Install

install.packages('modiscloud')

Monthly Downloads

11

Version

0.14

License

GPL (>= 2)

Maintainer

Nicholas J Matzke

Last Published

February 9th, 2013

Functions in modiscloud (0.14)

adf

Convert to data.frame, without factors
get_date_from_POSIXct

Get the time information from a POSIXct time
is.pseudoprime2

Check an integer for pseudo-primality to an arbitrary precision, second version
foo

Test function
extract_bit

Get the value of a particular bit in a byte
dates_from_fileslist

Convert each MODIS filename to year, month, day, hourmin
get_dates_from_POSIXct

Get the time information from POSIXct times
extract_time_from_MODISfn

Extract the year, day, and hour from a MODIS filename
make_POSIXct_date

Take year, month, day, hourmin, convert to POSIXct
extract_fn_from_path

Get the filename from a path
check_for_matching_geolocation_files

Checks that every MODIS cloud project HDF has a matching MOD03 file
byteint2bit

Convert a byte integer (0-255) to a list of 8 bits
fermat.test

Test an integer for primality with Fermat's little theorem
byteint2bit_list

Convert a list of byte integer (0-255) to a table of 8 bits per row
adf2

Convert to data.frame, without factors
run_swath2grid

Run MRTSwath swath2grid tool
get_bitgrid_2bits

extract the value of 2 particular bits at each pixel
make_weeks_list

Make a list of numbered weeks
modiscloud-package

Process MODIS cloud mask product files to TIF
get_bitgrid

Extract the value of a particular bit at each pixel
make_cloudcount_product

Take a cloudcount raster and a number-of-observations raster and make a fraction cloud product
yearmonthday_to_julianday

Get the julian day for a year/month/day date
slashslash

Remove double slash (slash a slash)
write_MRTSwath_param_file

Write a parameter control file for MRTSwath
unlist_df2

Unlist the columns in a data.frame, with more checks
numslist_to_grd

Convert a list of numbers to a grid
unlist_df

Unlist the columns in a data.frame
is.pseudoprime

Check an integer for pseudo-primality to an arbitrary precision
modfns_to_ftp_download_cmd

Make download commands for MODIS files
foo2

Test function
yearday_to_date

Convert a year + a day number to a date
sum_bitgrid

Take a series of byte tifs, extract the values of a bit, and add them up