[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-devel] [task #15109] Size of dataset as an Arithmetic operator
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-devel] [task #15109] Size of dataset as an Arithmetic operator |
Date: |
Sat, 8 Dec 2018 11:11:09 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0 |
URL:
<https://savannah.gnu.org/task/?15109>
Summary: Size of dataset as an Arithmetic operator
Project: GNU Astronomy Utilities
Submitted by: makhlaghi
Submitted on: Sat 08 Dec 2018 05:11:07 PM CET
Should Start On: Sat 08 Dec 2018 12:00:00 AM CET
Should be Finished on: Sat 08 Dec 2018 12:00:00 AM CET
Category: Arithmetic
Priority: 5 - Normal
Item Group: Enhancement
Status: Postponed
Privacy: Public
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Effort: 0.00
_______________________________________________________
Details:
In some processing situations, the size of a dataset along a dimension is
necessary. So Arithmetic can use a new operator, maybe called "size" that will
do this job. For example the command below will print the size of the dataset
along its second dimension.
$ astarithmetic image.fits 2 size
The only thing I am thinking about is that an operator like this (and maybe
others like some future ones on printing the type) only need the dataset's
meta-data and don't actually need the dataset's contents! So to be most
efficient (especially on large datasets), we should implement a mechanism that
if reading from a file, we don't need to actually load the contents and if
reading from the stack (dataset already in memory, output of previous
operator), we don't make a full copy.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/task/?15109>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-devel] [task #15109] Size of dataset as an Arithmetic operator,
Mohammad Akhlaghi <=