Hello!
When I ran this code "./make_L1C.py A2004102000000.L1A_LAC" to convert MODIS L1A file to L1C, I got an error that "modis_L1B.py: not found".
How to fix this problem? Thank you in advance!
Kind regards,
Mengmeng.
Converting MODISA L1A file to L1C
-
- Posts: 38
- Joined: Fri Mar 19, 2021 12:10 am
- company / institution: Taishan University
- Location: Taian, Shandong, China
Converting MODISA L1A file to L1C
You do not have the required permissions to view the files attached to this post.
-
- Posts: 38
- Joined: Fri Mar 19, 2021 12:10 am
- company / institution: Taishan University
- Location: Taian, Shandong, China
Re: Converting MODISA L1A file to L1C
Hello!
Finally I converted MODISA data from L1A to L1C using l2gen in seadas. Then I ran the polymer algorithm for the L1C data with this code: ./polymer_cli.py A2004102000000.L1C_LAC A2004102000000.polymer.hdf
But I got this error:
assert isdir(directory), 'Directory {} does not exist. Please create it, by default it will be automatically populated with ancillary data. Please see help for class Ancillary_NASA for more details.'.format(directory)
AssertionError: Directory ANCILLARY/METEO/ does not exist. Please create it, by default it will be automatically populated with ancillary data. Please see help for class Ancillary_NASA for more details.
I wonder how to fix this error? Thank you in advance!
Kind regards,
Mengmeng.
Finally I converted MODISA data from L1A to L1C using l2gen in seadas. Then I ran the polymer algorithm for the L1C data with this code: ./polymer_cli.py A2004102000000.L1C_LAC A2004102000000.polymer.hdf
But I got this error:
assert isdir(directory), 'Directory {} does not exist. Please create it, by default it will be automatically populated with ancillary data. Please see help for class Ancillary_NASA for more details.'.format(directory)
AssertionError: Directory ANCILLARY/METEO/ does not exist. Please create it, by default it will be automatically populated with ancillary data. Please see help for class Ancillary_NASA for more details.
I wonder how to fix this error? Thank you in advance!
Kind regards,
Mengmeng.
You do not have the required permissions to view the files attached to this post.
- fsteinmetz
- Site Admin
- Posts: 315
- Joined: Fri Sep 07, 2018 1:34 pm
- company / institution: Hygeos
- Location: Lille, France
- Contact:
Re: Converting MODISA L1A file to L1C
Hello Mengmeng,
You have to just create this directory, as written in the error message.
You have to just create this directory, as written in the error message.
Code: Select all
mkdir -p ANCILLARY/METEO/
-
- Posts: 38
- Joined: Fri Mar 19, 2021 12:10 am
- company / institution: Taishan University
- Location: Taian, Shandong, China
Re: Converting MODISA L1A file to L1C
Hello François,
Thank you! I have made that directory. Then I got another error: KeyError: 'solz'
The variable 'solz' is in 'level1_nasa.py', but I wonder how to fix this error?
Thank you in advance!
Kind regards,
Mengmeng.
Thank you! I have made that directory. Then I got another error: KeyError: 'solz'
The variable 'solz' is in 'level1_nasa.py', but I wonder how to fix this error?
Thank you in advance!
Kind regards,
Mengmeng.
You do not have the required permissions to view the files attached to this post.
- fsteinmetz
- Site Admin
- Posts: 315
- Joined: Fri Sep 07, 2018 1:34 pm
- company / institution: Hygeos
- Location: Lille, France
- Contact:
Re: Converting MODISA L1A file to L1C
Hi,
How did you generate your L1C ?
If you used make_L1C.py, your file should not end with '.L1C_LAC', and it should contain solz.
Cheers
How did you generate your L1C ?
If you used make_L1C.py, your file should not end with '.L1C_LAC', and it should contain solz.
Cheers
-
- Posts: 38
- Joined: Fri Mar 19, 2021 12:10 am
- company / institution: Taishan University
- Location: Taian, Shandong, China
Re: Converting MODISA L1A file to L1C
Hi François,
I got the L1C_LAC file from l2gen in seadas and I just used make_L1C.py to convert L1A to L1C. Then I ran the polymer algorithm again, it worked. So you are right about the L1C file. Thank you very much for your help!
Kind regards,
Mengmeng.
I got the L1C_LAC file from l2gen in seadas and I just used make_L1C.py to convert L1A to L1C. Then I ran the polymer algorithm again, it worked. So you are right about the L1C file. Thank you very much for your help!
Kind regards,
Mengmeng.