Reprojecting Landsat8.L2_LAC_OC with GPT
Posted: Fri Jun 01, 2018 2:05 pm America/New_York
Dear all,
I am navigating my way through everything SeaDAS, and need to work with the command line, for which I am a new user as well. Without surprise, I am running through a few hitches. I am hoping someone could help me overcome these issues. I suspect it will be very straightforwards for most users here.
What I want to do:
STEP1. Atmospheric correction of GEOTIFF img with L2gen, where IMG = a Landsat 8 OLI - C1 imagery
Output Step 1: IMG.L2_LAC_OC
STEP2. Reproject IMG.L2_LAC_OC
Output Step 2: IMG.L2_LAC_OC_Reprojected
I already figured how to implement STEP1 in the commande line.
I am currently stuck with step 2. This is the commande line I am using:
/usr/local/apps/seadas-7.5/bin/gpt.sh ReprojectGeoLatLon.xml -p ReprojectGeoLatLon.par -Ssource=IMG.L2_LAC_OC -t IMG:_Reprojection.dim
So far, I am using the .xml and .par file copied from the SeaDAS help webpage (https://seadas.gsfc.nasa.gov/help/; Command Line Tool > Cookbook > Reproject > Example 1)
I get an error message that starts with
”com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not { (position: START_DOCUMENT seen {... @1:1)
at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)”
And goes on and on.
Any idea? Also, although I am guessing that using the default WGS84 CRS is a good way to proceed, I am not sure about the other parameters. Could someone help me with that? Again, I am working with Landsat 8 OLI imagery.
Any support to help me move forwards with that would be greatly appreciated!
Thank you much in advance,
Alice
I am navigating my way through everything SeaDAS, and need to work with the command line, for which I am a new user as well. Without surprise, I am running through a few hitches. I am hoping someone could help me overcome these issues. I suspect it will be very straightforwards for most users here.
What I want to do:
STEP1. Atmospheric correction of GEOTIFF img with L2gen, where IMG = a Landsat 8 OLI - C1 imagery
Output Step 1: IMG.L2_LAC_OC
STEP2. Reproject IMG.L2_LAC_OC
Output Step 2: IMG.L2_LAC_OC_Reprojected
I already figured how to implement STEP1 in the commande line.
I am currently stuck with step 2. This is the commande line I am using:
/usr/local/apps/seadas-7.5/bin/gpt.sh ReprojectGeoLatLon.xml -p ReprojectGeoLatLon.par -Ssource=IMG.L2_LAC_OC -t IMG:_Reprojection.dim
So far, I am using the .xml and .par file copied from the SeaDAS help webpage (https://seadas.gsfc.nasa.gov/help/; Command Line Tool > Cookbook > Reproject > Example 1)
I get an error message that starts with
”com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not { (position: START_DOCUMENT seen {... @1:1)
at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)”
And goes on and on.
Any idea? Also, although I am guessing that using the default WGS84 CRS is a good way to proceed, I am not sure about the other parameters. Could someone help me with that? Again, I am working with Landsat 8 OLI imagery.
Any support to help me move forwards with that would be greatly appreciated!
Thank you much in advance,
Alice