GNU Astronomy Utilities - Tasks: task #15181, Libcurl for optimal download of...
You are not allowed to post comments on this tracker with your current authentication level.
task #15181: Libcurl for optimal download of only the necessary bytes
Submitter: | Mohammad Akhlaghi <makhlaghi> | ||
Submitted: | Thu 14 Feb 2019 11:30:52 AM UTC | ||
Should Start On: | Thu 14 Feb 2019 12:00:00 AM UTC | Should be Finished on: | Thu 14 Feb 2019 12:00:00 AM UTC |
Category: | Fits | Priority: | 5 - Normal |
Item Group: | Enhancement | Status: | Postponed |
Privacy: | Public | Assigned to: | None |
Percent Complete: | 0% | Open/Closed: | Open |
Effort: | 0.00 |
Wed 04 Oct 2023 04:39:55 PM UTC, comment #3: |
Mohammad Akhlaghi <makhlaghi> |
Wed 04 Oct 2023 04:36:39 PM UTC, comment #2: For a command-line alternative, Ángel López Sainz suggested the following command that will extract only the first 20 header keywords of the FITS file in the given URL (note that each keyword is 80 characters/bytes long):
|
Mohammad Akhlaghi <makhlaghi> |
Thu 14 Feb 2019 05:07:00 PM UTC, comment #1: libcurl seems to be a good tool for this job. For example see their example fopen.c program which simulates C's `fopen', but for URLs.
|
Mohammad Akhlaghi <makhlaghi> |
Thu 14 Feb 2019 11:30:52 AM UTC, original submission:
CFITSIO allows the usage of network addresses as input FITS files. However, after some tests, I noticed that it simply first downloads the full file, then prepares the required extension/region. So in effect, its is no different from a full download of the full file first, then running CFITSIO on it.
|
Mohammad Akhlaghi <makhlaghi> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2023-10-04 | makhlaghi | Summary | Fits program using network libraries for optimal download | Libcurl for optimal download of only the necessary bytes | |
Carbon-Copy | - | Added -email is unavailable- |
Powered by Savane 3.13-4448.
Corresponding source code
In the last comment, I forgot to give the value to the 'xdfurl' shell variable (from the general Gnuastro tutorial). Here is the full command: