Skip to content

Commit

Permalink
plot part function
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelonGonzalez committed Mar 1, 2022
1 parent 23e56b4 commit bdf01df
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ You can contact me directly via GitHub or via e-mail: miguigonn@gmail.com
I have included several jupyter notebooks within 'example' folder in order to get you started with the code.

## Licence
This project is licensed under the terms of the 'NInguna por el momento' license
This project is licensed under the terms of the GNU General Public License v3.0

## How to cite dinsar

Expand Down
6 changes: 4 additions & 2 deletions dinsar/parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,9 +797,11 @@ def plot(self, points='all', savefig=False, **kwargs):

name = f"{self._sensor_name}".capitalize()

points = self.elementos if points.lower() == 'all' else points
points = self.elementos if isinstance(points, str) \
and points.lower() == 'all' else points

df = self.take(points).pivot(index='Fechas', columns='Nombre', values='Valores')
df = self.take(points).pivot(index='Fechas', columns='Nombre',
values='Valores')

own_kwargs = dict(legend=True, title=name)
kwargs = _update_kwargs(own_kwargs, kwargs)
Expand Down
24 changes: 12 additions & 12 deletions examples/Studying an Aggregate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "c397ae20",
"id": "6b01fbef",
"metadata": {},
"source": [
"---------------------------------------------------------------------------------------------------------------------------\n",
Expand All @@ -25,7 +25,7 @@
{
"cell_type": "code",
"execution_count": 15,
"id": "2afbeed2",
"id": "2013cf0e",
"metadata": {},
"outputs": [
{
Expand All @@ -47,7 +47,7 @@
},
{
"cell_type": "markdown",
"id": "1e73f466",
"id": "714d2b89",
"metadata": {},
"source": [
"## Sensors linkage\n",
Expand All @@ -68,7 +68,7 @@
{
"cell_type": "code",
"execution_count": 16,
"id": "d8bec5b3",
"id": "29acfa41",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -96,7 +96,7 @@
},
{
"cell_type": "markdown",
"id": "62551b11",
"id": "c43ebcd6",
"metadata": {},
"source": [
"Linked **time series** of piezometry, precipitation or other databases can be accessed through the `piezos`, `station` and `other_sensors` methods, respectively.\n",
Expand All @@ -109,7 +109,7 @@
{
"cell_type": "code",
"execution_count": 17,
"id": "3d3262a3",
"id": "008b88c6",
"metadata": {
"scrolled": false
},
Expand Down Expand Up @@ -144,7 +144,7 @@
{
"cell_type": "code",
"execution_count": 18,
"id": "e70bf034",
"id": "1e1c09ae",
"metadata": {
"scrolled": true
},
Expand All @@ -169,7 +169,7 @@
},
{
"cell_type": "markdown",
"id": "4ab6347e",
"id": "679ad2e9",
"metadata": {},
"source": [
"## Other `Aggregate` object methods\n",
Expand Down Expand Up @@ -212,7 +212,7 @@
{
"cell_type": "code",
"execution_count": 22,
"id": "f54972b9",
"id": "bdc3f145",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -268,7 +268,7 @@
},
{
"cell_type": "markdown",
"id": "818f9203",
"id": "f319da34",
"metadata": {},
"source": [
"#### **2.** Analysis of the common periodicities between the average deformation of aggregate 2 (for dataset 'Asc') and the piezometer linked to it, for a monthly sampling frequency."
Expand All @@ -277,7 +277,7 @@
{
"cell_type": "code",
"execution_count": 24,
"id": "19a9fa12",
"id": "e1200c6d",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -311,7 +311,7 @@
},
{
"cell_type": "markdown",
"id": "c802d008",
"id": "d072849a",
"metadata": {},
"source": [
"This analysis returns a `Wavelet` object, which contains three useful methods:\n",
Expand Down
118 changes: 118 additions & 0 deletions examples/Working with model parts.ipynb

Large diffs are not rendered by default.

0 comments on commit bdf01df

Please sign in to comment.