From the other thread:
I played around with Jim Hunt's python script and modified it to calculate daily regional volume. In the calculations, I used the regional mask in the CryoSat auxiliary data (h/t uniquorn):
Thanks very much Steven. Could you upload the modified code to the thread in the Developers Corner?
Hi, attached is the python file to calculate regional volume. Also attached is the regional mask. I used python version 3.8.10.
Usage:
1) Save the python file (rename .txt to .py) and the regional mask into the same folder.
2) Create a subfolder named "data" and copy the CryoSat-SMOS ftp files into that folder. So the "data" folder will have subfolders "LATEST", "2022", "2021" etc. (or only the ones you need)
3) On the command line, run e.g. the command
python cryosat-smos-regional-volume.py 2021to calculate the regional volume for all 2021 files. Or specify a specific filename, e.g.:
python cryosat-smos-regional-volume.py LATEST W_XX-ESA,SMOS_CS2,NH_25KM_EASE2_20221219_20221225_o_v205_01_l4sit.nc