Skip to content

Add prototype code to download NASA data#688

Merged
yungyuc merged 3 commits intosolvcon:masterfrom
j8xixo12:download_nasa_data
Mar 12, 2026
Merged

Add prototype code to download NASA data#688
yungyuc merged 3 commits intosolvcon:masterfrom
j8xixo12:download_nasa_data

Conversation

@j8xixo12
Copy link
Collaborator

@j8xixo12 j8xixo12 commented Mar 7, 2026

This PR is derivatived from #684 and adding a downloader for downloading the nasa problem dataset and untar the data.

Copy link
Member

@yungyuc yungyuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Points to address.

  • Keep only one author in copyright header.
  • Use full text for BSD license in the copyright header.
  • Add docstrings to explain how to use this tool from command line.

@@ -0,0 +1,13 @@
# Copyright (c) 2026, Chun-Shih Chang <austin20463@gmail.com>,
# Chun-Hsu Lai <as2266317@gmail.com>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep only one author. @j8xixo12 @ThreeMonth03 , you decide who is listed in the copyright header.

@@ -0,0 +1,13 @@
# Copyright (c) 2026, Chun-Shih Chang <austin20463@gmail.com>,
# Chun-Hsu Lai <as2266317@gmail.com>
# BSD 3-Clause License, see COPYING
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use full text for license in the file copyright header.

Initialize download/load configuration.
"""

self.url = "https://techport.nasa.gov/api/file/presignedUrl/380503"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make URL an argument.

# BSD 3-Clause License, see COPYING

"""
track: Track nasa flight dataset with Kalman Filter.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add docstrings to explain how to use this tool from command line.

@yungyuc yungyuc requested a review from ThreeMonth03 March 7, 2026 12:52
@yungyuc yungyuc added the array Multi-dimensional array implementation label Mar 7, 2026
@j8xixo12 j8xixo12 force-pushed the download_nasa_data branch from 60c4216 to 91b523b Compare March 7, 2026 15:43
Copy link
Collaborator Author

@j8xixo12 j8xixo12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yungyuc This PR is ready for the next review.

# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yungyuc I have put the full text of BSD-3 clause license.

@@ -0,0 +1,38 @@
# Copyright (c) 2026, Chun-Shih Chang <austin20463@gmail.com>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ThreeMonth03 I put your name as the author!

track: Track NASA flight dataset with Kalman Filter.

How to download the dataset:
PYTHONPATH=. python3 -m modmesh.track.dataset
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the dataset download cli example here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think the leading PYTHONPATH=. should be used. If it is needed, please clarify why.

Use rst format for the code literal block with the notation ::. Write it like:

How to download the dataset::

  python3 -m modmesh.track.dataset

Comment on lines +113 to +114
"https://techport.nasa.gov/api/file/presignedUrl/380503",
"DDL-F1_Dataset-20201013.zip",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To accommodate different file names for different url. I have modified the NasaDataset to take url and file name as arguments.

Copy link
Member

@yungyuc yungyuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Improve the docstrings to explain the command-line use.

track: Track NASA flight dataset with Kalman Filter.

How to download the dataset:
PYTHONPATH=. python3 -m modmesh.track.dataset
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think the leading PYTHONPATH=. should be used. If it is needed, please clarify why.

Use rst format for the code literal block with the notation ::. Write it like:

How to download the dataset::

  python3 -m modmesh.track.dataset

Copy link
Collaborator Author

@j8xixo12 j8xixo12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yungyuc this pr is ready for next review.

Comment on lines +30 to +32
How to download the dataset::

python3 -m modmesh.track.dataset
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yungyuc I have modified the docstring using rst format, and you are right the leading PYTHONPATH=. is necessary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking this. It looks good.

Copy link
Member

@yungyuc yungyuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +30 to +32
How to download the dataset::

python3 -m modmesh.track.dataset
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking this. It looks good.

@yungyuc
Copy link
Member

yungyuc commented Mar 12, 2026

@j8xixo12 we do not use semantic commit convention. It distracts and suppresses insightful commit logs. I will reword the commits and merge later.

@yungyuc yungyuc force-pushed the download_nasa_data branch from 04f7226 to 529d4e1 Compare March 12, 2026 01:03
@yungyuc yungyuc merged commit 2458c4b into solvcon:master Mar 12, 2026
14 checks passed
@yungyuc yungyuc changed the title feat: add nasa problem downloader Add prototype code to download NASA data Mar 12, 2026
@yungyuc yungyuc linked an issue Mar 12, 2026 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

array Multi-dimensional array implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Estimate the position and attitude of NASA flight using Kalman Filter

3 participants