From 45ceac5032cb1ee0e368bfce27ac80b250ed5275 Mon Sep 17 00:00:00 2001 From: Akio Taniguchi Date: Thu, 11 Jul 2024 04:52:25 +0000 Subject: [PATCH 1/4] #59 Update default values --- README.md | 10 +++++----- dems/d2.py | 17 ++++++----------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index b253711..dd7f6f5 100644 --- a/README.md +++ b/README.md @@ -51,21 +51,21 @@ da = MS.new( | Weather information | temperature | Coordinate | Ground atmospheric temperature | K | 0.0 | numpy.ndarray | (time,) | float64 | | | pressure | Coordinate | Ground atmospheric pressure | Pa | 0.0 | numpy.ndarray | (time,) | float64 | | | humidity | Coordinate | Ground relative humidity | 1 | 0.0 | numpy.ndarray | (time,) | float64 | -| | wind_speed | Coordinate | Ground wind speed | m/s | 0.0 | numpy.ndarray | (time,) | float64 | +| | wind_speed | Coordinate | Ground wind speed | m s^-1 | 0.0 | numpy.ndarray | (time,) | float64 | | | wind_direction | Coordinate | Ground wind direction | deg | 0.0 | numpy.ndarray | (time,) | float64 | | Data information | bandwidth | Coordinate | Effective channel bandwidth | Hz | 0.0 | numpy.ndarray | (chan,) | float64 | | | frequency | Coordinate | Channel center frequency | Hz | 0.0 | numpy.ndarray | (chan,) | float64 | | | beam_major | Coordinate | Beam major axis | deg | 0.0 | numpy.ndarray | (chan,) | float64 | | | beam_minor | Coordinate | Beam minor axis | deg | 0.0 | numpy.ndarray | (chan,) | float64 | | | beam_pa | Coordinate | Beam position angle | deg | 0.0 | numpy.ndarray | (chan,) | float64 | -| | exposure | Coordinate | Sample exposure time | s | 0.00625 | numpy.ndarray | () | float64 | -| | interval | Coordinate | Sample interval time | s | 0.00625 | numpy.ndarray | () | float64 | +| | exposure | Coordinate | Sample exposure time | s | 0.0 | numpy.ndarray | () | float64 | +| | interval | Coordinate | Sample interval time | s | 0.0 | numpy.ndarray | () | float64 | | Observation information | observation | Attribute | Observation name | - | "" | str | - | - | | | observer | Attribute | Observer name | - | "" | str | - | - | | | project | Attribute | Project name | - | "" | str | - | - | | | object | Attribute | Object name | - | "" | str | - | - | -| | telescope_name | Attribute | Telescope name | - | "ASTE" | str | - | - | -| | telescope_diameter | Attribute | Telescope dish diameter | m | 10.0 | float | - | - | +| | telescope_name | Attribute | Telescope name | - | "" | str | - | - | +| | telescope_diameter | Attribute | Telescope dish diameter | m | 0.0 | float | - | - | | | telescope_coordinates | Attribute | Telescope ITRS coordinates | m | (0.0, 0.0, 0.0) | "tuple[float, float, float]" | - | - | | ASTE specific | aste_cabin_temperature | Coordinate | [ASTE] Cabin temperature | K | 0.0 | numpy.ndarray | (time,) | float64 | | | aste_obs_group | Attribute | [ASTE] Observation group | - | "" | str | - | - | diff --git a/dems/d2.py b/dems/d2.py index 37ec2a8..9f5ec52 100644 --- a/dems/d2.py +++ b/dems/d2.py @@ -25,11 +25,6 @@ # constants -ASTE_ITRS_COORDS = ( - +2230817.2140945992, - -5440188.022176585, - -2475718.801708271, -) CUBE_DIMS = "chan", "lat", "lon" MS_DIMS = "time", "chan" @@ -151,7 +146,7 @@ class Humidity: class WindSpeed: data: Data[Ti, float] long_name: Attr[str] = "Ground wind speed" - units: Attr[str] = "m/s" + units: Attr[str] = "m s^-1" @dataclass @@ -373,16 +368,16 @@ class MS(AsDataArray): beam_major: Coordof[BeamMajor] = 0.0 beam_minor: Coordof[BeamMinor] = 0.0 beam_pa: Coordof[BeamPa] = 0.0 - exposure: Coordof[Exposure] = 0.00625 - interval: Coordof[Interval] = 0.00625 + exposure: Coordof[Exposure] = 0.0 + interval: Coordof[Interval] = 0.0 # observation information observation: Attr[str] = "" observer: Attr[str] = "" project: Attr[str] = "" object: Attr[str] = "" - telescope_name: Attr[str] = "ASTE" - telescope_diameter: Attr[float] = 10.0 - telescope_coordinates: Attr[Tuple[float, float, float]] = ASTE_ITRS_COORDS + telescope_name: Attr[str] = "" + telescope_diameter: Attr[float] = 0.0 + telescope_coordinates: Attr[Tuple[float, float, float]] = 0.0, 0.0, 0.0 # ASTE specific aste_cabin_temperature: Coordof[AsteCabinTemperature] = 0.0 aste_obs_group: Attr[str] = "" From 9420aaaa51de928ab0c7b2fb80d6158b68324ab9 Mon Sep 17 00:00:00 2001 From: Akio Taniguchi Date: Thu, 11 Jul 2024 04:53:05 +0000 Subject: [PATCH 2/4] #59 Update DESHIMA-specific coordinates --- README.md | 4 ++-- dems/d2.py | 17 ++++++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index dd7f6f5..4d2c592 100644 --- a/README.md +++ b/README.md @@ -83,12 +83,12 @@ da = MS.new( | | aste_misti_lat | Coordinate | [ASTE] MiSTI sky latitude | deg | 0.0 | numpy.ndarray | (time,) | float64 | | | aste_misti_pwv | Coordinate | [ASTE] MiSTI measured PWV | mm | 0.0 | numpy.ndarray | (time,) | float64 | | | aste_misti_frame | Coordinate | [ASTE] MiSTI sky coordinate frame | - | "altaz" | numpy.ndarray | () | str ( Date: Thu, 11 Jul 2024 04:54:22 +0000 Subject: [PATCH 3/4] =?UTF-8?q?#59=20Update=20package=20version=20(0.1.0?= =?UTF-8?q?=20=E2=86=92=202024.7.0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CITATION.cff | 2 +- README.md | 2 +- dems/__init__.py | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index 339cc8c..e91b9c2 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -3,7 +3,7 @@ message: "If you use this software, please cite it as below." title: "dems" abstract: "DESHIMA measurement set by DataArray" -version: 0.10.0 +version: 2024.7.0 date-released: 2024-07-09 license: "MIT" doi: "10.5281/zenodo.8151950" diff --git a/README.md b/README.md index 4d2c592..9fdb884 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ DESHIMA measurement set by DataArray ## Installation ```shell -pip install dems +pip install dems==2024.7.0 ``` ## Usage diff --git a/dems/__init__.py b/dems/__init__.py index e35908d..0daad89 100644 --- a/dems/__init__.py +++ b/dems/__init__.py @@ -1,5 +1,5 @@ __all__ = ["d1", "d2"] -__version__ = "0.10.0" +__version__ = "2024.7.0" # submodules diff --git a/pyproject.toml b/pyproject.toml index 54792d6..3cc94a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dems" -version = "0.10.0" +version = "2024.7.0" description = "DESHIMA measurement set by DataArray" authors = ["Akio Taniguchi "] license = "MIT" From 97c6a10261c00bfa590382afd6ecf6e9a6efc4ac Mon Sep 17 00:00:00 2001 From: Akio Taniguchi Date: Thu, 11 Jul 2024 04:54:44 +0000 Subject: [PATCH 4/4] #59 Update release date --- CITATION.cff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CITATION.cff b/CITATION.cff index e91b9c2..1f2c3e5 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -4,7 +4,7 @@ message: "If you use this software, please cite it as below." title: "dems" abstract: "DESHIMA measurement set by DataArray" version: 2024.7.0 -date-released: 2024-07-09 +date-released: 2024-07-11 license: "MIT" doi: "10.5281/zenodo.8151950" url: "https://github.com/deshima-dev/dems"