{"action":"created","issue":{"url":"https://api.github.com/repos/MatMatt/MODIS/issues/43","repository_url":"https://api.github.com/repos/MatMatt/MODIS","labels_url":"https://api.github.com/repos/MatMatt/MODIS/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/MatMatt/MODIS/issues/43/comments","events_url":"https://api.github.com/repos/MatMatt/MODIS/issues/43/events","html_url":"https://github.com/MatMatt/MODIS/issues/43","id":311595825,"number":43,"title":"Error in lst_todo[[1]] : subscript out of bounds","user":{"login":"t-stratmann","id":19464350,"avatar_url":"https://avatars2.githubusercontent.com/u/19464350?v=4","gravatar_id":"","url":"https://api.github.com/users/t-stratmann","html_url":"https://github.com/t-stratmann","followers_url":"https://api.github.com/users/t-stratmann/followers","following_url":"https://api.github.com/users/t-stratmann/following{/other_user}","gists_url":"https://api.github.com/users/t-stratmann/gists{/gist_id}","starred_url":"https://api.github.com/users/t-stratmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-stratmann/subscriptions","organizations_url":"https://api.github.com/users/t-stratmann/orgs","repos_url":"https://api.github.com/users/t-stratmann/repos","events_url":"https://api.github.com/users/t-stratmann/events{/privacy}","received_events_url":"https://api.github.com/users/t-stratmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-05T12:47:29Z","updated_at":"2018-05-09T07:29:45Z","closed_at":null,"author_association":"NONE","body":"First of all, thank-you for this great package!!! It has saved me a lot of time! I just have a question. Last week I was able to successfully use the runGdal function and download HDF files, stitch them, and convert to TIFF. Now I am working in a different area and am getting a confusing error.  All it says is \"Error in lst_todo[[1]] : subscript out of bounds\" The error message is not really enough to help me troubleshoot the issue. Any help / insight would be greatly appreciated! \r\n\r\nThank-you!!!\r\n\r\nScript and console output below \r\n\r\n>sessionInfo()\r\n\r\n>R version 3.4.3 (2017-11-30)\r\n>Platform: x86_64-w64-mingw32/x64 (64-bit)\r\n>Running under: Windows 7 x64 (build 7601) Service Pack 1\r\n\r\n>other attached packages:\r\n[1] RCurl_1.95-4.10 bitops_1.0-6    rgdal_1.2-18    MODIS_1.1.2     raster_2.6-7    mapdata_2.2-6   maps_3.2.0      sp_1.2-7       \r\n\r\n> library(MODIS) \r\n> \r\n> #transform dates to correct formats (begin, end)\r\n> #Nov 21, - Dec. 2, 2017 \r\n> \r\n> transDate(\"2017-11-21\", \"2017-12-02\")\r\n>$begin\r\n>[1] \"2017-11-21\"\r\n\r\n>$end\r\n>[1] \"2017-12-02\"\r\n\r\n>$beginDOY\r\n>[1] \"2017325\"\r\n\r\n>$endDOY\r\n>[1] \"2017336\"\r\n\r\n> \r\n> #get correct extent information\r\n> tile <-getTile(extent(c(xmin=32, xmax=42, ymin=-5, ymax=5))) \r\n> tile\r\n>An object of class \"MODISextent\"\r\n>Slot \"tile\":\r\n>[1] \"h21v09\" \"h22v09\" \"h21v08\" \"h22v08\"\r\n\r\n>Slot \"tileH\":\r\n>[1] 21 22\r\n\r\n>Slot \"tileV\":\r\n>[1] 9 8\r\n\r\n>Slot \"extent\":\r\n>class       : Extent \r\n>xmin        : 32 \r\n>xmax        : 42 \r\n>ymin        : -5 \r\n>ymax        : 5 \r\n\r\n>Slot \"system\":\r\n>[1] \"MODIS\"\r\n\r\n>Slot \"target\":\r\n>NULL\r\n\r\n> \r\n> MODIS:::checkTools()\r\n>Checking availability of MRT:\r\n>  'MRT_HOME' found: C:/Users/.../Documents/MRT \r\n>  'MRT_DATA_DIR' found: C:/Users/.../Documents/MRT/data \r\n>   MRT enabled, settings are fine!\r\n>Checking availability of 'FWTools/OSGeo4W' (GDAL with HDF4 support for Windows):\r\n>   OK, GDAL 1.11.2, released 2015/02/10 found!\r\n> \r\n>#set relevant options\r\n> MODISoptions(localArcPath = \"C:/Users/.../Documents/MODIS_ARC\", # raw hdf files\r\n              outDirPath = \"C:/Users/.../Documents/MODIS_ARC/PROCESSED\", # extracted layers\r\n              MODISserverOrder = c(\"LAADS\", \"LPDAAC\"))\r\n>Setting 'localArcPath' to 'C:/Users/.../Documents/MODIS_ARC/'\r\n>If you already have downloaded some HDF files, you can use '?orgStruc' to rearrange them.\r\n>'outDirPath' does not exist and will be created in 'C:/Users/.../Documents/MODIS_ARC/PROCESSED/'.\r\n\r\n>STORAGE:\r\n>_______________\r\n>localArcPath : C:/Users/.../Documents/MODIS_ARC/ \r\n>outDirPath   : C:/Users/.../Documents/MODIS_ARC/PROCESSED/ \r\n\r\n\r\n>DOWNLOAD:\r\n>_______________\r\n>MODISserverOrder : LAADS, LPDAAC \r\n>dlmethod         : auto \r\n>stubbornness     : high \r\n>wait             : 0.5 \r\n>quiet            : FALSE \r\n\r\n\r\n>PROCESSING:\r\n>_______________\r\n>GDAL           : GDAL 1.11.2, released 2015/02/10 \r\n>MRT            : Version 4.1 (March 2011) \r\n>pixelSize      : LAADS \r\n>outProj        : LPDAAC \r\n>resamplingType : NN \r\n>dataFormat     : GTiff \r\n\r\n\r\n> \r\n>#get latest product collection\r\n> cll <- getCollection(product = \"MOD13Q1\", forceCheck = TRUE)\r\n>Updating collection from LPDAAC for product: MOD13Q1 \r\n> cll\r\n>$MOD13Q1\r\n>[1] \"006\"\r\n\r\n> \r\n>#download and extract data\r\n> runGdal(product = \"MOD13Q1\", collection = cll, job=\"giraffe\", extent = tile@extent,  \r\n>        begin = \"2017325\", end = \"2017336\", SDSstring = \"110000000000\", outProj = \"asIn\", >pixelSize=\"asIn\")\r\n>########################\r\n>outProj          =  asIn \r\n>pixelSize        =  asIn \r\n>resamplingType   =  near \r\n>Output Directory =  C:/Users/.../Documents/MODIS_ARC/PROCESSED//giraffe \r\n>########################\r\n>Local structure is up-to-date. Using offline information!\r\nError in lst_todo[[1]] : subscript out of bounds"},"comment":{"url":"https://api.github.com/repos/MatMatt/MODIS/issues/comments/387647500","html_url":"https://github.com/MatMatt/MODIS/issues/43#issuecomment-387647500","issue_url":"https://api.github.com/repos/MatMatt/MODIS/issues/43","id":387647500,"user":{"login":"t-stratmann","id":19464350,"avatar_url":"https://avatars2.githubusercontent.com/u/19464350?v=4","gravatar_id":"","url":"https://api.github.com/users/t-stratmann","html_url":"https://github.com/t-stratmann","followers_url":"https://api.github.com/users/t-stratmann/followers","following_url":"https://api.github.com/users/t-stratmann/following{/other_user}","gists_url":"https://api.github.com/users/t-stratmann/gists{/gist_id}","starred_url":"https://api.github.com/users/t-stratmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-stratmann/subscriptions","organizations_url":"https://api.github.com/users/t-stratmann/orgs","repos_url":"https://api.github.com/users/t-stratmann/repos","events_url":"https://api.github.com/users/t-stratmann/events{/privacy}","received_events_url":"https://api.github.com/users/t-stratmann/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T07:29:45Z","updated_at":"2018-05-09T07:29:45Z","author_association":"NONE","body":"That could be really cool / easy! But a clear statement that one needs to match the MODIS scene dates would definitely be easier. Just extremely thankful your package exists! "}}
{"actor":{"display_login":"t-stratmann"}}