Package cdltools. August 1, 2016

Similar documents
Package frambgrowth. April 24, 2018

021 Corn (in rotation before soybeans) 023 Corn for silage. Cotton 001 Dryland 002 Irrigated

Back to Our Roots Plant Eating Challenge

AIS Generic Bar Codes

Certification Acknowledgement

What is a Daniel Fast?

Fresh Fruit and Vegetable Availability

Benzyladenine (Benzylaminopurine)

Print out a copy and take it with you when you are going grocery shopping! Eat five times a day. DO NOT SKIP BREAKFAST!!!!

Isobel van der Stoep South African Irrigation Institute. Cameron Tylcoat Department of Water and Sanitation

Triflumizole. MRL (draft) ppm MRL. ppm

Diflufenican. MRL (draft) ppm MRL. ppm

Nutritional Program

Note:MRLs are expressed the sum of dicamba, the metabolite B (3,6-dichloro-2- hydroxybenzoic acid) and conjugate of the metabolite B, calculated as di

E95 Basic Food Panel

Pyraclostrobin. MRL (draft) ppm MRL. ppm

AGRICULTURAL CROP =PORT

IAmMsPrissy Basic Food Groups (Vegetables, Fruits, Grains, Dairy, and Protein Foods) inspire healthy eating and a balanced diet.

Fruits. Dr. Dave, ND Kapha Balancing Foods. Enjoy fruits and fruit juices alone, 30 minutes before, and ideally at least 1 hour after.

*Note that foods marked with have no current tested ORAC value.

Barista Document Output Object

Fipronil. MRL (draft) ppm MRL. ppm

Acidic Fruits & Alkaline Fruits

Ideal Low Glycemic Index

MUCUSLESS FOODS. PROF. SPIRA'S LIST OF ACID FORMING AND ACID-BINDING (MUCUSLESS) FOODS Prof. Spira

LUCAS 2018 (Land Use / Cover Area Frame Survey) Technical reference document C5 Plant Identification Guide

Missouri Specialty Crop Survey

EAT CLEAN WITH THE REAL FOOD RD S. clean eating food list. (*include in each meal) serving size (average: grams protein)

Crop Specific Application Rates & Timings. Crop Timing of Application Rate/ Acre. 1. Start of growth in spring

MyPlate Musical Food Groups Debbie Goddard, MS, DTR Coordinator Nutrition Education Programs Tennessee State University

AGRICULTURE-HORTICULTURE Fruits & Vegetables Building E-1

Alkaline Foods Chart. ATTENTION: It is important you do an alkaline diet the correct way.

Applesauce 1 cup 1 snack container (4oz) Cantaloupe 1 cup, diced or melon balls 1 medium wedge (1/8 of a med. melon)

Note: For packaged and prepared foods, check ingredients to confirm low FODMAP.

The Alkaline Food Chart

MyPlate: What Counts as a Cup?

PALEO FOOD LIST. What to Eat?

BURN THE FAT FOODS 2.0.2

Deltamethrin and Tralomethrin

Flat Stomach Formula Food Chart

Carbohydrate Counting

Fludioxonil. MRL (draft) ppm MRL. ppm

Grain Stocks. Corn Stocks Up 1 Percent from June 2017 Soybean Stocks Up 26 Percent All Wheat Stocks Down 7 Percent

WHOA. All foods can be eaten in moderation. In fact, you may eat a WHOA food every day. The important message is that a healthy diet contains mostly

Alkaline Foods List (remember, if you re on a cleanse, and/or

Food Variety Check List

21 DAY FLAB TO FAB CHALLENGE 2015 METABOLISM BOOSTING (WEIGHT LOSS) MEAL PLAN

PRESENTATION TO THE BOARD OF SWERVISORS OF THE 2001 STANISLAUS COUNTY AGRICULTURAL CROP REPORT

Crop Production. Cotton Production Down 1 Percent from November Forecast Orange Production Down 1 Percent from October Forecast

Why do you eat what you eat?

Tele-Class #4 Alkaline Foods Chart

CIMC. Name Date Hour. annual biennial chlorophyll dicot flower greenbelt hybrid internode leaves

RAINBOW PLATE CHALLENGE

Clean Eating Food list

PRICES OF COMMODITY PRODUCTS

Immuno Bloodprint Reactive Foods:

Fruits. Dr. Dave, ND Pitta Balancing Foods

FOUNDATION, REGISTERED AND CERTIFIED PRODUCTION OF BARLEY, BUCKWHEAT, CANARYSEED, DURUM, FLAX, OAT, RYE, TRITICALE, AND WHEAT

Glycemic Index. Patient Education Diabetes Care Center. What is the glycemic index? Rise in Blood Sugar vs. Time

USDA National Nutrient Database for Standard Reference 26 Fiber, total dietary Nutrient Content Cereal Grains

PRICES OF COMMODITY PRODUCTS

Grain Stocks. Corn Stocks Up 15 Percent from June 2014 Soybean Stocks Up 54 Percent All Wheat Stocks Up 28 Percent

PRICES OF COMMODITY PRODUCTS

The Daniel Fast: Benefits and Foods List

Open Crops & Vegetables

Low FODMAP Diet. Why should I avoid foods with FODMAPs?

Crop Production. Orange Production Down 1 Percent from December Forecast

Prices of Commodity Products

Top Ten ANDI Scores GREEN VEGETABLES NONGREEN VEGETABLES

DR ARNOTT S HANDOUT. Health Lectures 1 to 3 Arizona Campmeeting 2017

Think About Vegetables

Crop Production. Orange Production Down 1 Percent from February Forecast

Stage 5 GGC Project: Rainbow Plates 1 pt

Crop Production. Orange Production Unchanged from January Forecast

Cactus Moth Detection & Monitoring Network

Fibre Content of Foods

Peanut Stocks and Processing

16 APPLES 2 JP Gravenstein Apples

Peanut Stocks and Processing

Generally Recognized as. -Blueberries -Raspberries -Strawberries Limes Lemons

2018 Scotts Bluff County Fair Open Class

Maintaining Nutritional Requirements during The Daniel Fast

Byproducts and Unusual Feeds-Feedstuffs 1995 Reference Issue

Block of Hay Show Standard Block 38. Alfalfa 39. Red Clover 40. Lespedeza 41. Any other var

Meal Planning. for a Successful Lifestyle

Beans, black, mature seeds, raw 8040 Nuts, pistachio nuts, raw 7983 Currants, european black, raw 7960 Beans, pinto, mature seeds, raw 7779 Plums,

Crop Production. Cotton Production Up Less Than 1 Percent from November Forecast Orange Production Down 4 Percent

RELEASE DATE: Sunday, September 9, 2018, from 9:00 a.m. 2:00 p.m. CASH PREMIUMS: will be available on Park St. west of the main gate

Apples (red or green) Peaches, Nectarines Oranges Grapefruits Plums. Pears Grapes Bananas Watermelons Kiwis

KEEP OUT OF REACH OF CHILDREN

DIVISION A- Field Crops -Seeds

South Beach Grocery Additions PHASE 1

Crop Production. Winter Wheat Production Up 4 Percent from 2015 Orange Production Up 4 Percent from April Forecast

A BALANCED MEAL. Goal is to have between 3 5 oz of protein (15 20 grams) in each meal.

Agriculture Field, Garden & Orchard Crops Division 10 New Mexico State Fair September 6-16, 2018 Superintendent Laura Fiala

Foundation seed: one generation (refer to Sections 2 and 3).

SIBO. Survivor. Food List

Crop Production. Orange Production Down 1 Percent from January Forecast

1800 Calorie Meal Plan

Samples submission addresses

Transcription:

Package cdltools August 1, 2016 Title Tools to Download and Work with USDA Cropscape Data Version 0.11 Date 2016-07-26 Author Lu Chen and Jonathan Lisic Maintainer Jonathan Lisic <jonathan.lisic@nass.usda.gov> Downloads USDA National Agricultural Statistics Service (NASS) cropscape data for a specified state. Utilities for fips, abbreviation, and name conversion are also provided. Full functionality requires an internet connection, but data sets can be cached for later off-line use. License Unlimited LazyData true Imports RCurl, raster, XML, rgdal RoxygenNote 5.0.1 NeedsCompilation yes Repository CRAN Date/Publication 2016-08-01 21:41:46 R topics documented: cdltools-package...................................... 2 census2010fips....................................... 3 corn............................................. 4 cotton............................................ 4 cultivated.......................................... 5 durumwheat........................................ 9 fips.............................................. 9 getcdl........................................... 10 matchcount......................................... 11 nothing........................................... 11 pasture............................................ 12 projcdl........................................... 12 soybeans........................................... 13 1

2 cdltools-package springwheat......................................... 14 statenames......................................... 14 updatenamescdl...................................... 15 varnamescdl....................................... 15 water............................................ 16 winterwheat......................................... 16 Index 17 cdltools-package Cropland Data Layer Tools Details Tools to obtain and use CDL data with the raster package. Package: cdltools Type: Package Version: 0.1 Date: 2014-08-26 License: Unlimited This package allows for simple retreival of agricultural land cover in the United States through USDA s Cropland Data Layer (CDL). The most useful functions are getcdl, a function to download CDL data by state. updatenamescdl, a function to apply class descriptions to the enumerated CDL data. Author(s) Lu Chen and Jonathan Lisic Maintainer: Jonathan Lisic <jonathan.lisic@nass.usda.gov> References Boryan, Claire, et al. "Monitoring US agriculture: the US department of agriculture, national agricultural statistics service, cropland data layer program." Geocarto International 26.5 (2011): 341-358. Examples ## Not run: # copy data to a local directory cdlraster <- getcdl("rhode Island",c(2012,2013),location="/tmp") # get land land cover change between 2012 and 2013 landcoverchange <- matchcount(cdlraster$'2012',cdlraster$'2013')

census2010fips 3 # convert to data frame landcoverchange.df <- as.data.frame(landcoverchange) # convert CDL category enumerations to text landcoverchange.df[c('cdl_2012_44','cdl_2013_44')] <- lapply(landcoverchange.df[c('cdl_2012_44','cdl_2013_44')],updatenamescdl) ## End(Not run) census2010fips U.S. Census 2010 FIPS Data U.S. Census 2010 FIPS Data containing county names, state and county FIPS codes, and state abbreviations. census2010fips A data frame with 3235 rows and 5 variables. State State two letter abbreviation State.ANSI State FIPS code County.ANSI County FIPS code County.Name County Name ANSI.Cl FIPS class code http://www2.census.gov/geo/docs/reference/codes/files/national_county.txt

4 cotton corn CDL corn classes An array of CDL enumerations that contain corn. The corn enumeration contains: 1 - Corn 225 - Double Crop, Winter Wheat and Corn 226 - Double Crop, Oats and Corn 237 - Double Crop, Barley and Corn 241 - Double Crop, Corn and Soybeans 251 - Non-Irrigated Corn corn An object of class numeric of length 6. cotton CDL cotton classes An array of CDL enumerations that contain cotton. The cotton enumeration contains: 2 - Cotton 232 - Double Crop, Lettuce and Cotton 238 - Double Crop, Winter Wheat and Cotton 239 - Double Crop, Soybeans and Cotton cotton An object of class numeric of length 4.

cultivated 5 cultivated CDL cultivated classes An array of CDL enumerations of cultivated land cover. Not all cultivated enumerations have labels as of this time, and are reserved for future land cover classes. The cultivated enumeration contains: 1 - Corn 2 - Cotton 3 - Rice 4 - Sorghum 5 - Soybeans 6 - Sunflower 7-7 8-8 9-9 10 - Peanuts 11 - Tobacco 12 - Sweet Corn 13 - Pop or Ornamental Corn 14 - Mint 15-15 16-16 17-17 18-18 19-19 20-20 21 - Barley 22 - Durum Wheat 23 - Spring Wheat 24 - Winter Wheat 25 - Other Small Grains 26 - Double Crop Winter Wheat and Soybeans 27 - Rye

6 cultivated 28 - Oats 29 - Millet 30 - Speltz 31 - Canola 32 - Flaxseed 33 - Safflower 34 - Rape Seed 35 - Mustard 36 - Alfalfa 38 - Camelina 39 - Buckwheat 40-40 41 - Sugarbeets 42 - Dry Beans 43 - Potatoes 44 - Other Crops 45 - Sugarcane 46 - Sweet Potatoes 47 - Misc Vegs and Fruits 48 - Watermelons 49 - Onions 50 - Cucumbers 51 - Chick Peas 52 - Lentils 53 - Peas 54 - Tomatoes 55 - Caneberries 56 - Hops 57 - Herbs 58 - Clover or Wildflowers 61 - Fallow or Idle Cropland 66 - Cherries 67 - Peaches 68 - Apples 69 - Grapes 71 - Other Tree Crops 72 - Citrus

cultivated 7 73-73 74 - Pecans 75 - Almonds 76 - Walnuts 77 - Pears 78-78 79-79 80-80 96-96 196-196 197-197 198-198 199-199 200-200 201-201 202-202 203-203 204 - Pistachios 205 - Triticale 206 - Carrots 207 - Asparagus 208 - Garlic 209 - Cantaloupes 210 - Prunes 211 - Olives 212 - Oranges 213 - Honeydew Melons 214 - Broccoli 215-215 216 - Peppers 217 - Pomegranates 218 - Nectarines 219 - Greens 220 - Plums 221 - Strawberries 222 - Squash 223 - Apricots

8 cultivated 224 - Vetch 225 - Double Crop Winter Wheat and Corn 226 - Double Crop Oats and Corn 227 - Lettuce 228-228 229 - Pumpkins 230 - Double Crop Lettuce and Durum Wheat 231 - Double Crop Lettuce and Cantaloupe 232 - Double Crop Lettuce and Cotton 233 - Double Crop Lettuce and Barley 234 - Double Crop Durum Wheat and Sorghum 235 - Double Crop Barley and Sorghum 236 - Double Crop Winter Wheat and Sorghum 237 - Double Crop Barley and Corn 238 - Double Crop Winter Wheat and Cotton 239 - Double Crop Soybeans and Cotton 240 - Double Crop Soybeans and Oats 241 - Double Crop Corn and Soybeans 242 - Blueberries 243 - Cabbage 244 - Cauliflower 245 - Celery 246 - Radishes 247 - Turnips 248 - Eggplants 249 - Gourds 250 - Cranberries 251 - Non-Irrigated Corn 252 - Non-Irrigated Soybeans 253 - Non-Irrigated Winter Wheat 254 - Double Crop Barley and Soybeans 255 - Non-Irrigated Double Crop Winter Wheat and Soybeans cultivated An object of class numeric of length 133.

durumwheat 9 durumwheat CDL durum wheat classes An array of CDL enumerations that contain durum wheat. The durum wheat enumeration contains: 22 - Durum Wheat 230 - Double Crop Lettuce and Durum Wheat 234 - Double Crop Durum Wheat and Sorghum durumwheat An object of class numeric of length 3. fips FIPS code conversion function. fips converts U.S. state names and abbreviations to and from FIPS codes. fips(x, to = "FIPS") Arguments x to A character string or numeric FIPS code. Character input can be the two-letter postal abbreviation, the full name of a state, or a FIPS code in character format. The string is case insensitive. FIPS codes are the only numeric input supported. A character string of output type: "FIPS" will return a numeric fips code. "Abbreviation" will return a two letter state abbreviation. "Name" will return the full state name with spaces. The default output is a numeric FIPS code.

10 getcdl Details Value The Federal Information Processing Standard (FIPS) provides a set of standard numeric codes for refering to U.S. states. This function converts between FIPS codes, state two letter abbreviations, and full state names. The output type specified by the "to" argument. If no match can be made, the program returns NA. Examples fips("ia") fips('northcarolina', to='abbreviation') fips('north Carolina') fips(44,to='name') getcdl Get CDL raster data getcdl retrieves CDL state raster objects for a set of years. getcdl(x, year, alternativeurl, location) Arguments x Value year Is either a two digit state FIPS code, a two letter abbreviation, or a state name. A numerical vector. A set of years of CDL data to download. alternativeurl An optional string containing an alternative url. location An optional string containing a location to store the file. A list of CDL raster objects of interested county for a set of years. Examples ## Not run: getcdl(6,c(2013,2015)) getcdl("california",c(2013,2015)) getcdl("ca",c(2013,2015)) ## End(Not run)

matchcount 11 matchcount Counts distinct pixel pairs in CDL raster images matchcount counts distinct pixel pairs for CDL raster images with same extents and resolution. matchcount(x, y, m = 256) Arguments x y Value A CDL raster image. A CDL raster image. m A bound for the max enumeration of CDL categories. The default is 256. A matrix with pixel counts by unique ordered CDL crop pairs in x and y. Examples ## Not run: z1 <- matrix( rep(c(1,4),8), nrow=4) z2 <- matrix( rep(c(1:4),4), nrow=4) r1 <- raster(z1) r2 <- raster(z2) a <- matchcount(r1,r2) ## End(Not run) nothing CDL nothing class An array of CDL enumerations that contain the nothing class. The nothing enumeration contains: 0 - Background nothing

12 projcdl An object of class numeric of length 1. pasture CDL pasture classes An array of CDL enumerations that contain pasture. The pasture enumeration contains: 37 - Other Hay/Non Alfalfa 38 - Camelina 39 - Buckwheat 62 - Pasture/Grass 171 - Grassland Herbaceous pasture An object of class numeric of length 5. projcdl The default projection of CDL data The proj4 string used for all CDL data. "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +datum=nad83 +units=m +no_defs +ellps=grs80 +towgs84=0,0,0" projcdl

soybeans 13 An object of class character of length 1. soybeans CDL soybeans classes An array of CDL enumerations that contain soybeans. The soybeans enumeration contains: 5 - Soybeans 26 - Double Crop Winter Wheat and Soybeans 239 - Double Crop Soybeans and Cotton 240 - Double Crop Soybeans and Oats 241 - Double Crop Corn and Soybeans 252 - Non-Irrigated Soybeans 254 - Double Crop Barley and Soybeans 254 - Double Crop Barley and Soybeans 255 - Non-Irrigated Double Crop Winter Wheat and Soybeans soybeans An object of class numeric of length 9.

14 statenames springwheat CDL spring wheat classes An array of CDL enumerations that contain spring wheat. The spring wheat enumeration contains: 23 - Spring Wheat springwheat An object of class numeric of length 1. statenames U.S. Census 2010 State FIPS Data U.S. Census 2010 State FIPS Data containing names, FIPS codes, and abbreviations. statenames An object of class data.frame with 54 rows and 3 columns. Details STATE State two letter abbreviation STATENAME State name STATEFP State FIPS code http://www2.census.gov/geo/docs/reference/codes/files/national_county.txt

updatenamescdl 15 updatenamescdl Label CDL classes. updatenamescdl converts numeric CDL categories to class labels. updatenamescdl(y) Arguments y A numeric array of integers associated with CDL categories. Value An array of strings labeling each CDL class. If the CDL class is unspecified then the original integer is returned. Examples updatenamescdl(0:255) varnamescdl Enumerated CDL classes A list of enumerated CDL classes and class descriptions. varnamescdl An object of class character of length 278.

16 winterwheat water CDL water classes An array of CDL enumerations that contain water. The water enumeration contains: 83 - Water 111 - Open Water water An object of class numeric of length 2. winterwheat CDL winter wheat classes An array of CDL enumerations that contain winter wheat. The winter wheat enumeration contains: 24 - Winter Wheat 26 - Double Crop Winter Wheat and Soybeans 225 - Double Crop Winter Wheat and Corn 236 - Double Crop Winter Wheat and Sorghum 238 - Double Crop Winter Wheat and Cotton 253 - Non-Irrigated Winter Wheat 255 - Non-Irrigated Double Crop Winter Wheat and Soybeans winterwheat An object of class numeric of length 7.

Index Topic datasets census2010fips, 3 corn, 4 cotton, 4 cultivated, 5 durumwheat, 9 nothing, 11 pasture, 12 projcdl, 12 soybeans, 13 springwheat, 14 statenames, 14 varnamescdl, 15 water, 16 winterwheat, 16 varnamescdl, 15 water, 16 winterwheat, 16 cdltools (cdltools-package), 2 cdltools-package, 2 census2010fips, 3 corn, 4 cotton, 4 cultivated, 5 durumwheat, 9 fips, 9 getcdl, 10 matchcount, 11 nothing, 11 pasture, 12 projcdl, 12 soybeans, 13 springwheat, 14 statenames, 14 updatenamescdl, 15 17