Atmospheric Correction to Landsat 8 Images using ARCSI

133 views
Skip to first unread message

Maitrik Shah

unread,
Apr 20, 2021, 7:10:20 AM4/20/21
to RSGISLib Support
Hello There,
Myself Maitrik. 

Doing research on Atmospheric Corrections. I want to perform Atmospheric Correction to Landsat 8 Images using 6S and for that I started using ARCSI.

When I use following code to get radiance from  Landsat 8 collection - 2 images it shows me "ERROR: FILE_NAME_BAND_QUALITY". 
Code: arcsi.py -s ls8 -f KEA --stats -p RAD -o E:/VM/images/processed -i E:/VM/images/raw/Landsat8OLI/LC08_L1TP_148044_20191120_20200825_02_T1/LC08_L1TP_148044_20191120_20200825_02_T1_MTL.txt
The screenshot named collection-2_error is attached for more clarification. 

When I use following code to get radiance from  Landsat 8 collection - 1 image it shows me "ERROR: Coordinate System Transformation Failed". 
Code: arcsi.py -s ls8 -f KEA --stats -p RAD -o E:/VM/images/processed -i E:/VM/images/raw/Landsat8OLI/LC08_L1TP_149044_20200825_20200905_01_T2/LC08_L1TP_149044_20200825_20200905_01_T2_MTL.txt
The screenshot named collection-1_error is attached for more clarification. 

Please help me out to solve these errors. 

Collection-1_Error.JPG
Collection-2_Error.JPG

Peter Bunting

unread,
Apr 20, 2021, 7:18:33 AM4/20/21
to Maitrik Shah, RSGISLib
Hi Maitrik, 

The first error ("ERROR: FILE_NAME_BAND_QUALITY”) is because I have not yet had time to update ARCSI for the new Collection-2 Landsat data which has changed the header format slightly, if you want to use ARCSI download the image from the collection-1 archive. 

The second error looks like an installation error with GDAL so it cannot find the scene bounding box in lat/lon WGS84. We don’t test any of our software on windows (I don’t have a windows PC) and we recommend using Linux. I would suggest you either install via the linux subsystem on windows or use docker, there is some information here on that: https://www.remotesensing.info/intro-to-using-docker-and-singularity.html

Best wishes, 

Pete

--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rsgislib-support/65bae86f-fc5f-40c4-86db-4ab127ae16cdn%40googlegroups.com.
<Collection-1_Error.JPG><Collection-2_Error.JPG>

Maitrik Shah

unread,
Apr 20, 2021, 7:44:47 AM4/20/21
to RSGISLib Support
Thank You very much for your prompt reply.

By the way, you are doing a great help to all the researchers in this domain. 

I will start working in Linux and will come back to you.

jomc...@colorado.edu

unread,
Apr 20, 2021, 11:08:43 AM4/20/21
to RSGISLib Support
Hi Maitrik,

FWIW I am able to use ARCSI on my windows 10 laptop. I exported the environment and tried to attached it, but there was an error posting it. The only item I found to be buggy with GDAL in this case was trying the sharpening of Sentinel-2 bands to 10m, but you may not need that. I wanted to include that as a heads up if you do at some point.

I also ran into the Collection 2 issue, see this discussion for how to get around it (temporarily). https://groups.google.com/u/1/g/rsgislib-support/c/zSMT3dwL4GY

easiest solution is always to use linux :)

jomc...@colorado.edu

unread,
Apr 20, 2021, 11:09:42 AM4/20/21
to RSGISLib Support
Google didn't like the .yml extension... i have it here as a .yml.txt, so just remove the .txt, or not, should still work if you want to use it.
arcsi_environment.yml.txt

Maitrik Shah

unread,
Apr 23, 2021, 12:53:54 PM4/23/21
to RSGISLib Support
Hello....
I have configured docker in ubuntu as guided in https://www.remotesensing.info/intro-to-using-docker-and-singularity.html .

