How to use l2gen for landsat5,7?

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
akllllll
Posts: 4
Joined: Fri Dec 22, 2023 8:52 am America/New_York
Answers: 0

How to use l2gen for landsat5,7?

by akllllll » Fri Dec 22, 2023 8:57 am America/New_York

Hello,i am trying to use l2gen to get rhos data,and this is my command:l2gen ifile=./LT05_L1TP_020028_20000506_20200907_02_T1_MTL.xml l2prod="rhos_nnn" maskland=off ofile=./LT05_L1TP_020028_20000506_20200907_02_T1.nc.

It shows error that “Loading default parameters from /home/ocssw/share/common/msl12_defaults.par
-E- /home/dshea/focs/oel_hdf4/libl1/l1_options.c Line 207: Could not find type for file ./LT05_L1TP_020028_20000506_20200907_02_T1_MTL.txt.”

Have anything else that i should do?

Tags:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 654
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 2 times

Re: How to use l2gen for landsat5,7?

by OB SeaDAS - xuanyang02 » Wed Dec 27, 2023 10:44 am America/New_York

Can you do

Code: Select all

seadas_info
and share the result here?

akllllll
Posts: 4
Joined: Fri Dec 22, 2023 8:52 am America/New_York
Answers: 0

Re: How to use l2gen for landsat5,7?

by akllllll » Fri Dec 29, 2023 1:06 am America/New_York

OB SeaDAS - xuanyang02 wrote:
> Can you do [code]seadas_info[/code] and share the result here?


Sure, should i update the version of l2gen or set something in there?

NASA Science Processing (OCSSW):
Environment {$OCSSWROOT}: /home/arsiri/ocssw
Environment {$OCDATAROOT}: /home/arsiri/ocssw/share
l2gen version: msl12 9.6.0-V2022.2 (Nov 28 2022 12:25:46)
l2bin version: 7.0.3
l3bin version: 5.13
l3mapgen version: l3mapgen 2.3.0-V2022.2 (Nov 28 2022 12:27:31)
Installed Missions: ['avhrr', 'czcs', 'goci', 'hawkeye', 'hico', 'meris', 'aqua', 'terra', 'mos', 'msis2a', 'msis2b', 'ocm1', 'ocm2', 'octs', 'olcis3a', 'olcis3b', 'olil8', 'olil9', 'osmi', 'seawifs', 'sgli', 'viirsn', 'viirsj1', 'viirsj2', 'viirsdem']

General System and Software:
Operating system: Ubuntu 22.04.3 LTS
Java version: 1.8.0_381
Python3 version: 3.10.12
Python3 Path: /usr/local/bin/python3
Env: ACL_BOARD_VENDOR_PATH=/opt/Intel/OpenCLFPGA/oneAPI/Boards
C_INCLUDE_PATH=/usr/include/gdal
CLASSPATH=/opt/intel/oneapi/mpi/2021.10.0//lib/mpi.jar
CMAKE_PREFIX_PATH=/opt/intel/oneapi/tbb/2021.10.0/env/..:/opt/intel/oneapi/compiler/2023.2.1/linux/IntelDPCPP
CMPLR_ROOT=/opt/intel/oneapi/compiler/2023.2.1
COLUMNS=216
CPATH=/opt/intel/oneapi/tbb/2021.10.0/env/../include:/opt/intel/oneapi/mpi/2021.10.0//include:/opt/intel/oneapi/dev-utilities/2021.10.0/include:/opt/intel/oneapi/compiler/2023.2.1/linux/lib/oclfpga/include
CPLUS_INCLUDE_PATH=/usr/include/gdal
DIAGUTIL_PATH=/opt/intel/oneapi/debugger/2023.2.0/sys_check/debugger_sys_check.py:/opt/intel/oneapi/compiler/2023.2.1/sys_check/sys_check.sh
FI_PROVIDER_PATH=/opt/intel/oneapi/mpi/2021.10.0//libfabric/lib/prov:/usr/lib/x86_64-linux-gnu/libfabric
FPGA_VARS_ARGS=intel64
FPGA_VARS_DIR=/opt/intel/oneapi/compiler/2023.2.1/linux/lib/oclfpga
GDB_INFO=/opt/intel/oneapi/debugger/2023.2.0/documentation/info/
_=/home/arsiri/ocssw/bin/seadas_info
HOME=/home/arsiri
I_MPI_ROOT=/opt/intel/oneapi/mpi/2021.10.0
INFOPATH=/opt/intel/oneapi/debugger/2023.2.0/gdb/intel64/lib
INSPECTOR_2023_DIR=/opt/intel/oneapi/inspector/2023.2.0
INTELFPGAOCLSDKROOT=/opt/intel/oneapi/compiler/2023.2.1/linux/lib/oclfpga
INTEL_LICENSE_FILE=/opt/intel/licenses:/home/arsiri/intel/licenses
INTEL_PYTHONHOME=/opt/intel/oneapi/debugger/2023.2.0/dep
JPY_API_TOKEN=316f57185d28479b92f7e2ef
JUPYTERHUB_ACTIVITY_URL=http://127.0.0.1:8081/hub/api/users/arsiri/activity
JUPYTERHUB_API_TOKEN=316f57185d2847592f7e2ef
JUPYTERHUB_API_URL=http://127.0.0.1:8081/hub/api
JUPYTERHUB_BASE_URL=/
JUPYTERHUB_CLIENT_ID=jupyterhub-user-arsiri
JUPYTERHUB_HOST=
JUPYTERHUB_OAUTH_ACCESS_SCOPES=["access:servers!server=arsiri/", "access:servers!user=arsiri"]
JUPYTERHUB_OAUTH_CALLBACK_URL=/user/arsiri/oauth_callback
JUPYTERHUB_OAUTH_CLIENT_ALLOWED_SCOPES=[]
JUPYTERHUB_OAUTH_SCOPES=["access:servers!server=arsiri/", "access:servers!user=arsiri"]
JUPYTERHUB_SERVER_NAME=
JUPYTERHUB_SERVICE_PREFIX=/user/arsiri/
JUPYTERHUB_SERVICE_URL=http://127.0.0.1:53233/user/arsiri/
JUPYTERHUB_USER=arsiri
JUPYTER_SERVER_ROOT=/home/arsiri
JUPYTER_SERVER_URL=http://127.0.0.1:53233/user/arsiri/
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/opt/intel/oneapi/tbb/2021.10.0/env/../lib/intel64/gcc4.8:/opt/intel/oneapi/mpi/2021.10.0//libfabric/lib:/opt/intel/oneapi/mpi/2021.10.0//lib/release:/opt/intel/oneapi/mpi/2021.10.0//lib:/opt/intel/oneapi/itac/2021.10.0/slib:/opt/intel/oneapi/debugger/2023.2.0/gdb/intel64/lib:/opt/intel/oneapi/debugger/2023.2.0/libipt/intel64/lib:/opt/intel/oneapi/debugger/2023.2.0/dep/lib:/opt/intel/oneapi/compiler/2023.2.1/linux/lib:/opt/intel/oneapi/compiler/2023.2.1/linux/lib/x64:/opt/intel/oneapi/compiler/2023.2.1/linux/lib/oclfpga/host/linux64/lib:/opt/intel/oneapi/compiler/2023.2.1/linux/compiler/lib/intel64_lin::/usr/local/lib/libz.so.1.2.9/lib
LESSCLOSE=/usr/bin/lesspipe %s %s
LESSOPEN=| /usr/bin/lesspipe %s
LIB3_DIR=/home/arsiri/ocssw/opt
LIB3_INC=/home/arsiri/ocssw/opt/include
LIB3_LIB=/home/arsiri/ocssw/opt/lib
LIBRARY_PATH=/opt/intel/oneapi/tbb/2021.10.0/env/../lib/intel64/gcc4.8:/opt/intel/oneapi/mpi/2021.10.0//libfabric/lib:/opt/intel/oneapi/mpi/2021.10.0//lib/release:/opt/intel/oneapi/mpi/2021.10.0//lib:/opt/intel/oneapi/compiler/2023.2.1/linux/compiler/lib/intel64_lin:/opt/intel/oneapi/compiler/2023.2.1/linux/lib
LINES=57
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
MANPATH=/opt/intel/oneapi/mpi/2021.10.0/man:/opt/intel/oneapi/itac/2021.10.0/man:/opt/intel/oneapi/debugger/2023.2.0/documentation/man:/opt/intel/oneapi/compiler/2023.2.1/documentation/en/man/common::
NLSPATH=/opt/intel/oneapi/compiler/2023.2.1/linux/compiler/lib/intel64_lin/locale/%l_%t/%N
OCDATAROOT=/home/arsiri/ocssw/share
OCL_ICD_FILENAMES=libintelocl_emu.so:libalteracl.so:/opt/intel/oneapi/compiler/2023.2.1/linux/lib/x64/libintelocl.so
OCSSWROOT=/home/arsiri/ocssw
OCVARROOT=/home/arsiri/ocssw/var
ONEAPI_ROOT=/opt/intel/oneapi
PATH=/opt/intel/oneapi/mpi/2021.10.0//libfabric/bin:/opt/intel/oneapi/mpi/2021.10.0//bin:/opt/intel/oneapi/itac/2021.10.0/bin:/opt/intel/oneapi/inspector/2023.2.0/bin64:/opt/intel/oneapi/dev-utilities/2021.10.0/bin:/opt/intel/oneapi/debugger/2023.2.0/gdb/intel64/bin:/opt/intel/oneapi/compiler/2023.2.1/linux/lib/oclfpga/bin:/opt/intel/oneapi/compiler/2023.2.1/linux/bin/intel64:/opt/intel/oneapi/compiler/2023.2.1/linux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/opt/jdk/jdk1.8.0_381/bin:/usr/local/bin:/home/arsiri_gzhu/ocssw/bin
PKG_CONFIG_PATH=/opt/intel/oneapi/tbb/2021.10.0/env/../lib/pkgconfig:/opt/intel/oneapi/mpi/2021.10.0/lib/pkgconfig:/opt/intel/oneapi/inspector/2023.2.0/include/pkgconfig/lib64:/opt/intel/oneapi/compiler/2023.2.1/lib/pkgconfig
PWD=/Data/rsdata/coastal/2022/03
PYDEVD_USE_FRAME_EVAL=NO
PYXTERM_DIMENSIONS=80x25
SETVARS_COMPLETED=1
SHELL=/bin/bash
SHLVL=1
TBBROOT=/opt/intel/oneapi/tbb/2021.10.0/env/..
TERM=xterm-256color
USER=arsiri
VT_ADD_LIBS=-ldwarf -lelf -lvtunwind -lm -lpthread
VT_LIB_DIR=/opt/intel/oneapi/itac/2021.10.0/lib
VT_MPI=impi4
VT_ROOT=/opt/intel/oneapi/itac/2021.10.0
VT_SLIB_DIR=/opt/intel/oneapi/itac/2021.10.0/slib
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop
Thanks.
Last edited by akllllll on Fri Dec 29, 2023 1:10 am America/New_York, edited 1 time in total.

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 654
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 2 times

