Skip to content

Commit 3ce2598

Browse files
committed
Update: black
1 parent 232dc09 commit 3ce2598

File tree

3 files changed

+50
-39
lines changed

3 files changed

+50
-39
lines changed

doc/doc.ipynb

Lines changed: 46 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
" data=data.mean(dims),\n",
144144
" title=title,\n",
145145
" fn=f\"map-mean-{title}\",\n",
146-
" plot_size=(9.6, 3.6),\n",
146+
" plot_size=(7.2, 3.6),\n",
147147
" cbar_label=\"mean normalized error\",\n",
148148
" vmin=vmin,\n",
149149
" vmax=vmax,\n",
@@ -173,7 +173,7 @@
173173
" data=data.std(dims),\n",
174174
" title=title,\n",
175175
" fn=f\"map-std-{title}\",\n",
176-
" plot_size=(9.6, 3.6),\n",
176+
" plot_size=(7.2, 3.6),\n",
177177
" cbar_label=\"std. dev. normalized errors\",\n",
178178
" vmin=vmin,\n",
179179
" vmax=vmax,\n",
@@ -203,7 +203,7 @@
203203
" data=(data.max(dim=dims) - data.min(dim=dims)),\n",
204204
" title=title,\n",
205205
" fn=f\"map-range-{title}\",\n",
206-
" plot_size=(9.6, 3.6),\n",
206+
" plot_size=(7.2, 3.6),\n",
207207
" cbar_label=\"range of normalized errors\",\n",
208208
" vmin=vmin,\n",
209209
" vmax=vmax,\n",
@@ -216,9 +216,7 @@
216216
{
217217
"cell_type": "markdown",
218218
"id": "10",
219-
"metadata": {
220-
"jp-MarkdownHeadingCollapsed": true
221-
},
219+
"metadata": {},
222220
"source": [
223221
"# ESA SCOPE carbonate system (D. J. Ford)"
224222
]
@@ -350,9 +348,7 @@
350348
{
351349
"cell_type": "markdown",
352350
"id": "17",
353-
"metadata": {
354-
"jp-MarkdownHeadingCollapsed": true
355-
},
351+
"metadata": {},
356352
"source": [
357353
"# ESA CCI Ocean Colour"
358354
]
@@ -600,9 +596,7 @@
600596
{
601597
"cell_type": "markdown",
602598
"id": "24",
603-
"metadata": {
604-
"jp-MarkdownHeadingCollapsed": true
605-
},
599+
"metadata": {},
606600
"source": [
607601
"# GHRSST"
608602
]
@@ -639,6 +633,18 @@
639633
"id": "27",
640634
"metadata": {},
641635
"outputs": [],
636+
"source": [
637+
"ds_mean = ds.isel(i=0)\n",
638+
"ds_std = (ds - ds_mean).std(dim=\"i\")\n",
639+
"ds_target = "
640+
]
641+
},
642+
{
643+
"cell_type": "code",
644+
"execution_count": null,
645+
"id": "28",
646+
"metadata": {},
647+
"outputs": [],
642648
"source": [
643649
"config = {\n",
644650
" \"analysed_sst\": {\n",
@@ -652,7 +658,7 @@
652658
{
653659
"cell_type": "code",
654660
"execution_count": null,
655-
"id": "28",
661+
"id": "29",
656662
"metadata": {},
657663
"outputs": [],
658664
"source": [
@@ -665,7 +671,7 @@
665671
{
666672
"cell_type": "code",
667673
"execution_count": null,
668-
"id": "29",
674+
"id": "30",
669675
"metadata": {},
670676
"outputs": [],
671677
"source": [
@@ -711,7 +717,7 @@
711717
{
712718
"cell_type": "code",
713719
"execution_count": null,
714-
"id": "30",
720+
"id": "31",
715721
"metadata": {},
716722
"outputs": [],
717723
"source": [
@@ -720,7 +726,7 @@
720726
},
721727
{
722728
"cell_type": "markdown",
723-
"id": "31",
729+
"id": "32",
724730
"metadata": {
725731
"jp-MarkdownHeadingCollapsed": true
726732
},
@@ -731,7 +737,7 @@
731737
{
732738
"cell_type": "code",
733739
"execution_count": null,
734-
"id": "32",
740+
"id": "33",
735741
"metadata": {},
736742
"outputs": [],
737743
"source": [
@@ -748,7 +754,7 @@
748754
{
749755
"cell_type": "code",
750756
"execution_count": null,
751-
"id": "33",
757+
"id": "34",
752758
"metadata": {},
753759
"outputs": [],
754760
"source": [
@@ -758,7 +764,7 @@
758764
{
759765
"cell_type": "code",
760766
"execution_count": null,
761-
"id": "34",
767+
"id": "35",
762768
"metadata": {},
763769
"outputs": [],
764770
"source": [
@@ -773,7 +779,7 @@
773779
{
774780
"cell_type": "code",
775781
"execution_count": null,
776-
"id": "35",
782+
"id": "36",
777783
"metadata": {},
778784
"outputs": [],
779785
"source": [
@@ -786,7 +792,7 @@
786792
{
787793
"cell_type": "code",
788794
"execution_count": null,
789-
"id": "36",
795+
"id": "37",
790796
"metadata": {},
791797
"outputs": [],
792798
"source": [
@@ -832,7 +838,7 @@
832838
{
833839
"cell_type": "code",
834840
"execution_count": null,
835-
"id": "37",
841+
"id": "38",
836842
"metadata": {},
837843
"outputs": [],
838844
"source": [
@@ -841,25 +847,22 @@
841847
},
842848
{
843849
"cell_type": "markdown",
844-
"id": "38",
845-
"metadata": {
846-
"jp-MarkdownHeadingCollapsed": true
847-
},
850+
"id": "39",
851+
"metadata": {},
848852
"source": [
849853
"# ESA SCOPE PP parameters"
850854
]
851855
},
852856
{
853857
"cell_type": "code",
854858
"execution_count": null,
855-
"id": "39",
859+
"id": "40",
856860
"metadata": {},
857861
"outputs": [],
858862
"source": [
859863
"ds = xr.open_mfdataset(\n",
860864
" \"./PE_mro_mean_error_prv_4km_120p_spring_cor.*.nc\",\n",
861865
" engine=\"h5netcdf\",\n",
862-
" mask_and_scale=True,\n",
863866
" chunks={\"latitude\": 2160, \"lon\": 2160},\n",
864867
" combine=\"nested\",\n",
865868
" concat_dim=\"i\",\n",
@@ -869,7 +872,7 @@
869872
{
870873
"cell_type": "code",
871874
"execution_count": null,
872-
"id": "40",
875+
"id": "41",
873876
"metadata": {},
874877
"outputs": [],
875878
"source": [
@@ -879,28 +882,28 @@
879882
{
880883
"cell_type": "code",
881884
"execution_count": null,
882-
"id": "41",
885+
"id": "42",
883886
"metadata": {},
884887
"outputs": [],
885888
"source": [
886889
"config = {\n",
887890
" \"alphaB\": {\n",
888891
" \"uncertainty\": \"alphaB_unc\",\n",
889892
" \"distribution\": \"lognormal\",\n",
890-
" \"name\": \"alphaB\",\n",
893+
" \"name\": \"Initial slope of photosynthesis-irradiance curve\",\n",
891894
" },\n",
892895
" \"PmB\": {\n",
893896
" \"uncertainty\": \"PmB_unc\",\n",
894897
" \"distribution\": \"normal\",\n",
895-
" \"name\": \"PmB\",\n",
898+
" \"name\": \"Assimilation number of photosynthesis-irradiance curve\",\n",
896899
" }\n",
897900
"}"
898901
]
899902
},
900903
{
901904
"cell_type": "code",
902905
"execution_count": null,
903-
"id": "42",
906+
"id": "43",
904907
"metadata": {},
905908
"outputs": [],
906909
"source": [
@@ -913,7 +916,7 @@
913916
{
914917
"cell_type": "code",
915918
"execution_count": null,
916-
"id": "43",
919+
"id": "44",
917920
"metadata": {},
918921
"outputs": [],
919922
"source": [
@@ -959,12 +962,20 @@
959962
{
960963
"cell_type": "code",
961964
"execution_count": null,
962-
"id": "44",
965+
"id": "45",
963966
"metadata": {},
964967
"outputs": [],
965968
"source": [
966969
"ds.close()"
967970
]
971+
},
972+
{
973+
"cell_type": "code",
974+
"execution_count": null,
975+
"id": "46",
976+
"metadata": {},
977+
"outputs": [],
978+
"source": []
968979
}
969980
],
970981
"metadata": {

kaleidoscope/main/epocsodielak.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ def run(self, args: Namespace): # noqa: D102
246246
writer: Writing = self._create_writer(args)
247247

248248
# open the source file
249-
get_logger().debug(
250-
f"opening source dataset: {args.source_glob}"
251-
)
249+
get_logger().debug(f"opening source dataset: {args.source_glob}")
252250
source = reader.read(args.source_glob)
253251

254252
# create the processing graph

kaleidoscope/operators/derandop.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ def run(self, source: Dataset) -> Dataset: # noqa: D102
104104
)
105105
if "standard_name" in target[v_unc].attrs:
106106
standard_name = target[v_unc].attrs["standard_name"]
107-
target[v_unc].attrs["standard_name"] = f"{standard_name} standard_error"
107+
target[v_unc].attrs[
108+
"standard_name"
109+
] = f"{standard_name} standard_error"
108110
return target
109111

110112
@property

0 commit comments

Comments
 (0)