My Directory structure is this:
Inside home directory:   images/Landsat8OLI/LC08_L1TP_149044_20200825_20200905_01_T2/LC08_L1TP_149044_20200825_20200905_01_T2_MTL.txt

I am running the following command:
docker run -i -t -v /images:/data petebunting/au-eoed arcsi.py -s ls8 -f KEA --stats -p RAD -o  \data\Landsat8OLI1\ -i \data\Landsat8OLI\LC08_L1TP_149044_20200825_20200905_01_T2\LC08_L1TP_149044_20200825_20200905_01_T2_MTL.txt

But I am getting the error. No Such directory. I have attached screenshot for reference. 
Please tell me, where I am wrong. 

docker-error.JPG


On Tuesday, April 20, 2021 at 4:48:33 PM UTC+5:30 peteb...@gmail.com wrote:

Peter Bunting

unread,
Apr 23, 2021, 2:22:17 PM4/23/21
to Maitrik Shah, RSGISLib
Hi Maitrik, 

Rather than -v /images:/data is should be -v images:/data (i.e., remove slash before the ‘i’). 

Best wishes, 

Pete

On 23 Apr 2021, at 17:53, Maitrik Shah <maitrik...@gmail.com> wrote:

Hello....
I have configured docker in ubuntu as guided in https://www.remotesensing.info/intro-to-using-docker-and-singularity.html .

My Directory structure is this:
Inside home directory:   images/Landsat8OLI/LC08_L1TP_149044_20200825_20200905_01_T2/LC08_L1TP_149044_20200825_20200905_01_T2_MTL.txt

I am running the following command:
docker run -i -t -v /images:/data petebunting/au-eoed arcsi.py -s ls8 -f KEA --stats -p RAD -o  \data\Landsat8OLI1\ -i \data\Landsat8OLI\LC08_L1TP_149044_20200825_20200905_01_T2\LC08_L1TP_149044_20200825_20200905_01_T2_MTL.txt

But I am getting the error. No Such directory. I have attached screenshot for reference. 
Please tell me, where I am wrong. 

Maitrik Shah

unread,
Apr 24, 2021, 7:41:08 AM4/24/21
to RSGISLib Support
Hello Petebunting,

Thanks for your reply. I tried that but I go the same error.

My directory structure is:
/home/images/Landsat8OLI --> This contains Landsat8 image
/home/images/Landsat8OLI1 --> This is empty folder

For experimenting I did the following to look into the data directory inside the container.

Command: docker run -i -t -v /images:/data petebunting/au-eoed /bin/bash
Then I entered into the data directory. When I type ls command inside it, I didn't find anything. After sometime when I typed ls command I got a folder Landsat8OLI1 but didn't get Landsat8OLI folder.

Please refer this image. 

Please help me out what I can do now? 
dockererror-2-1.jpg

Daniel Clewley

unread,
Apr 25, 2021, 4:05:53 AM4/25/21
to Maitrik Shah, RSGISLib Support
Hi Maitrik,

With your docker command you are mapping the directory /images to /data in the docker container. As your images are in /home/images/ you should use:

-v /home/images:/data 

If you want to use the full path or if you are running the docker container within:

/home/

Then you can use the relative path as Pete suggested and use:

-v images:/data 

Probably the easiest thing to do is to `ls` whatever path you are passing into docker to check this works first.

Thanks,

Dan

On 24 Apr 2021, at 12:41, Maitrik Shah <maitrik...@gmail.com> wrote:

Hello Petebunting,

Thanks for your reply. I tried that but I go the same error.

My directory structure is:
/home/images/Landsat8OLI --> This contains Landsat8 image
/home/images/Landsat8OLI1 --> This is empty folder

For experimenting I did the following to look into the data directory inside the container.

Command: docker run -i -t -v /images:/data petebunting/au-eoed /bin/bash
Then I entered into the data directory. When I type ls command inside it, I didn't find anything. After sometime when I typed ls command I got a folder Landsat8OLI1 but didn't get Landsat8OLI folder.

Please refer this image. 

Please help me out what I can do now? 
Reply all
Reply to author
Forward
0 new messages