Re: How to use l2gen for landsat5,7?

by OB SeaDAS - xuanyang02 » Fri Dec 29, 2023 10:18 pm America/New_York

You need to have l5tm and l7etmp processors installed

Code: Select all

install_ocssw --install_dir /home/arsiri/ocssw --tag V2022.2 --seadas --l5tm --l7etmp

akllllll
Posts: 4
Joined: Fri Dec 22, 2023 8:52 am America/New_York
Answers: 0

Re: How to use l2gen for landsat5,7?

by akllllll » Sat Dec 30, 2023 2:00 am America/New_York

OB SeaDAS - xuanyang02 wrote:
> You need to have l5tm and l7etmp processors installed
>
> [code]install_ocssw --install_dir /home/arsiri/ocssw --tag V2022.2 --seadas
> --l5tm --l7etmp[/code]

OK,i can see the document of l5tm and l7temp in the ocssw/share.

But, how can i run the l2gen?

There is the command i get from landsat8, i wonder know wether it can run for l5? Because it also says Could not find type for file when i try it.

Or what should i change something?

[code]l2gen ifile=./LT05_L1TP_020028_20000506_20200907_02_T1_MTL.txt l2prod="rhos_nnn" maskland=off ofile=./LT05_L1TP_020028_20000506_20200907_02_T1.nc[/code]

