Is crop() Limited to 16 Bit Pixel Values? Unicorn Meta Zoo #1: Why another podcast? ...

Is accepting an invalid credit card number a security issue?

What is ls Largest Number Formed by only moving two sticks in 508?

Has a Nobel Peace laureate ever been accused of war crimes?

Putting Ant-Man on house arrest

Dynamic Return Type

What is the term for a person whose job is to place products on shelves in stores?

Why did Israel vote against lifting the American embargo on Cuba?

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

401(k) cost basis

Is Diceware more secure than a long passphrase?

My admission is revoked after accepting the admission offer

How would I use different systems of magic when they are capable of the same effects?

Co-worker works way more than he should

Arriving in Atlanta after US Preclearance in Dublin. Will I go through TSA security in Atlanta to transfer to a connecting flight?

Protagonist's race is hidden - should I reveal it?

Second order approximation of the loss function (Deep learning book, 7.33)

"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"

Map material from china not allowed to leave the country

Do you need a weapon for Thunderous Smite, and the other 'Smite' spells?

Is Bran literally the world's memory?

Check if a string is entirely made of the same substring

What is it called when you ride around on your front wheel?

Would reducing the reference voltage of an ADC have any effect on accuracy?

What do you call the part of a novel that is not dialog?



Is crop() Limited to 16 Bit Pixel Values?



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraHow to read *.adf files into R?Extract values from raster using point data with buffer in RProcessing vector to raster faster with RCrop a raster by a grid shapefile with different extensions in RCRS Projection problems prevent spatial merge in Rhow to make buffer around shapefile in RAccess to attribute in rasterlayer in ROpening rotated raster in RRaster alignment doesn't produce aligned resultsProblem using 'masker' while plotting KDE - R





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I am working with Landsat 8 satellite data. In the scene data that I am analyzing, the band 10 pixel values are:




low: 0
high: 39087




After I crop the raster, the pixel values are now:




low: 0
high: 32767




The high is curious since that is the maximum value of a signed 16 bit integer.



Here is my code:



> boundary
class : SpatialPolygonsDataFrame
features : 11
extent : 637437.7, 785925.9, 4208959, 4380055 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=utm +zone=15 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0
variables : 22
names : OBJECTID_1, OBJECTID, STATEFP, COUNTYFP, COUNTYNS, GEOID, NAME, NAMELSAD, LSAD, CLASSFP, MTFCC, CSAFP, CBSAFP, METDIVFP, FUNCSTAT, ...
min values : 1, 10, 17, 013, 00424208, 17013, Calhoun, Calhoun County, 06, C7, G4020, 476, 41180, NA, A, ...
max values : 9, 9, 29, 510, 01784865, 29510, Warren, Warren County, 25, H1, G4020, 476, 41180, NA, F, ...

> extent(boundary)
class : Extent
xmin : 637437.7
xmax : 785925.9
ymin : 4208959
ymax : 4380055

> band_10_crop <- crop(band_10, extent(boundary))

> band_10_crop
class : RasterLayer
dimensions : 5703, 4950, 28229850 (nrow, ncol, ncell)
resolution : 30, 30 (x, y)
extent : 637425, 785925, 4208955, 4380045 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=utm +zone=15 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0
data source : C:/Users/xxx/AppData/Local/Temp/RtmpYvDjWO/raster/r_tmp_2019-04-24_151922_244_04468.grd
names : LC08_L1TP_024033_20180707_20180717_01_T1_B10
values : 0, 32767 (min, max)

Is this a limitation of crop() or am I misusing the function?

Note, I am running 64-bit R 3.4.4 on Windows 7.

Thanks!









share|improve this question







New contributor




Michael Wohlstadter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    I am working with Landsat 8 satellite data. In the scene data that I am analyzing, the band 10 pixel values are:




    low: 0
    high: 39087




    After I crop the raster, the pixel values are now:




    low: 0
    high: 32767




    The high is curious since that is the maximum value of a signed 16 bit integer.



    Here is my code:



    > boundary
    class : SpatialPolygonsDataFrame
    features : 11
    extent : 637437.7, 785925.9, 4208959, 4380055 (xmin, xmax, ymin, ymax)
    coord. ref. : +proj=utm +zone=15 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0
    variables : 22
    names : OBJECTID_1, OBJECTID, STATEFP, COUNTYFP, COUNTYNS, GEOID, NAME, NAMELSAD, LSAD, CLASSFP, MTFCC, CSAFP, CBSAFP, METDIVFP, FUNCSTAT, ...
    min values : 1, 10, 17, 013, 00424208, 17013, Calhoun, Calhoun County, 06, C7, G4020, 476, 41180, NA, A, ...
    max values : 9, 9, 29, 510, 01784865, 29510, Warren, Warren County, 25, H1, G4020, 476, 41180, NA, F, ...

    > extent(boundary)
    class : Extent
    xmin : 637437.7
    xmax : 785925.9
    ymin : 4208959
    ymax : 4380055

    > band_10_crop <- crop(band_10, extent(boundary))

    > band_10_crop
    class : RasterLayer
    dimensions : 5703, 4950, 28229850 (nrow, ncol, ncell)
    resolution : 30, 30 (x, y)
    extent : 637425, 785925, 4208955, 4380045 (xmin, xmax, ymin, ymax)
    coord. ref. : +proj=utm +zone=15 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0
    data source : C:/Users/xxx/AppData/Local/Temp/RtmpYvDjWO/raster/r_tmp_2019-04-24_151922_244_04468.grd
    names : LC08_L1TP_024033_20180707_20180717_01_T1_B10
    values : 0, 32767 (min, max)

    Is this a limitation of crop() or am I misusing the function?

    Note, I am running 64-bit R 3.4.4 on Windows 7.

    Thanks!









    share|improve this question







    New contributor




    Michael Wohlstadter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I am working with Landsat 8 satellite data. In the scene data that I am analyzing, the band 10 pixel values are:




      low: 0
      high: 39087




      After I crop the raster, the pixel values are now:




      low: 0
      high: 32767




      The high is curious since that is the maximum value of a signed 16 bit integer.



      Here is my code:



      > boundary
      class : SpatialPolygonsDataFrame
      features : 11
      extent : 637437.7, 785925.9, 4208959, 4380055 (xmin, xmax, ymin, ymax)
      coord. ref. : +proj=utm +zone=15 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0
      variables : 22
      names : OBJECTID_1, OBJECTID, STATEFP, COUNTYFP, COUNTYNS, GEOID, NAME, NAMELSAD, LSAD, CLASSFP, MTFCC, CSAFP, CBSAFP, METDIVFP, FUNCSTAT, ...
      min values : 1, 10, 17, 013, 00424208, 17013, Calhoun, Calhoun County, 06, C7, G4020, 476, 41180, NA, A, ...
      max values : 9, 9, 29, 510, 01784865, 29510, Warren, Warren County, 25, H1, G4020, 476, 41180, NA, F, ...

      > extent(boundary)
      class : Extent
      xmin : 637437.7
      xmax : 785925.9
      ymin : 4208959
      ymax : 4380055

      > band_10_crop <- crop(band_10, extent(boundary))

      > band_10_crop
      class : RasterLayer
      dimensions : 5703, 4950, 28229850 (nrow, ncol, ncell)
      resolution : 30, 30 (x, y)
      extent : 637425, 785925, 4208955, 4380045 (xmin, xmax, ymin, ymax)
      coord. ref. : +proj=utm +zone=15 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0
      data source : C:/Users/xxx/AppData/Local/Temp/RtmpYvDjWO/raster/r_tmp_2019-04-24_151922_244_04468.grd
      names : LC08_L1TP_024033_20180707_20180717_01_T1_B10
      values : 0, 32767 (min, max)

      Is this a limitation of crop() or am I misusing the function?

      Note, I am running 64-bit R 3.4.4 on Windows 7.

      Thanks!









      share|improve this question







      New contributor




      Michael Wohlstadter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am working with Landsat 8 satellite data. In the scene data that I am analyzing, the band 10 pixel values are:




      low: 0
      high: 39087




      After I crop the raster, the pixel values are now:




      low: 0
      high: 32767




      The high is curious since that is the maximum value of a signed 16 bit integer.



      Here is my code:



      > boundary
      class : SpatialPolygonsDataFrame
      features : 11
      extent : 637437.7, 785925.9, 4208959, 4380055 (xmin, xmax, ymin, ymax)
      coord. ref. : +proj=utm +zone=15 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0
      variables : 22
      names : OBJECTID_1, OBJECTID, STATEFP, COUNTYFP, COUNTYNS, GEOID, NAME, NAMELSAD, LSAD, CLASSFP, MTFCC, CSAFP, CBSAFP, METDIVFP, FUNCSTAT, ...
      min values : 1, 10, 17, 013, 00424208, 17013, Calhoun, Calhoun County, 06, C7, G4020, 476, 41180, NA, A, ...
      max values : 9, 9, 29, 510, 01784865, 29510, Warren, Warren County, 25, H1, G4020, 476, 41180, NA, F, ...

      > extent(boundary)
      class : Extent
      xmin : 637437.7
      xmax : 785925.9
      ymin : 4208959
      ymax : 4380055

      > band_10_crop <- crop(band_10, extent(boundary))

      > band_10_crop
      class : RasterLayer
      dimensions : 5703, 4950, 28229850 (nrow, ncol, ncell)
      resolution : 30, 30 (x, y)
      extent : 637425, 785925, 4208955, 4380045 (xmin, xmax, ymin, ymax)
      coord. ref. : +proj=utm +zone=15 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0
      data source : C:/Users/xxx/AppData/Local/Temp/RtmpYvDjWO/raster/r_tmp_2019-04-24_151922_244_04468.grd
      names : LC08_L1TP_024033_20180707_20180717_01_T1_B10
      values : 0, 32767 (min, max)

      Is this a limitation of crop() or am I misusing the function?

      Note, I am running 64-bit R 3.4.4 on Windows 7.

      Thanks!






      raster r clip






      share|improve this question







      New contributor




      Michael Wohlstadter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Michael Wohlstadter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Michael Wohlstadter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 15 mins ago









      Michael WohlstadterMichael Wohlstadter

      366




      366




      New contributor




      Michael Wohlstadter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Michael Wohlstadter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Michael Wohlstadter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Michael Wohlstadter is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f320774%2fis-crop-limited-to-16-bit-pixel-values%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Michael Wohlstadter is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Michael Wohlstadter is a new contributor. Be nice, and check out our Code of Conduct.













          Michael Wohlstadter is a new contributor. Be nice, and check out our Code of Conduct.












          Michael Wohlstadter is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f320774%2fis-crop-limited-to-16-bit-pixel-values%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          (145452) 2005 RN43 Классификация | Примечания | Ссылки |...

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          Энтрерриос (город) Содержание История | Географическое...