custom sensor altitude

112 views
Skip to first unread message

Slava Kerner

unread,
Sep 21, 2016, 5:05:43 AM9/21/16
to Py6S
Hello Robin,
trying to set custom sensor altitude, as in:

s.altitudes.set_sensor_custom_altitude(alt, aot=aot, water=water, ozone=ozone)

this works for alt=99.9999, failing at alt=100km, with the error: 
"At line 1270 of file main.f (unit = 5, file = 'stdin')\nFortran runtime error: Bad integer for item 1 in list input\n"

i imagine it's a hardcoded limitation in 6s fortran code, so not much Py6S can do..

so the questions:
1) any way to bypass it?
2) providing alt=99km, rather than 700-800km typical for landsat/sentinel/.. - would you estimate the error be significant?
is alt. only used to estimate pressure, or it enters additional computations?


Thanks,
Slava

Sam Murphy

unread,
Sep 21, 2016, 4:08:53 PM9/21/16
to Py6S
Hi Slava,

There shouldn't be a difference between a sensor at 100 or 700 km. The 6S code models the entire atmosphere as being 8 km in height (which is reasonable as this is where almost everything happens). Anything above this altitude is counted as being in space (i.e. the sensor would be a 'satellite'). As such, the following answers might be reasonable.

1) s.altitudes.set_sensor_satellite_level()

2) there will be no difference because it is beyond the model altitude of the atmosphere used by 6S

Hope that (is correct) and helps,

Sam

Robin Wilson

unread,
Sep 21, 2016, 4:31:09 PM9/21/16
to py...@googlegroups.com
Hi,

Thanks for responding Sam.

6S does actually model the atmosphere as being more than 8km in height (for example, the temperature and ozone profiles used go up to 100km, as shown in the graph on p98 of the 6S manual). However, Sam's suggestions as to what to do are quite correct: anything above 100km should be set to satellite level, and there is no difference between the different satellite levels (700km, 800km etc).

Cheers,

Robin

--
You received this message because you are subscribed to the Google Groups "Py6S" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py6s+uns...@googlegroups.com.
To post to this group, send email to py...@googlegroups.com.
Visit this group at https://groups.google.com/group/py6s.

Slava Kerner

unread,
Sep 22, 2016, 4:36:38 AM9/22/16
to Py6S
Thank you Sam, Robin!

rone...@gmail.com

unread,
Jul 23, 2020, 4:56:33 AM7/23/20
to Py6S
Hi
I'm a newbie with all this, and this conversation already answered my question - so - thanks!!

- 6S is modelling atmospheric effects at Altitudes <100km; understood.
- Nevertheless "radiance at satellite level" must start vanishing at some altitude.
- I'm even quite sure that the default sat level of 1000km is already significant enough, relative to Earth radius.
What do you think? am I missing a point here?

...and, Robin, let me congratulate you for this great piece of software!

Many thanks in advance
Ronen.
Reply all
Reply to author
Forward
0 new messages