Thanks.

akllllll
Posts: 4
Joined: Fri Dec 22, 2023 8:52 am America/New_York
Answers: 0

Re: How to use l2gen for landsat5,7?

by akllllll » Sat Dec 30, 2023 2:07 am America/New_York

When i run the code 'install_ocssw --install_dir /home/arsiri/ocssw --tag V2022.2 --seadas --l5tm --l7etmp'

the seadas_info
Installed Missions: ['avhrr', 'czcs', 'goci', 'hawkeye', 'hico', 'meris', 'aqua', 'terra', 'mos', 'msis2a', 'msis2b', 'ocm1', 'ocm2', 'octs', 'olcis3a', 'olcis3b', 'olil8', 'olil9', 'osmi', 'seawifs', 'sgli', 'viirsn', 'viirsj1', 'viirsj2', 'viirsdem']

Does this mean that the installation was not successful?

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 654
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 2 times

Re: How to use l2gen for landsat5,7?

by OB SeaDAS - xuanyang02 » Tue Jan 02, 2024 9:25 am America/New_York

For some reason, ocssw/share/common/missionList.xml does not include l5tm or l7etmp. We will fix that bug. For now, if yousee the document of l5tm and l7temp in the ocssw/share, it means l5tm and l7etmp are installed.

Did you try

Code: Select all

l2gen ifile=./LT05_L1TP_020028_20000506_20200907_02_T1_MTL.txt l2prod="rhos_nnn" maskland=off ofile=./LT05_L1TP_020028_20000506_20200907_02_T1.nc
And was it successful?

akllllll
Posts: 4
Joined: Fri Dec 22, 2023 8:52 am America/New_York
Answers: 0

Re: How to use l2gen for landsat5,7?

by akllllll » Tue Jan 02, 2024 11:51 pm America/New_York

OB SeaDAS - xuanyang02 wrote:
> For some reason, ocssw/share/common/missionList.xml does not include l5tm
> or l7etmp. We will fix that bug. For now, if yousee the document of l5tm
> and l7temp in the ocssw/share, it means l5tm and l7etmp are installed.
>
> Did you try [code]l2gen
> ifile=./LT05_L1TP_020028_20000506_20200907_02_T1_MTL.txt
> l2prod="rhos_nnn" maskland=off
> ofile=./LT05_L1TP_020028_20000506_20200907_02_T1.nc[/code]
>
> And was it successful?

Yes, i did. But it also error.

arsiri@arsiri:/Data/rsdata/america/20000505/LT05_L1TP_020028_20000506_20200907_02_T1$ l2gen ifile=./LT05_L1TP_020028_20000506_20200907_02_T1_MTL.txt l2prod="rhos_nnn" maskland=off ofile=./LT05_L1TP_020028_20000506_20200907_02_T1.nc
Loading default parameters from /home/arsiri/ocssw/share/common/msl12_defaults.par
-E- /home/dshea/focs/oel_hdf4/libl1/l1_options.c Line 207: Could not find type for file ./LT05_L1TP_020028_20000506_20200907_02_T1_MTL.txt.

Post Reply