Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zheng Gaoshan
co-devTest
Commits
bab1c6c9
Commit
bab1c6c9
authored
May 16, 2025
by
Jia Qiongying
Browse files
Resolve conflicts and add diamagnetic changes
parent
56da4a05
Changes
3
Hide whitespace changes
Inline
Side-by-side
all_requirements.txt
0 → 100644
View file @
bab1c6c9
absl-py
==2.2.2
ai4ts
==0.0.3
aiohappyeyeballs
==2.6.1
aiohttp
==3.11.18
aiosignal
==1.3.2
arcticpy
==2.6
arcticpy_no_gsl
==2.6
asteval
==1.0.6
astro-sedpy
==0.4.0
astroalign
==2.5.1
astropy
@
file:///home/conda/feedstock_root/build_artifacts/astropy_1701289986705/work
astropy-iers-data
@
file:///home/conda/feedstock_root/build_artifacts/astropy-iers-data_1745826964142/work
astropy_healpix
==1.1.2
astroquery
==0.4.6
astroscrappy
==1.2.0
attrs
==25.3.0
backports.tarfile
==1.2.0
bayesian-optimization
==2.0.3
beautifulsoup4
==4.13.4
benchpots
==0.4
bidict
==0.23.1
Bottleneck
@
file:///croot/bottleneck_1731058641041/work
Brotli
@
file:///home/conda/feedstock_root/build_artifacts/brotli-split_1725267488082/work
ccdproc
==2.4.1
certifi
@
file:///home/conda/feedstock_root/build_artifacts/certifi_1739515848642/work/certifi
cffi
@
file:///home/conda/feedstock_root/build_artifacts/cffi_1725560564262/work
charset-normalizer
@
file:///home/conda/feedstock_root/build_artifacts/charset-normalizer_1735929714516/work
click
==8.1.8
cloudpickle
==3.1.1
cma
==4.0.0
colorama
@
file:///home/conda/feedstock_root/build_artifacts/colorama_1733218098505/work
coloredlogs
==15.0.1
contourpy
@
file:///home/conda/feedstock_root/build_artifacts/contourpy_1744743063425/work
crc32c
==2.7.1
cryptography
==44.0.2
cycler
@
file:///home/conda/feedstock_root/build_artifacts/cycler_1733332471406/work
dask
==2025.4.1
deepCR
==0.1.5
dill
==0.4.0
donfig
==0.8.1.post1
dust_extinction
==1.5
eazy
==0.6.8
einops
==0.8.1
exceptiongroup
@
file:///home/conda/feedstock_root/build_artifacts/exceptiongroup_1733208806608/work
filelock
==3.18.0
flatbuffers
==25.2.10
fonttools
==4.25.0
frozenlist
==1.6.0
fsspec
==2024.12.0
future
==1.0.0
GalSim
==2.5.3
grpcio
==1.71.0
h2
@
file:///home/conda/feedstock_root/build_artifacts/h2_1738578511449/work
h5py
==3.10.0
healpy
@
file:///home/conda/feedstock_root/build_artifacts/healpy_1715899674902/work
hpack
@
file:///home/conda/feedstock_root/build_artifacts/hpack_1737618293087/work
html5lib
==1.1
humanfriendly
==10.0
hyperframe
@
file:///home/conda/feedstock_root/build_artifacts/hyperframe_1737618333194/work
idna
@
file:///home/conda/feedstock_root/build_artifacts/idna_1733211830134/work
imageio
@
file:///home/conda/feedstock_root/build_artifacts/imageio_1738273805233/work
importlib_metadata
@
file:///home/conda/feedstock_root/build_artifacts/importlib-metadata_1737420181517/work
iniconfig
@
file:///home/conda/feedstock_root/build_artifacts/iniconfig_1733223141826/work
jaraco.classes
==3.4.0
jaraco.context
==6.0.1
jaraco.functools
==4.1.0
jeepney
==0.9.0
Jinja2
==3.1.6
joblib
@
file:///home/conda/feedstock_root/build_artifacts/joblib_1691577114857/work
jplephem
==2.22
keras
==2.15.0
keyring
==25.6.0
kiwisolver
@
file:///home/conda/feedstock_root/build_artifacts/kiwisolver_1725459263097/work
lazy_loader
@
file:///home/conda/feedstock_root/build_artifacts/lazy-loader_1733636780672/work
lightning
==2.1.4
lightning-utilities
==0.14.3
llvmlite
@
file:///croot/llvmlite_1706910704562/work
lmfit
==1.2.2
locket
==1.0.0
LSSTDESC.Coord
==1.3.0
Markdown
==3.8
MarkupSafe
==3.0.2
matplotlib
@
file:///home/conda/feedstock_root/build_artifacts/matplotlib-suite_1708026439111/work
more-itertools
==10.7.0
mpmath
==1.3.0
multidict
==6.4.3
multiprocess
==0.70.17
munkres
==1.1.4
networkx
@
file:///home/conda/feedstock_root/build_artifacts/bld/rattler-build_networkx_1731521053/work
nevergrad
==1.0.2
numba
@
file:///home/conda/feedstock_root/build_artifacts/numba_1707024788644/work
numcodecs
==0.16.0
numexpr
@
file:///croot/numexpr_1730215937391/work
numpy
@
file:///croot/numpy_and_numpy_base_1708638617955/work/dist/numpy-1.26.4-cp311-cp311-linux_x86_64.whl#sha256
=2f550fcfe63acca79d636ba578e32b7ec2999e0f9cd88120af57d1497ad15890
onnx
==1.17.0
onnxruntime
==1.16.3
opencv-python
==4.9.0.80
packaging
==24.2
pandas
@
file:///croot/pandas_1709590491089/work/dist/pandas-2.2.1-cp311-cp311-linux_x86_64.whl#sha256
=0a2793a31a0135a35735e1431d453a06186a3a7c607d9b441d9bd5f0fe4ded31
partd
==1.4.2
pathos
==0.3.2
patsy
@
file:///home/conda/feedstock_root/build_artifacts/patsy_1733792384640/work
PeakUtils
==1.3.5
photutils
==1.11.0
pillow
@
file:///croot/pillow_1707233021655/work
pluggy
@
file:///home/conda/feedstock_root/build_artifacts/pluggy_1733222765875/work
ply
@
file:///home/conda/feedstock_root/build_artifacts/ply_1733239724146/work
pox
==0.3.6
ppft
==1.7.7
ppxf
==9.1.1
propcache
==0.3.1
protobuf
==6.30.2
psutil
@
file:///home/conda/feedstock_root/build_artifacts/psutil_1705722403006/work
pyaml
==25.1.0
pyarrow
==20.0.0
PyAstronomy
==0.19.0
pybind11
==2.13.6
pycparser
@
file:///home/conda/feedstock_root/build_artifacts/bld/rattler-build_pycparser_1733195786/work
pyerfa
@
file:///home/conda/feedstock_root/build_artifacts/pyerfa_1731377640668/work
pyFFTW
@
file:///home/conda/feedstock_root/build_artifacts/pyfftw_1720683589220/work
pygrinder
==0.7
pyparsing
@
file:///home/conda/feedstock_root/build_artifacts/pyparsing_1743089729650/work
pypots
==0.8.1
PyQt6
==6.7.1
PyQt6_sip
@
file:///croot/pyqt-split_1744804475988/work/pyqt_sip
PySocks
@
file:///home/conda/feedstock_root/build_artifacts/pysocks_1733217236728/work
pytest
@
file:///home/conda/feedstock_root/build_artifacts/pytest_1740946542080/work
pytest-runner
@
file:///home/conda/feedstock_root/build_artifacts/pytest-runner_1646158889426/work
python-dateutil
@
file:///home/conda/feedstock_root/build_artifacts/python-dateutil_1733215673016/work
pytorch-lightning
==2.5.1.post0
pytz
@
file:///home/conda/feedstock_root/build_artifacts/pytz_1742920838005/work
pyvo
==1.6.2
PyWavelets
==1.8.0
PyYAML
@
file:///home/conda/feedstock_root/build_artifacts/pyyaml_1695373611984/work
quantities
==0.16.2
regions
==0.8
reproject
==0.14.1
requests
@
file:///home/conda/feedstock_root/build_artifacts/requests_1684774241324/work
scikit-image
@
file:///home/conda/feedstock_root/build_artifacts/scikit-image_1697028611470/work/dist/scikit_image-0.22.0-cp311-cp311-linux_x86_64.whl#sha256
=53d8b95f752df47007e9e71dd1c9805b9334e1e4791cf48e3762abb922636f04
scikit-learn
@
file:///home/conda/feedstock_root/build_artifacts/scikit-learn_1705657325295/work
scikit-optimize
==0.9.0
scipy
@
file:///croot/scipy_1710947333060/work/dist/scipy-1.12.0-cp311-cp311-linux_x86_64.whl#sha256
=36d2a2832c572683d48b886ce053e987537363682beff7131df0cf3b2d90ed38
seaborn
@
file:///home/conda/feedstock_root/build_artifacts/seaborn-split_1733730015268/work
SecretStorage
==3.3.3
sep
==1.4.1
sip
@
file:///home/conda/feedstock_root/build_artifacts/sip_1745411181663/work
six
@
file:///home/conda/feedstock_root/build_artifacts/six_1733380938961/work
soupsieve
==2.7
statsmodels
@
file:///home/conda/feedstock_root/build_artifacts/statsmodels_1727986709728/work
sympy
==1.14.0
tensorboard
==2.19.0
tensorboard-data-server
==0.7.2
threadpoolctl
@
file:///home/conda/feedstock_root/build_artifacts/threadpoolctl_1741878222898/work
tifffile
@
file:///croot/tifffile_1734340907867/work
tomli
@
file:///home/conda/feedstock_root/build_artifacts/tomli_1733256695513/work
toolz
==1.0.0
torch
==2.1.0+cpu
torchmetrics
==1.7.1
torchvision
==0.16.0+cpu
tornado
@
file:///home/conda/feedstock_root/build_artifacts/tornado_1732615904614/work
tqdm
==4.67.1
tsdb
==0.7.1
typing_extensions
==4.13.2
tzdata
@
file:///home/conda/feedstock_root/build_artifacts/python-tzdata_1742745135198/work
uncertainties
==3.2.3
unicodedata2
@
file:///home/conda/feedstock_root/build_artifacts/unicodedata2_1736692517942/work
urllib3
@
file:///home/conda/feedstock_root/build_artifacts/urllib3_1744323578849/work
webencodings
==0.5.1
Werkzeug
==3.1.3
yarl
==1.20.0
zarr
==3.0.7
zipp
@
file:///home/conda/feedstock_root/build_artifacts/zipp_1732827521216/work
zstandard
==0.23.0
run.py
View file @
bab1c6c9
...
...
@@ -7,28 +7,28 @@ import shutil
def
main
():
# 定义初始路径和目标路径
source_dir
=
'/workspace/input/'
target_dir
=
'/workspace/output/'
# 确保源路径存在
if
not
os
.
path
.
exists
(
source_dir
):
print
(
f
"错误:源路径
{
source_dir
}
不存在。"
)
else
:
# 创建目标路径(如果不存在)
os
.
makedirs
(
target_dir
,
exist_ok
=
True
)
# 获取源路径下的所有文件(不递归子目录)
for
file_name
in
os
.
listdir
(
source_dir
):
source_file
=
os
.
path
.
join
(
source_dir
,
file_name
)
target_file
=
os
.
path
.
join
(
target_dir
,
file_name
)
# 只拷贝文件,忽略子目录
if
os
.
path
.
isfile
(
source_file
):
shutil
.
copy2
(
source_file
,
target_file
)
# copy2 保留元数据(如修改时间)
print
(
f
"已拷贝:
{
source_file
}
->
{
target_file
}
"
)
print
(
"拷贝完成。"
)
# 定义初始路径和目标路径
source_dir
=
'/workspace/input/'
target_dir
=
'/workspace/output/'
# 确保源路径存在
if
not
os
.
path
.
exists
(
source_dir
):
print
(
f
"错误:源路径
{
source_dir
}
不存在。"
)
else
:
# 创建目标路径(如果不存在)
os
.
makedirs
(
target_dir
,
exist_ok
=
True
)
# 获取源路径下的所有文件(不递归子目录)
for
file_name
in
os
.
listdir
(
source_dir
):
source_file
=
os
.
path
.
join
(
source_dir
,
file_name
)
target_file
=
os
.
path
.
join
(
target_dir
,
file_name
)
# 只拷贝文件,忽略子目录
if
os
.
path
.
isfile
(
source_file
):
shutil
.
copy2
(
source_file
,
target_file
)
# copy2 保留元数据(如修改时间)
print
(
f
"已拷贝:
{
source_file
}
->
{
target_file
}
"
)
print
(
"拷贝完成。"
)
if
__name__
==
'__main__'
:
main
()
test.py
0 → 100644
View file @
bab1c6c9
from
astroquery.mast
import
Observations
from
astropy.io
import
fits
from
astropy.visualization
import
simple_norm
import
matplotlib.pyplot
as
plt
from
ccdproc
import
CCDData
# 查询并下载观测数据
obs_table
=
Observations
.
query_criteria
(
dataproduct_type
=
[
"image"
],
obs_collection
=
"HST"
,
instrument_name
=
"ACS/WFC"
)
data_products_by_obs
=
Observations
.
get_product_list
(
obs_table
[
0
])
download_info
=
Observations
.
download_products
(
data_products_by_obs
[:
1
],
productType
=
"SCIENCE"
)
# 加载FITS文件
fits_file_path
=
download_info
[
'obs_id'
,
'local_path'
][
0
][
'local_path'
]
hdu_list
=
fits
.
open
(
fits_file_path
)
hdu
=
hdu_list
[
0
]
# 将HDU对象转换为CCDData对象,便于后续处理
ccd_image
=
CCDData
(
hdu
.
data
,
unit
=
"adu"
)
# 使用ccdproc进行基本处理,比如减去平均值
processed_image
=
ccd_image
.
subtract
(
ccd_image
.
mean
())
# 显示处理前后的图像
fig
,
(
ax1
,
ax2
)
=
plt
.
subplots
(
1
,
2
,
figsize
=
(
15
,
7
))
norm
=
simple_norm
(
hdu
.
data
,
'sqrt'
,
percent
=
99
)
ax1
.
imshow
(
hdu
.
data
,
norm
=
norm
,
origin
=
'lower'
)
ax1
.
set_title
(
'原始图像'
)
norm_processed
=
simple_norm
(
processed_image
.
data
,
'sqrt'
,
percent
=
99
)
ax2
.
imshow
(
processed_image
.
data
,
norm
=
norm_processed
,
origin
=
'lower'
)
ax2
.
set_title
(
'处理后图像'
)
plt
.
show
()
# 关闭fits文件以释放资源
hdu_list
.
close
()
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment