Git Product home page Git Product logo

i.landsat8.swlst's People

Contributors

nikosalexandris avatar ninsbl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

i.landsat8.swlst's Issues

MTL issue

Hello Nicos,

Im trying to run your grass add-on and I get an error dealing with MTL file informations. I get a message:
AttributeError: 'metadata' object has no attribute
'LANDSAT_SCENE_ID
And when I look at MTL file it doesnt contains any LANDSAT_SCENE_ID item.
Landsat product i'm working on is https://doi.org/10.5066/P975CC9B
It seems id looks like LANDSAT_PRODUCT_ID in this product...
Is there any way to make your add-on working with this product?

Thanks

Check _derive_adjacent_pixels function

Your function

def _derive_adjacent_pixels(self):
        """
        Derive a window/grid of "adjacent" pixels:
        [-1, -1] [-1, 0] [-1, 1]
        [ 0, -1] [ 0, 0] [ 0, 1]
        [ 1, -1] [ 1, 0] [ 1, 1]
        """
        return [[col-1, row-1] for col in xrange(self.window_width)
                for row in xrange(self.window_height)]

returns only all adjacent pixels for a 3 pixels neighborhood. In a 7 pixels neighborhood the window goes still only one pixel up and to the left. Is that on purpose?

I can make create a pull request if you want a full window for all neighborhood sizes...

No raster created

Hello, like the title says, I got no raster output unfortunately. Only some files in cell_misc/lst/. Do I miss a step? Thanks for your help!
Kind regards, Sebastian

Application on Space-Time-Raster

Firstly, thanks a millions for this nice algorithm. Further, I wanted to ask, if it is possible to apply the algorithm to a space-time landsat raster.
Kind regards.

Duplicate Variables in MTL

Using the L1C2 (collection 2) Landsat 8, the MTL files now contain some variables twice. When the addon parses this MTL, it fails with "Duplicate Variable ORIGIN" etc. for each such variable

Here's a list of the duplicates that I found:

diff LC08_L1TP_174039_20220118_20220123_02_T1_MTL.txt LC08_L1TP_174039_20220118_20220123_02_T1_MTL.txt.bak 
113a114,115
>     ORIGIN = "Image courtesy of the U.S. Geological Survey"
>     DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P975CC9B"
115a118,121
>     LANDSAT_PRODUCT_ID = "LC08_L1TP_174039_20220118_20220123_02_T1"
>     PROCESSING_LEVEL = "L1TP"
>     COLLECTION_CATEGORY = "T1"
>     OUTPUT_FORMAT = "GEOTIFF"
117a124,143
>     FILE_NAME_BAND_1 = "LC08_L1TP_174039_20220118_20220123_02_T1_B1.TIF"
>     FILE_NAME_BAND_2 = "LC08_L1TP_174039_20220118_20220123_02_T1_B2.TIF"
>     FILE_NAME_BAND_3 = "LC08_L1TP_174039_20220118_20220123_02_T1_B3.TIF"
>     FILE_NAME_BAND_4 = "LC08_L1TP_174039_20220118_20220123_02_T1_B4.TIF"
>     FILE_NAME_BAND_5 = "LC08_L1TP_174039_20220118_20220123_02_T1_B5.TIF"
>     FILE_NAME_BAND_6 = "LC08_L1TP_174039_20220118_20220123_02_T1_B6.TIF"
>     FILE_NAME_BAND_7 = "LC08_L1TP_174039_20220118_20220123_02_T1_B7.TIF"
>     FILE_NAME_BAND_8 = "LC08_L1TP_174039_20220118_20220123_02_T1_B8.TIF"
>     FILE_NAME_BAND_9 = "LC08_L1TP_174039_20220118_20220123_02_T1_B9.TIF"
>     FILE_NAME_BAND_10 = "LC08_L1TP_174039_20220118_20220123_02_T1_B10.TIF"
>     FILE_NAME_BAND_11 = "LC08_L1TP_174039_20220118_20220123_02_T1_B11.TIF"
>     FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_174039_20220118_20220123_02_T1_QA_PIXEL.TIF"
>     FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_174039_20220118_20220123_02_T1_QA_RADSAT.TIF"
>     FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_174039_20220118_20220123_02_T1_ANG.txt"
>     FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_174039_20220118_20220123_02_T1_VAA.TIF"
>     FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_174039_20220118_20220123_02_T1_VZA.TIF"
>     FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_174039_20220118_20220123_02_T1_SAA.TIF"
>     FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_174039_20220118_20220123_02_T1_SZA.TIF"
>     FILE_NAME_METADATA_ODL = "LC08_L1TP_174039_20220118_20220123_02_T1_MTL.txt"
>     FILE_NAME_METADATA_XML = "LC08_L1TP_174039_20220118_20220123_02_T1_MTL.xml"
248a275,282
>     MAP_PROJECTION = "UTM"
>     DATUM = "WGS84"
>     ELLIPSOID = "WGS84"
>     UTM_ZONE = 36
>     GRID_CELL_SIZE_PANCHROMATIC = 15.00
>     GRID_CELL_SIZE_REFLECTIVE = 30.00
>     GRID_CELL_SIZE_THERMAL = 30.00
>     ORIENTATION = "NORTH_UP"

After removing these duplicates from the MTL, I was able to successfully run the addon.

Metadata-Structure .xml

Apparently, with Landsat8-Data a new metadata file structure emerged. Data is provided with an xml file (xml is not supported with github, so i zipped it).

LC08_L1TP_094073_20160219_20170329_01_T1.zip

Is there a way to make the addon work with the new metadata-structure? I found no possibility to back-convert the xml-file.
Thank you!

Addons problem

Sir,
i wanted to instal the i.landsat8.swlst

  1. (
  • Wed Jul 12 08:30:17 2017)
    1. g.extension extension=i.landsat8.swlst operation=add
    1. WARNING: Extension <i.landsat8.swlst> already installed. Re-installing...
    1. Downloading precompiled GRASS Addons <i.landsat8.swlst>...
    1. Updating addons metadata file...
    1. Installation of <i.landsat8.swlst> successfully finished
    1. (Wed Jul 12 08:30:51 2017) Command finished (33 sec)

and i am not able to open it in ad dons GUI its not available in modules

!

  1. picture one
  2. picture two

in picture two in the manage extensions i can see the addons .

my grass version is 7.2.1

Regards

FROM-GLC

Sir,
how to download data from FROM-GLC for land cover parameters, i wanted to download the data i got this massage for the place i want to download.
Forbidden

  • You don't have permission to access /data/Fengduole/Simulation/2010/Geotiff/N31E065_2010_landcover.tif on this server.
  • [ ]
  • Apache/2.2.22 (Ubuntu) Server at data.ess.tsinghua.edu.cn Port 80

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.