-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about using SatelliteToolbox for APTDecoder #1
Comments
Hi Sacha, You can get a current TLE data from this address: https://www.celestrak.com/NORAD/elements/weather.txt The function You can call it like this: tles = APTDecoder.get_tle(:weather). Sometimes I noticed an slight error in the geo-referenced image (see the southern UK coast). I don't what kind of level of accuracy you would need (for my purposes it is enough ;-)) . |
I just updated the notebook with additional information. Most part of the notebook is about the signal processing. If you are just interested in the results it is sufficient to load the wav files and look at the cells after |
Hi Alexander,
Thank you so much for your help, and for pointing out where to get current
TLE information.
Apologies in advance if this is a silly follow up question, I'm still
making my way into Julia and to coding more generally.
I tried using:
tles = APTDecoder.get_tle(:weather).
After I press 'return' the cursor just hovers below the line, without
adding or generating anything.
However as you suggested, I also tried going here:
https://www.celestrak.com/NORAD/elements/weather.txt and downloading the
data into a txt file that I stored in the directory that is accessed by
Julia. I named the file correctly and this time when I entered:
tles = SatelliteToolbox.read_tle("weather-20210908.txt")
The TLE elements loaded.
Using your example here
<https://github.com/Alexander-Barth/APTDecoder.jl/blob/master/examples/APTDecoder.ipynb>,
I made it all the way through the signal processing steps (which were
fascinating!) and I successfully decoded the raw image. Then I reached step
95:
In [95]:
starttime = APTDecoder.starttimename(wavname)
# TLEs are downloaded if omited
Alon,Alat,Adata =
APTDecoder.georeference(channelA,satellite_name,datatime,starttime;
tles=tles);
┌ Info: Downloading file 'EOP_IAU1980.TXT' from '
https://datacenter.iers.org/data/latestVersion/223_EOP_C04_14.62-NOW.IAU1980223.txt'
with cURL.
└ @ RemoteFiles
/home/abarth/.julia/packages/RemoteFiles/Suit7/src/download.jl:53
More specifically, after 'Alon,Alat,Adata =
APTDecoder.georeference(channelA,satellite_name,datatime,starttime;
tles=tles);' I got:
ERROR: MethodError: no method matching
init_orbit_propagator(::Type{Val{:sgp4}},
::SatelliteToolbox.SatelliteToolboxTLE.TLE)
Closest candidates are:
init_orbit_propagator(::Val{:sgp4},
::SatelliteToolbox.SatelliteToolboxTLE.TLE; sgp4_gc) at
/Users/sashacakes/.julia/packages/SatelliteToolbox/ZDGTT/src/orbit/propagators/api/sgp4.jl:35
Stacktrace:
[1] georeference(data::SubArray{Float64, 2, Matrix{Float64},
Tuple{Base.Slice{Base.OneTo{Int64}}, UnitRange{Int64}}, true},
satellite_name::String, datatime::Vector{Float64},
starttime::Dates.DateTime; eop::Nothing,
tles::Vector{SatelliteToolbox.SatelliteToolboxTLE.TLE})
@ APTDecoder ~/.julia/dev/APTDecoder/src/georef.jl:106
[2] top-level scope
@ REPL[66]:1
I tried moving onward to:
APTDecoder.plot(Alon,Alat,Adata)
but received:
ERROR: UndefVarError: Alon not defined
Stacktrace:
[1] top-level scope
@ REPL[67]:1
I am sorry for another long message, but if you have time I would be so
grateful for your help.
Best wishes,
Sasha
Le mer. 8 sept. 2021 à 20:51, Alexander Barth ***@***.***> a
écrit :
… I just updated the notebook with additional information. Most part of the
notebook is about the signal processing. If you are just interested in the
results it is sufficient to load the wav files and look at the cells after #
decode to image.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APU7DPFQWX6EGHPEAFEKB5TUA65DFANCNFSM5DULWOIQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Dr. Sasha Engelmann (she/her)
Lecturer in GeoHumanities
Royal Holloway University of London
www.sashaengelmann.com
instagram: @sasha_intheair
twitter: @Sashacakes
+44 7833367353
|
These are not at all silly questions :-) In APTDecoder, I am using the package SatelliteToolbox and the function calls have changed slightly in this package. I just updated APTDecoder so that it works well with the latest version of SatelliteToolbox. Can you update your version of APTDecoder? The error If you installed APTDecdoder with using Pkg
Pkg.rm("APTDecoder")
Pkg.add(url="https://github.com/Alexander-Barth/APTDecoder.jl")
Indeed, in Jupyter notebook, to execute a cell you can use |
Hi Alexander,
Thanks very much again for your help.
I uninstalled and re-installed APTDecoder using Julia and now the
MethodError for using SatelliteToolbox has gone away.
I was able to process a recent NOAA 18 wavefile recording into raw and
georeferenced images- here they are copied below.
[image: CubicSDR_20210902_110035_137913_raw.png]
[image: CubicSDR_20210902_11035_137913_Channel B Georeferenced.png]
[image: CubicSDR_20210902_110035_137913_Channel A GeoReferenced.png]
I have a few questions about the georeferenced images: first, why this
colour scheme? I know NOAA satellite images are always in grayscale and
different APT decoders have different ways of assigning 8 bit values to
pixels, but why do the images change into bright colours when they are
referenced to a map in APTDecoder?
Second, there was an interesting warning in this part of the process:
julia> APTDecoder.plot(Alon,Alat,Adata)
sys:1: MatplotlibDeprecationWarning: shading='flat' when X and Y have the
same dimensions as C is deprecated since 3.3. Either specify the corners
of the quadrilaterals with X and Y, or pass shading='auto', 'nearest' or
'gouraud', or set rcParams['pcolor.shading']. This will become an error
two minor releases later.
[ Info: Downloading file 'lsmask_5min_l.bin' from '
https://raw.githubusercontent.com/matplotlib/basemap/v1.2.2rel/lib/mpl_toolkits/basemap/data/lsmask_5min_l.bin'
with cURL.
There are some words here that seem to refer to 'shading' and 'color' but
there is also a warning. Could you clarify what this means?
Third, which map projection is used for the georeferenced Channel A and B
images?
Fourth, the georeferenced images are quite a bit lower in quality than the
raw image. Why is this the case? Is it possible to preserve the image
quality while also georeferencing?
I will stop there, but thanks so much again for your help and time.
Best,
Sasha
Le jeu. 9 sept. 2021 à 20:12, Alexander Barth ***@***.***> a
écrit :
… These are not at all silly questions :-) In APTDecoder, I am using the
package SatelliteToolbox and the function calls have changed slightly in
this package. I just updated APTDecoder so that it works well with the
latest version of SatelliteToolbox. Can you update your version of
APTDecoder? The error ERROR: MethodError: no method matching
init_orbit_propagator(::Type{Val{:sgp4}},
::SatelliteToolbox.SatelliteToolboxTLE.TLE) should go away.
If you installed APTDecdoder with Pkg.develop, you can update with the
shell command git pull.
If you do not have git install, you can also use the following Julia
commands to remove and reinstall APTDecoder:
using Pkg
Pkg.rm("APTDecoder")
Pkg.add(url="https://github.com/Alexander-Barth/APTDecoder.jl")
After I press 'return' the cursor just hovers below the line, without
adding or generating anything.
Indeed, in Jupyter notebook, to execute a cell you can use Alt-Return or
Control-Return.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APU7DPADA267KNXVJQEA32DUBEBJVANCNFSM5DULWOIQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Dr. Sasha Engelmann (she/her)
Lecturer in GeoHumanities
Royal Holloway University of London
www.sashaengelmann.com
instagram: @sasha_intheair
twitter: @Sashacakes
+44 7833367353
|
If you want to customize the plots (color map, resolution, ...) , I would suggest you to just get the data with the lon/lat arrays so that you can more easily adjust your setting. The captured data is very good ! Oddly you have a gray/black and white area for lon > 0. Can you call |
Hi Alexander, PS: another set of images decoded today with APTDecoder |
Yes, this is exactly right. Note that the function https://github.com/Alexander-Barth/APTDecoder.jl/blob/master/src/plot.jl#L30 If you need to have more control on the plots, then you would probably need to copy the body of this function and adapt it to your needs and it may indeed require some programming. This is for example a very good introduction to Julia Going back to the original question: the variables lonA, latA are the arrays with the longitude and latitude of the A channel (and likewise for the B channel) and indeed you could save them to files. |
Hello,
I have a question about producing georeferenced APT images using APTDecoder. I am new to Julia and to most programming, but georeferenced NOAA APT images are crucial for a new research project I'm currently working on, and it seems to me that APTDecoder has the ability to produce them. I followed the instructions on this github to install APTDecoder, and I was following the example decoding process here: https://github.com/Alexander-Barth/APTDecoder.jl/blob/master/examples/APTDecoder.ipynb
When it came to acquiring the NOAA satellite's TLEs, Alexander suggests this line of code:
Which I adapted (for my satellite pass time on September 2nd 2021) to:
However, instead of the TLE element array received by Alexander, I get:
I tried different dates and played around with the syntax of the txt file name, but to no avail. Without TLEs, I don't think APTDecoder can georeference my NOAA images. Any help and advice is much appreciated.
Sasha
The text was updated successfully, but these errors were encountered: